Skip to content

Instantly share code, notes, and snippets.

@farhatizakaria
Created May 27, 2024 21:02
Show Gist options
  • Save farhatizakaria/48d5a21bb6959842cd3bdfaa7f8795f9 to your computer and use it in GitHub Desktop.
Save farhatizakaria/48d5a21bb6959842cd3bdfaa7f8795f9 to your computer and use it in GitHub Desktop.
Script for Pyrit installation in Ubuntu 22.04
sudo apt install python3-scapy python2 libssl-dev zlib1g-dev libpcap0.8-dev python2-dev python-is-python2
cd ~/Downloads
wget -c https://github.com/JPaulMora/Pyrit/archive/v0.5.0.tar.gz
tar -xf v0.5.0.tar.gz
cd Pyrit-0.5.0
sed -i "s/COMPILE_AESNI/NO_COMPILE_AESNI/" cpyrit/_cpyrit_cpu.c
python2 setup.py build
sudo python2 setup.py install
@farhatizakaria
Copy link
Author

@RayenMnif maybe the error indicates that the build process requires Python.h, which is provided by the Python development headers. try: sudo apt-get install python2.7-dev and sudo apt-get install build-essential

@RayenMnif
Copy link

@farhatizakaria Thanks for your help! It turns out I didn't have the python2.7-dev package installed, and python-is-python2 is no longer available in the Ubuntu repository. I fixed it by adding a simple alias in my .zshrc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment