From 2d1a148d6edf60e38b99545daa7b4c1570696b36 Mon Sep 17 00:00:00 2001 From: segfault Date: Mon, 25 Mar 2019 07:47:12 +0100 Subject: Torum stuff added Signed-off-by: segfault --- injector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'injector.c') diff --git a/injector.c b/injector.c index 19d37da..4629be7 100644 --- a/injector.c +++ b/injector.c @@ -341,7 +341,7 @@ static int search_patch_near_entry(pe_buffer *pe, patch_ctx *pa) relAddr = calc_relative_offset(entryVA + i, shellVA); printf("Patching RelJMP at 0x%08lX: 0x%08lX\n", - (unsigned long)entryVA + i - 1, + (unsigned long)entryVA + i, (unsigned long)relAddr); *(uint32_t *)(&insts8[i+1]) = relAddr; return 0; -- cgit v1.2.3