pwn学习-pwntools
利用Python交互pwn对程序进行调试
from pwn import *
p = process('./a.out')
p.read
p.read()
p.send('helloworld')
p.read()
p.close()
from pwn import *
p = process('./a.out')
p.send('\x01\x02\x03')
a=p.read()
a
添加debug进行调试
context。log_level='debug'
p = process('./a.out')
p.read()
p.send('\x01'*0x10)
p.recv()
p32(100)
ord('d')
安装pwndbg插件
git clone https://github.com/pwndbg/pwndbg depth=1
python setup.py
gdb ./a.out
disass mian
break main
run