- Use a wireless sniffer or protocol analyzer (WireShark or airmon-ng) to capture wireless packets. Sniffing this way is similar to how attackers sniff wired networks to eavesdrop and capture information sent across a network.
- Wait for a wireless client to authenticate. WPA wireless clients authenticate with WAPs using a four-way handshake where they exchange information. Essentially, the client needs to prove to the WAP that it knows the passphrase. However, the client doesn’t send the passphrase in cleartext. Instead, the four-way handshake allows the client to encrypt the passphrase in such a way that the WAP can decrypt it and verify that the client has the correct passphrase.
- Use a brute force attack. Once attackers have the encrypted passphrase from the captured four-way handshake, they can launch an offline brute force attack. Automated tools such as Aircrack-ng compare the encrypted password in the capture against passwords in one or more password files. When successful, it gives the attacker the actual passphrase used by the WLAN.
The first thing we need to do is to turn our network adapter (wifi network adapter) into monitor mode, this will enable us to see wireless beacons sent across the airwaves even though it’s not actually associated with any access point.
Now, to know what is the adapter we have just type ‘iwconfig’ on the terminal. The image below shows us that we have wlan1 as our wifi adapter. There’s no associations as of now.

To make wlan1 as our monitor mode we execute this command on the terminal ‘airmon-ng start wlan1’ (refer to the image below)
Check it if it is now on monitor mode. ‘iwconfig’
Now, we’re going to dump all the SSIDs found by our monitoring adapter. We use ‘airodump-ng mon0’, what this does it will look for those SSIDs that are being broadcast and dump those information on our terminal.
Sample Output:
Look for the ENC tab and see if there are WPA encryption.
Note: WPA2 is more stronger than WPA and it might take years to crack those things.
Look for your targeted Wi-Fi.
Do this code below.
-c -> this one is for the channel (in this case it’s 1)
-w -> write (in our case we dump it to wpa2 file)
–bssid -> our target’s bssid
mon0 -> monitor adapter
Now that we have completed the 1st step (Sniffing). We’ll proceed to the 2nd step (Wait for a wireless client to authenticate).
Well, there’s an automated way to do that otherwise you’ll just be waiting for a miracle.
We use ‘aireplay-ng’ which is an injection attack. This forces a re-authentication packet into the wire.
‘aireplay-ng -0 10 -a [BSSID’s MAC Address] -c [Client’s MAC Address] mon0 [optional]’
-0 10 -> it’s going to try 10 times; 0 it will not limit the deauthentication attempts
-a -> BSSID’s MAC Address (Wi-Fi)
-c -> Client’s Mac Address (You may find this one on a packet capture -> Wireshark.) If you know someone’s MAC you can try it just make sure it’s associated with the AP, or if you can’t it’s ok, it’s just more effective if you have a Client’s MAC.
mon0 – monitor adapter.
Wait for a ‘WPA Handshake’ to pop up on our airodump.
Notice it? on the upper right corner of the image? Yeah! Now, cancel all the dump and deauth, we’re ready to CRACK!
Now, navigate your way to the file we written earlier, the ‘wpa2’ one.
See the highlighted one?
Now we will run ‘aircrack-ng’ against the dump file we gathered earlier.
‘wpa2-01.cap’-> is the file
-w -> this is going to point to our passwords file (A Dictionary of Passwords).
Now press Enter.
This is step 3 people (Use a brute force attack.). We’re trying to crack the password now. It runs through the dictionary for a match.
Sample Output:
