From b39696681715ef68c6e1d967a73538af982c04ab Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Wed, 5 Oct 2016 23:34:03 -0400 Subject: Use rbp instead of r15 in jrp --- .bin/jrp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to '.bin/jrp.c') diff --git a/.bin/jrp.c b/.bin/jrp.c index 615f8a97..83894342 100755 --- a/.bin/jrp.c +++ b/.bin/jrp.c @@ -3,9 +3,8 @@ exec cc -Wall -Wextra $@ -o $(dirname $0)/jrp $0 #endif enum op { - OP_PROL = 0xfc8948e789495741, // push r15; mov r15, rsp; mov rsp, rdi - OP_EPIL = 0x5f41fc894ce08948, // mov rax, rsp; mov rsp, r15; pop r15 - OP_RET = 0x90666690666666c3, // ret + OP_PROL = 0x90fc8948e5894855, // push ebp; mov rbp, rsp; mov rsp, rdi + OP_EPIL = 0xc35dec8948e08948, // mov rax, rsp; mov rsp, rbp; pop rbp; ret OP_CALL = 0x90666666d0ff5f58, // pop rax; pop rdi; call rax OP_PUSH = 0x9066660000000068, // push strict dword 0 OP_DROP = 0x9066666608c48348, // add rsp, 8 -- cgit 1.4.1