How To Install Pyrit In Kali Linux
trihhupapoHow to install Pyrit in Kali Linux
Pyrit is a tool that allows you to create huge databases of precomputed WPA/WPA2-PSK authentication phase in space-time exchange. It uses the computing power of Multi-Core CPUs and other platforms via ATI-Stream, Nvidia CUDA and OpenCL, to crack wireless passwords faster. In this article, we will show you how to install Pyrit in Kali Linux and use it to perform a brute force attack on a WPA/WPA2 capture file.
How to install Pyrit in Kali Linux
DOWNLOAD: https://urluss.com/2vAEue
Prerequisites
Before you start, make sure you have an up and running Kali Linux installed. You also need to have some dependencies installed on your system. To do that, open a terminal and run the following commands:sudo apt update -ysudo apt install git python2-dev libssl-dev libpcap-dev -y
Step 1: Download and compile Pyrit
Next, you need to download Pyrit from its GitHub repository. To do that, run the following command:git clone https://github.com/JPaulMora/Pyrit.git --depth=1
This will create a folder called Pyrit in your current directory. Change into that folder by running:cd Pyrit
Before you compile Pyrit, you need to edit one file to avoid an error. Run the following command to do that:sed -i "s/COMPILE_AESNI/COMPILE_AESNIX/" Pyrit/cpyrit/_cpyrit_cpu.c
This will replace COMPILE_AESNI with COMPILE_AESNIX in the file _cpyrit_cpu.c. Now you can compile Pyrit by running:
python2 setup.py cleanpython2 setup.py build
Step 2: Install Pyrit
After compiling Pyrit, you need to install it on your system. To do that, run the following command:sudo python2 setup.py install
This will install Pyrit and its modules on your system. You can verify that by running:pyrit -h
This will show you the help message of Pyrit and its options.
Step 3: Using Pyrit
To use Pyrit, you need to have a WPA/WPA2 capture file that contains the four-way handshake of the target network. You can use tools like airodump-ng or wireshark to capture such files. For this example, we will assume that you have a file called capture.cap in your current directory.
The first thing you need to do is to import the capture file into Pyrit's database. To do that, run the following command:pyrit -r capture.cap import_passwords
This will import the ESSIDs and BSSIDs of the networks in the capture file into Pyrit's database. You can list them by running:pyrit list_essids
This will show you the ESSIDs and BSSIDs of the networks in the database. You can choose one of them by specifying its ESSID or BSSID with the -e or -b option.
The next thing you need to do is to create a wordlist of possible passwords for the target network. You can use tools like crunch or john to generate such wordlists. For this example, we will assume that you have a wordlist called wordlist.txt in your current directory.
To import the wordlist into Pyrit's database, run the following command:pyrit -i wordlist.txt import_passwords
This will import the passwords from the wordlist into Pyrit's database. You can list them by running:pyrit list_passwords
This will show you the passwords in the database.