安装capstone
cd ~
git clone https://github.com/aquynh/capstone
cd capstone
make
make install
安装pwntools
cd ~
git clone https://github.com/Gallopsled/pwntools
cd pwntools
python setup.py install
验证一下pwntools安装成功:
python
import pwn
pwn.asm("xor eax,eax")
出现'1\xc0'
说明安装成功