leave
Using leave; ret to stack pivot
Exploitation
mov rsp, rbp
pop rbp
mov rsp, rbp
pop rbpGadgets
$ ROPgadget --binary vuln | grep 'leave'
0x000000000040117c : leave ; retLEAVE_RET = 0x40117c
POP_RDI = 0x40122b
POP_RSI_R15 = 0x401229Testing the leave
Full Payload
Final Exploit
Last updated
Was this helpful?