Pyrit is no longer in the default Kali repos, so you need to install it from GitHub.
: As of Kali 2023.4+, this may fail due to missing dependencies (e.g., scapy for Python 3). If it fails, use Method 2 or 3. How to install Pyrit in Kali Linux
Installing on modern versions of Kali Linux (2021-2024) requires manual compilation from source because it was removed from the official repositories due to its dependency on Prerequisites Pyrit is no longer in the default Kali
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. How to install Pyrit in Kali Linux
Note: If python2-dev is missing, you may need to add legacy repositories or use a community installer script . :
pyrit list_cores