After capturing that hash form password we need to download a wordlist file, you can get it, by
clicking here . This list contains so many simple passwords. After doing this we use aircrack-ng tool to match the hashes of capture file with the password list. Once it finds a match, it will show you the correct password.
ALSO READ:- How to hack android phone using Kali Linux?
BruteForce Attack
It is an attack in which an attacker create a password list which is full of common passwords. There is a tool present in Kali called aircrack-ng which try each and every password present in the wordlist very fast.
Start by downloading a wordlist. This will help you later. Let’s begin, open up your terminal and type
airmon-ng
It will show you the present wireless cards attached to your system for Wi-Fi.
After this, type
airmon-ng start wlan0
This command will start the monitor mode which is then used to capture the Wi-Fi password.
Then, type
airodump-ng wlan0mon
It will show you available Wi-Fi networks present around you.
Press ctrl+c to stop this. Now, type
airodump-ng -c ‘channel no.’ –bssid ‘ssid of the Wi-Fi which you want to hack’ -w /root/Desktop/ wlan0mon
So, this airodump-ng command captures the information of the Wi-Fi and then type channel no. to give it the information about the router on which we have to perform this attack. Similarly, I give ssid to airodump and then I type -w which shows the location in which I have to save the captured files. So, I saved captured files to Desktop and then I typed Wireless interface name.
It starts showing you the available connected devices to that network then simply open a new terminal and type
aireplay-ng -0 0 -a ‘ssid of the router’ -c ‘ssid of client’ wlan0mon
That’s the command to send unauthenticated packets to the router.
It will disconnect all the devices which are connected to that router. Once it accomplishes its task. Then disconnected devices will send a request to the router for reconnection to the router. At last, we type this command and it will disconnect all the devices from the victim’s router.
When a device sends the packet to reconnect, your monitor mode will capture the password. While it captures the password, in the first terminal window you see at the top right corner there is a handshake present.
But the problem is that the password is in the hash form. We have to decrypt it. So, there are so many methods to decrypt the password. I will discuss all of that in the upcoming posts; so stay tuned.
But here I will show you how to decrypt this password by the BruteForce attack only. So, here I use aircrack-ng which apply every password of the wordlist to the victim’s router silently. Simply, type
aircrack-ng -a2 -b ‘router’s ssid’ -w /root/downloads/’wordlistfilename.txt’ /root/desktop/*.cap.
You see here my attack is complete and I got the password key of the victim’s router.
So, I hope now you have learned how to hack wifi using pc/how to hack wifi using cmd. In the upcoming posts, we will learn much more than this. If you have any doubts regarding any post then you can ask us by posting comment. 🙂
Comments
Post a Comment