[*] '/mnt/e/work/pwn/other/vuln/pwn' Arch: amd64-64-little RELRO: Partial RELRO Stack: No canary found NX: NX enabled PIE: No PIE (0x3ff000) RUNPATH: b'/root/glibc-all-in-one/libs/2.31-0ubuntu9.7_amd64/'
没有/bin/sh等相关字符串
需要构造
查找一下相关寄存器
ROPgadget --binary pwn --only "pop|ret"
1 2 3 4 5 6 7 8 9 10 11
0x00000000004012dc : pop r12 ; pop r13 ; pop r14 ; pop r15 ; ret 0x00000000004012de : pop r13 ; pop r14 ; pop r15 ; ret 0x00000000004012e0 : pop r14 ; pop r15 ; ret 0x00000000004012e2 : pop r15 ; ret 0x00000000004012db : pop rbp ; pop r12 ; pop r13 ; pop r14 ; pop r15 ; ret 0x00000000004012df : pop rbp ; pop r14 ; pop r15 ; ret 0x000000000040111d : pop rbp ; ret 0x00000000004012e3 : pop rdi ; ret 0x00000000004012e1 : pop rsi ; pop r15 ; ret 0x00000000004012dd : pop rsp ; pop r13 ; pop r14 ; pop r15 ; ret 0x000000000040101a : ret