Firstly, create a wireless network to crack. Don’t use this method on others. It is illegal. Then proceed with the steps below.
1. Find out the name of your wireless adapter.
- lo – loopback. Not important currently.
- eth – ethernet
- wlan – This is what we want. Note the suffix associated.
2. Enable Monitor mode
airmon-ng start wlan0
Your monitoring interface will be created – mon0 in case of Kali 1.x, wlan0mon in all other cases.
4. Store the captured packets in a file
airodump-ng mon0 –write name_of_file
Now the captured packets will be stored in name_of_file.cap
You will have to wait till you have enough data (10000 minimum)
PS: Don’t wait too long for this step though. Just understand how the procedure works.
5. Crack the wifi
If all goes well ,then you’ll be sitting in front of your pc, grinning, finally you’ve got 10000 packets (don’t stop the packet capture yet). Now, you can use aircrack-ng to crack the password. (in a new terminal)
The program will ask which wifi to crack, if there are multiple available. Choose the wifi. It’ll do its job. If the password is weak enough, then you’ll get it in front of you. If not, the program will tell you to get more packets. The program will retry again when there are 15000 packets, and so on.
You’ll get the key, probably in this format-
Remove the colons
xxxxxxxxxx is the password of the wireless network
ifconfig wlan0 up
ifconfig wlan0 down
airmon-ng check kill
rfkill unblock all
Or this- (from Sebastian’s comment below)
ifconfig wlan0mon down
iwconfig wlan0mon mode monitor
ifconfig wlan0mon up