1.前提:python环境,同时需要装python-dev
均使用apt安装的方式
sudo apt update
sudo apt install git //安装git
sudo apt install python-dev
2.pip安装
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
如果pip安装东西慢,可以换源(这里为豆瓣源)
pip install numpy -i [https://pypi.doubanio.com/simple/]
3.pwntools安装
git clone https://github.com/Gallopsled/pwntools //下载pwntools安装包
sudo pip install --upgrade --editable ./pwntools
4.peda插件安装(一般在3中会自动安装好)
git clone https://github.com/longld/peda.git ~/peda
echo "source ~/peda/peda.py" >> ~/.gdbinit