1.下载python2及相关依赖
apt-get install libpcap-dev
apt-get install python2.7-dev libssl-dev zlib1g-dev libpcap-dev
2.从git上取pyrit资源
git clone https://github.com/JPaulMora/Pyrit.git
(如果该链接失效了可以直接上github搜pyrit找找)
3.安装
cd Pyrit
(要在第2步所克隆的目录下进行cd)
由于系统默认装了python3,pyrit的build需要python2,这里要注意使用python2环境
python setup.py clean
python setup.py build
python setup.py install
如果默认是python3环境
python2 setup.py clean
python2 setup.py build
python2 setup.py install