Created
May 27, 2024 21:02
-
-
Save farhatizakaria/48d5a21bb6959842cd3bdfaa7f8795f9 to your computer and use it in GitHub Desktop.
Script for Pyrit installation in Ubuntu 22.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 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.
INSTALLATION PYRIT 0.5.0 GPU OPENCL IN DOCKER UBUNTU 18.04 - 20.04
INSTALACION PYRIT 0.5.0 GPU OPEN-CL EN DOCKER UBUNTU 18.04 - 20.04
echo "Actualizando repositorios e instalando herramientas básicas..."
apt update
apt upgrade -y
apt install -y zsh net-tools build-essential git nano wget curl p7zip-full p7zip-rar
apt install -y python3-scapy python2.7 libssl-dev zlib1g-dev libpcap0.8-dev python2.7-dev
wget -c https://github.com/JPaulMora/Pyrit/archive/v0.5.0.tar.gz
echo "INSTALACION DE PYRIT $(ls 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.7 setup.py clean
python2.7 setup.py build
python2.7 setup.py install
pyrit | head -n 1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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
andsudo apt-get install build-essential