From c097cd1309acfd1d0c061fd46cf6b17d4c45105c Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Thu, 6 Oct 2016 01:52:49 -0400 Subject: Add OP_HIGH to jrp --- .bin/jrp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bin/jrp.c b/.bin/jrp.c index b0060386..daeb1477 100755 --- a/.bin/jrp.c +++ b/.bin/jrp.c @@ -17,6 +17,7 @@ enum { OP_EPIL = 0xc35dec8948e08948, // mov rax, rsp; mov rsp, rbp; pop rbp; ret OP_CALL = 0x90666666d0ff5f58, // pop rax; pop rdi; call rax OP_PUSH = 0x0000000068906666, // push strict dword 0 + OP_HIGH = 0x00000000042444c7, // mov [rsp + 4], strict dword 0 OP_DROP = 0x9066666608c48348, // add rsp, 8 OP_DUP = 0x90906666662434ff, // push qword [rsp] OP_SWAP = 0x9066666650515859, // pop rcx; pop rax; push rcx; push rax @@ -35,6 +36,7 @@ enum { }; #define IMMED_PUSH(x) ((op)(x) << 32) +#define IMMED_HIGH(x) ((op)(x) & 0xffffffff00000000) int main() { int error; -- cgit 1.4.1