Before beginning, update your system repositories and install the necessary dependencies. Open your terminal and run:
sudo apt update
sudo apt install libssl-dev python2-dev python2 libpcap-dev build-essential
Pyrit relies on setuptools for installation. Since Python 2 is deprecated, we need a version compatible with it. How to install Pyrit in Kali Linux
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
sudo python2 get-pip.py
sudo python2 -m pip install setuptools
pyrit import_passwords /usr/share/wordlists/rockyou.txt
The official Pyrit repository hasn’t been updated in years, but a community-maintained version works well. Full Report: How to Install Pyrit in Kali
git clone https://github.com/JPaulMora/Pyrit.git
cd Pyrit
sudo python3 setup.py install
This will compile and install Pyrit system-wide. You may see warnings about missing optional dependencies (like CUDA or OpenCL), but the core CPU-based functionality will work. Step 2: Install Python Setup Tools Pyrit relies
This method uses the actively maintained fork by JPaulMora that includes Python 3 support and updated dependencies.
After installation, verify that Pyrit is installed correctly by running the following command:
pyrit -h
This will display the Pyrit help menu, indicating that the installation was successful.