diff options
author | Your Name <you@example.com> | 2024-06-10 18:16:30 +0100 |
---|---|---|
committer | Your Name <you@example.com> | 2024-06-10 18:16:30 +0100 |
commit | eccd0985a08f5face8a8924869e125cf1eed467b (patch) | |
tree | 78c795c6dce1a32b00defbb8c866c5858af1d898 /frida_mode/hook/frida_hook.c | |
parent | 0617b8898a3172dec88b94751ea70c149a075c36 (diff) | |
download | afl++-eccd0985a08f5face8a8924869e125cf1eed467b.tar.gz |
Fixes for x86
Diffstat (limited to 'frida_mode/hook/frida_hook.c')
-rw-r--r-- | frida_mode/hook/frida_hook.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frida_mode/hook/frida_hook.c b/frida_mode/hook/frida_hook.c index da1a59b2..59a92e7e 100644 --- a/frida_mode/hook/frida_hook.c +++ b/frida_mode/hook/frida_hook.c @@ -31,8 +31,8 @@ __attribute__((visibility("default"))) void afl_persistent_hook( // do a length check matching the target! void **esp = (void **)regs->esp; - void *arg1 = esp[0]; - void **arg2 = &esp[1]; + void *arg1 = esp[1]; + void **arg2 = &esp[2]; memcpy(arg1, input_buf, input_buf_len); *arg2 = (void *)input_buf_len; |