Advanced WPA/WPA2 Password Cracking Techniques
When WPS is disabled on your target network, or if it is enabled but configured to use push button or PBC, the methods shown in previous lectures become ineffective. In such cases, you will need to directly crack the WPA or WPA2 encryption.
The developers of these encryptions were well aware of the weaknesses in WEP and ensured that these vulnerabilities were properly addressed. They did such a thorough job that the methods used against WEP cannot be applied to WPA and WPA2.
In WPA2, the encryption keys have several important properties that make them more secure:
As a result, the packets transmitted over the air contain virtually no information that can be used to crack the key. Even capturing a million packets would be insufficient for key recovery.
In this section, we'll explore how to capture these critical handshake packets. The following lectures will demonstrate how to use them to crack the WPA or WPA2 key.
First, run airodump-ng to identify all networks in your vicinity:
After identifying your target network (which uses WPA2), note its MAC address (BSSID) and channel.
The first step is to run airodump-ng specifically on this network and store the data in a file:
This command:
After executing this command, airodump-ng will monitor the target network. Now, you need to wait for the handshake to be captured.
The 4-way handshake is a crucial part of the WPA/WPA2 authentication process. It allows the client and access point to prove they know the password without actually transmitting it.
The handshake is only sent when a client connects to the network. Rather than waiting for a new client to connect naturally, you can force a connected client to disconnect and reconnect using a deauthentication attack.
To perform a deauthentication attack:
This command:
After executing this command, watch the airodump-ng output. Once the client reconnects, the handshake will be captured and displayed in the top-right corner of the airodump-ng interface. At this point, you can stop airodump-ng by pressing Ctrl+C, as the handshake is now stored in the file specified earlier.
The diagram above illustrates the complete workflow for capturing a WPA/WPA2 handshake for password cracking purposes.