PWN常用工具:
1、安装pwntools(python3)
2、安装gdb-9.2版本(sudo apt install texinfo)
Index of /gnu/gdb
cd gdb-9.2
mkdir gdb-build-9.2
cd gdb-build-9.2
../configure --with-python=’/usr/bin/python3’
make
sudo make install
3、安装pwndbg(git init)
修改setup.sh
PYTHON+=/usr/bin/python3
SITE_PACKAGES=/usr/lib/python3/dist-packages
git clone https://github.com/pwndbg/pwndbg
git clone https://github.com.cnpmjs.org/pwndbg/pwndbg
gdb -v
gdb pwn7
b printf //在printf断点
r //运行
PWN做题思路
1、运行程序,熟悉程序
2、kali上使用checksec来检查可执行文件属性,例如PIE, RELRO, PaX, Canaries, ASLR, Fortify Source等等属性(python3.6以上,需要安装packaging)
kali@kali:~/hf$ checksec pwnme
Arch: amd64-64-little
RELRO: Full RELRO
Stack: No canary found
NX: NX enabled
PIE: No PIE (0x400000)
3、
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)