Time for action – speeding up the cracking process
We can pre-calculate the PMK for a given SSID and wordlist using the
genpmk
tool with the commandgenpmk
–f
/pentest/passwords/wordlists/darkc0de.lst
–d
PMK-Wireless-Lab
–s
"Wireless Lab"
as shown in the following screenshot. This creates the filePMK-Wireless-Lab
that contains the pre-generated PMK:We now create a WPA-PSK network with the passphrase sky sign (present in the dictionary we used) and capture a WPA-handshake for that network. We now use
Cowpatty
to crack the WPA passphrase as shown in the following screenshot:It takes approximately 7.18 seconds for
Cowpatty
to crack the key, using the pre-calculated PMKs as shown in the screenshot:We now use
aircrack-ng
with the same dictionary file and the cracking process takes over 22 minutes. This shows how much we are gaining because of the pre-calculation:In order to use these PMKs with
aircrack-ng
, we need to use a tool calledairolib-ng
. We will give it the optionsairolib-ng
PMK-Aircrack...