Whitea's Blog.

pwn环境搭建

字数统计: 230阅读时长: 1 min
2019/11/18 Share

1.前提:python环境,同时需要装python-dev
均使用apt安装的方式

1
2
3
sudo apt update
sudo apt install git //安装git
sudo apt install python-dev

2.pip安装(如果这个不行,请百度或者谷歌寻找新的安装方法)

1
2
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py

如果pip安装东西慢,可以换源(这里为豆瓣源)

1
pip install numpy -i [https://pypi.doubanio.com/simple/]</blockquote>

3.pwntools安装

1
2
git clone https://github.com/Gallopsled/pwntools //下载pwntools安装包
sudo pip install --upgrade --editable ./pwntools

4.peda插件安装(一般在3中会自动安装好)

1
2
git clone https://github.com/longld/peda.git ~/peda
echo "source ~/peda/peda.py" >> ~/.gdbinit

5.python的第三方库安装:LibcSercher

1
2
3
git clone https://github.com/lieanu/LibcSearcher.git
cd LibcSearcher-master/
python setup.py develop

6.ROPgadget安装

1
2
3
4
5
sudo pip install capstone //必要的包安装
github:https://github.com/JonathanSalwan/ROPgadget/tree/master
下载安装包之后在目录下打开命令行,运行命令:
cd LibcSearcher-master/
python setup.py install
CATALOG