group-icon
Hacker's Arena
Knowledge base and discussions group for Security enthusiasts
116 Members
Join this group to post and comment.
Naveen Sunil
Naveen Sunil
Information Technology
10 Jan 2019

Hacking a wireless network to get Wifi password

Well we will see a small educational purpose post. Although there are numerous tutorials on WiFi hacking and most of the people ask this question to me. Let me clear things first about hacking a WiFi and getting the password.

  • The success of getting a password depends on the complexity of the WiFi password.
  • The success of capturing a handshake which contains the password depends on WiFi adapter efficiency and the distance from the host and client which is being de-authenticated during handshake capture.
  • The success of decrypting the password depends on the complexity of password and complexity of supplied word-list for dictionary attack and systems processing efficiency for brute force attack.

This post will just serve as a guide to perform a hack for a WEP or WPA network. Success rate depends on above factors.

Requirements,

  1. Linux with root privileges (recommended)
  2. Wireless adapter with monitoring capacity (Check if your internal wireless card is compatible, else you need to buy one)
  3. A tool that can capture wireless packets (Most preferred and common tool is Aircrack-ng suite. But you can choose the one you like)
  4. Target

The general steps,

  1. First of all as root user put the wireless adapter to monitor mode and see all hosts and clients. 
  2. Select your target host and client.
    1. Either wait for a client to sign in to the wifi
    2. Or perform a de-authentication attack
  3. Capture handshake into a file
  4. Decrypt captured handshake

Special note: There is one new attack method discovered while trying to discover a attack method for WPA3 protocol. Read about it at New attack on WPA/WPA2 using PMKID

Piyush Rao
Piyush Rao
Communications
3mos ago

  1. Wireless adapter with monitoring capacity (Check if your internal wireless card is compatible, else you need to buy one)
  2. How? 

Naveen Sunil
Naveen Sunil
Information Technology
3mos ago

@Piyush Rao you can either check your manufacturer's website for which adapter is present and check the adapter manufacturer's website for info.

Or if you have Linux and aircrack-ng suite installed. Then do this "airmon-ng start "

If this doesn't give error, now do an ifconfig or iwconfig and see if your adapter name is changed to mon.

eg: wlan0 will change to wlan0mon

PS: Most modern PC's wireless adapter will support monitor mode. Newer Aetheros and Realtek adapters are compatible.