aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-11-19 18:06:15 +0000
committerYour Name <you@example.com>2021-11-19 18:06:15 +0000
commit8c9ce591e5aaaf2ce16322f6dd873bb0a2969a8c (patch)
tree7d34791279370df0a593a255d95dba85f49a6b55
parent2cd4f4e7fa709b89cf30f7ae3fbbbcb71c8a7340 (diff)
downloadafl++-8c9ce591e5aaaf2ce16322f6dd873bb0a2969a8c.tar.gz
Shift saved values down the stack by 8 bytes
-rw-r--r--frida_mode/src/instrument/instrument_x64.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/frida_mode/src/instrument/instrument_x64.c b/frida_mode/src/instrument/instrument_x64.c
index c271adc1..f0bce7e2 100644
--- a/frida_mode/src/instrument/instrument_x64.c
+++ b/frida_mode/src/instrument/instrument_x64.c
@@ -68,10 +68,10 @@ typedef struct {
// sahf
// mov rax,QWORD PTR [rsp-0x80]
- uint8_t mov_rax_rsp_80[5];
- uint8_t lahf;
uint8_t mov_rax_rsp_88[8];
- uint8_t mov_rbx_rsp_90[8];
+ uint8_t lahf;
+ uint8_t mov_rax_rsp_90[8];
+ uint8_t mov_rbx_rsp_98[8];
uint8_t mov_eax_prev_loc[6];
uint8_t mov_prev_loc_curr_loc_shr1[10];
@@ -83,10 +83,10 @@ typedef struct {
uint8_t adc_bl_0[3];
uint8_t mov_ptr_rax_rbx[2];
- uint8_t mov_rsp_90_rbx[8];
- uint8_t mov_rsp_88_rax[8];
+ uint8_t mov_rsp_98_rbx[8];
+ uint8_t mov_rsp_90_rax[8];
uint8_t sahf;
- uint8_t mov_rsp_80_rax[5];
+ uint8_t mov_rsp_88_rax[8];
} afl_log_code_asm_t;
@@ -102,10 +102,10 @@ typedef union {
static const afl_log_code_asm_t template =
{
- .mov_rax_rsp_80 = {0x48, 0x89, 0x44, 0x24, 0x80},
- .lahf = 0x9f,
.mov_rax_rsp_88 = {0x48, 0x89, 0x84, 0x24, 0x78, 0xFF, 0xFF, 0xFF},
- .mov_rbx_rsp_90 = {0x48, 0x89, 0x9C, 0x24, 0x70, 0xFF, 0xFF, 0xFF},
+ .lahf = 0x9f,
+ .mov_rax_rsp_90 = {0x48, 0x89, 0x84, 0x24, 0x70, 0xFF, 0xFF, 0xFF},
+ .mov_rbx_rsp_98 = {0x48, 0x89, 0x9C, 0x24, 0x68, 0xFF, 0xFF, 0xFF},
.mov_eax_prev_loc = {0x8b, 0x05},
.mov_prev_loc_curr_loc_shr1 = {0xc7, 0x05},
@@ -116,10 +116,10 @@ static const afl_log_code_asm_t template =
.adc_bl_0 = {0x80, 0xd3, 0x00},
.mov_ptr_rax_rbx = {0x88, 0x18},
- .mov_rsp_90_rbx = {0x48, 0x8B, 0x9C, 0x24, 0x70, 0xFF, 0xFF, 0xFF},
- .mov_rsp_88_rax = {0x48, 0x8B, 0x84, 0x24, 0x78, 0xFF, 0xFF, 0xFF},
+ .mov_rsp_98_rbx = {0x48, 0x8B, 0x9C, 0x24, 0x68, 0xFF, 0xFF, 0xFF},
+ .mov_rsp_90_rax = {0x48, 0x8B, 0x84, 0x24, 0x70, 0xFF, 0xFF, 0xFF},
.sahf = 0x9e,
- .mov_rsp_80_rax = {0x48, 0x8B, 0x44, 0x24, 0x80},
+ .mov_rsp_88_rax = {0x48, 0x8B, 0x84, 0x24, 0x78, 0xFF, 0xFF, 0xFF},
}