Installing Pyrit on modern versions of Kali Linux requires a manual build process because the tool is no longer available in the default repositories. While it is a legendary tool for creating pre-computed WPA/WPA2-PSK databases, its reliance on Python 2 makes installation a bit technical on recent, Python 3-focused Kali releases.
This guide provides a step-by-step walkthrough to successfully install Pyrit on Kali Linux (Rolling releases) by building it from source. 1. Update Your System
Before installing any new software, ensure your Kali Linux repositories and packages are up to date. Open your terminal and run: sudo apt update && sudo apt upgrade -y Use code with caution. 2. Install Necessary Dependencies
Pyrit requires several development libraries and Python 2 components to compile correctly. Since modern Kali has moved toward Python 3, you may need to specifically install the python2 environment:
sudo apt install git python2-dev libssl-dev zlib1g-dev libpcap-dev python2 -y Use code with caution.
Note: If python-is-python2 is available in your version, installing it will help by mapping the python command to Python 2. 3. Clone the Pyrit Repository How to install Pyrit in Kali Linux
The most reliable source for Pyrit today is the GitHub repository managed by the community. Clone it into your local directory: git clone https://github.com/JPaulMora/Pyrit.git cd Pyrit Use code with caution. 4. Patch and Build Pyrit
Modern compilers often throw errors during the Pyrit build process due to outdated AES-NI code. A common fix is to "fudge" the code by modifying a specific line in the source. Apply the fix:
sed -i "s/COMPILE_AESNI/COMPILE_AESNIX/" cpyrit/_cpyrit_cpu.c Use code with caution.
Build and Install:Now, use Python 2 to build the application and then install it: sudo python2 setup.py build sudo python2 setup.py install Use code with caution. 5. Verify the Installation
Once the process is complete, verify that Pyrit is working by listing the available CPU cores it can use: pyrit list_cores Use code with caution. Installing Pyrit on modern versions of Kali Linux
You should see a list of your CPU cores and their status. To test the performance of your installation, you can run a benchmark: pyrit benchmark Use code with caution. Common Troubleshooting Tips
Missing Python 2 Modules: If you get a "ModuleNotFoundError," you might need to install scapy for Python 2 using pip2.
CUDA Support: If you want to use your NVIDIA GPU, you must install the NVIDIA CUDA Toolkit and the separate cpyrit-cuda module.
Modern Alternatives: Since Pyrit is no longer actively maintained, many professionals now prefer Hashcat or Airgeddon for high-speed WPA cracking on modern hardware. AI responses may include mistakes. Learn more
Pyrit installation fails on Kali Linux with undefined symbol Step 2: Clone the Repository git clone https://github
git clone https://github.com/JPaulMora/Pyrit.git
cd Pyrit
Once Pyrit is installed, here’s how to use it effectively.
Once installed, here's how to use Pyrit:
Go back to the main directory or just run pyrit list_cores to see if your GPU is detected.
pyrit list_cores
You should see CUDA-Device listed alongside your CPU cores.

