aboutsummaryrefslogtreecommitdiff
path: root/injector.c
diff options
context:
space:
mode:
authorsegfault <segfault@secmail.pro>2019-03-25 07:47:12 +0100
committersegfault <segfault@secmail.pro>2019-03-25 07:47:12 +0100
commit2d1a148d6edf60e38b99545daa7b4c1570696b36 (patch)
treeae321e8c88180365c793afab0846b2b7e9930cf5 /injector.c
parenta0c75fa3bca05d3a3556e091df68bc732d6ca63a (diff)
Torum stuff added
Signed-off-by: segfault <segfault@secmail.pro>
Diffstat (limited to 'injector.c')
-rw-r--r--injector.c2
1 files changed, 1 insertions, 1 deletions
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;