How To Install Pyrit In Kali Linux May 2026
pyrit -r capture.cap analyze
pyrit -r capture.cap -i wordlist.txt attack_passthrough
Run the setup script to compile the C-extensions and install the module.
python3 setup.py clean
python3 setup.py build
sudo python3 setup.py install
If you encounter an error regarding openssl or sha2.h during the build, you may need to manually symlink the OpenSSL libraries or apply a specific patch from GitHub issues, as the OpenSSL API has changed significantly since Pyrit was written.
Go back to the main directory or just run pyrit list_cores to see if your GPU is detected. How to install Pyrit in Kali Linux
pyrit list_cores
You should see CUDA-Device listed alongside your CPU cores.
Because Pyrit is no longer in the default Kali repositories (and the legacy code often fails to compile on modern Python 3), you have to build it from source. pyrit -r capture
Note: This guide focuses on the CPU installation. GPU (CUDA/OpenCL) support requires specific proprietary drivers and proprietary compiler setups that are often broken on newer kernels.
| Problem | Solution |
|---------|----------|
| error: command 'x86_64-linux-gnu-gcc' failed | Install python3-dev and build-essential |
| OpenCL devices not found | Run sudo apt install clinfo && clinfo to debug |
| Permission errors | Use sudo or add your user to sudo group |
| No module named 'scipy' | Install with pip3 install scipy (optional dependency) | Run the setup script to compile the C-extensions
Check if Pyrit is working by running:
pyrit --help
If you see the Pyrit help menu, the installation was successful.
If native installation fails, run Pyrit in a Docker container.
docker pull kalilinux/kali-rolling
docker run -it --net=host kalilinux/kali-rolling bash
apt update && apt install pyrit -y
Before installing Pyrit, ensure you have: