From 850dc642b31f6de29ca4c546f49e47175a027577 Mon Sep 17 00:00:00 2001 From: Guilherme Cesar dos Santos Date: Sun, 10 Jun 2018 20:03:54 -0300 Subject: [PATCH] Updated DT_HASH_SEGMENT Offset --- source/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/main.c b/source/main.c index d0acae2..cc26c15 100644 --- a/source/main.c +++ b/source/main.c @@ -64,7 +64,7 @@ int kpayload(struct thread *td, struct kpayload_args* args){ writeCr0(cr0 & ~X86_CR0_WP); //Kexec init - void *DT_HASH_SEGMENT = (void *)(kernel_base+ 0xB1D820); // I know it's for 4.55 but I think it will works + void *DT_HASH_SEGMENT = (void *)(kernel_base+ 0xB5EF30); // I know it's for 4.55 but I think it will works memcpy(DT_HASH_SEGMENT,kexec, kexec_size); void (*kexec_init)(void *, void *) = DT_HASH_SEGMENT;