Use this method only if you have an Nvidia GPU and the nvidia-cuda-toolkit installed.
To use your GPU, you need to install the CUDA extension module.
Once installed, you can benchmark your system to see how many keys per second (k/s) it can handle:
pyrit benchmark
To attack a capture file (assuming you have a .cap file and a wordlist): How to install Pyrit in Kali Linux
pyrit -r handshake.cap -i wordlist.txt attack_passthrough
Summary: While Pyrit is a powerful tool for WPA auditing, it is considered legacy software. If you encounter significant dependency issues, consider using modern alternatives like Hashcat (hashcat -m 22000), which is actively maintained and pre-installed on Kali Linux.
Here’s a professional yet easy-to-follow write-up for installing Pyrit on Kali Linux.
This happens when the system cannot find the OpenSSL libraries.
Fix: Ensure you installed libssl-dev and python2-dev from the Prerequisites step. Use this method only if you have an
Verify your hardware is recognized:
pyrit list_cores
This shows all available computing units (CPU cores + GPU devices).
sudo python3 setup.py install
Alternatively, use pip:
sudo pip3 install .
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.
A pip package exists but may lack full GPU support. To attack a capture file (assuming you have a
sudo pip3 install pyrit
Warning: The PyPI version may be older or broken. Use GitHub for production.
Solution: Install Python development headers:
sudo apt install python3-dev