apt-get install libpcap-dev
apt-get install python2.7-dev libssl-dev zlib1g-dev libpcap-dev
git clone https://github.com/JPaulMora/Pyrit.git
(如果该链接失效了可以直接上github搜pyrit找找)
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