WiFi Penetration Testing Cheat Sheet
WiFi Penetration Testing Cheat Sheet
WiFi Penetration Testing Cheat Sheet
This is more of a checklist for myself. May contain useful tips and tricks.
Everything was tested on Kali Linux v2021.4 (64-bit) and WiFi Pineapple Mark VII Basic with the
firmware v1.0.2.
Everything was tested on Kali Linux v2021.4 (64-bit) and WiFi Pineapple NANO with the
firmware v2.7.0.
For help with any of the tools type <tool_name> [-h | -hh | --help] or man <tool_name> .
Sometimes -h can be mistaken for a host or some other option. If that's the case, use -hh or
--help instead, or read the manual with man .
cwe.mitre.org/data
owasp.org/projects
cheatsheetseries.owasp.org
nvd.nist.gov/vuln-metrics/cvss/v3-calculator
nvd.nist.gov/ncp/repository
attack.mitre.org
Check the most popular tool for auditing wireless networks v1s1t0r1sh3r3/airgeddon. Credits to
the author!
Future plans:
Table of Contents
1. Configuration
2. Monitoring
3. Cracking
4. Wordlists
5. Post-Exploitation
6. Evil-Twin
1. Configuration
iw reg get
iw reg set HR
Turn the power of a wireless interface up/down (too high can be illegal in some countries):
2. Monitoring
ifconfig wlan0 down && iwconfig wlan0 mode monitor && ifconfig wlan0 up
[Optional] Kill services that might interfere with wireless network interfaces in the monitoring
mode:
airmon-ng check kill
ifconfig wlan0 down && iwconfig wlan0 mode managed && ifconfig wlan0 up
wash -a -i wlan0mon
opkg update && opkg install libpcap && opkg -d sd install wash
If you specified the output file, don't forget to stop airodump-ng after you are done monitoring
because it will fill up all your free storage space with a large PCAP file.
Use Kismet or WiFi Pineapple to find more information about wireless access points, e.g. their
MAC address, vendor's name, etc.
3. Cracking
PMKID Attack
Crack the WPA/WPA2 authentication without deauthenticating clients.
Do the fake authentication to a WiFi network with non-existing MAC address and keep the
connection alive:
If MAC address filtering is active, do the fake authentication to a WiFi network with an existing
MAC address:
To monitor the number of captured IVs, run airodump-ng against a WiFi network and watch the
#Data column (try to capture around 100k IVs):
Hitre Attack
This attack targets clients, not wireless access points. You must know the SSIDs of your target's
WiFi networks.
[Optional] Set up a fake WEP WiFi network if the real one is not present:
If needed, turn up the power of a wireless network interface to missassociate clients to the fake
WiFi network, see how in section 1. Configuration.
WPS PIN
Crack a WPS PIN:
4. Wordlists
You can find rockyou.txt inside /usr/share/wordlists/ directory or inside SecLists - a
useful collection of multiple types of wordlists for security assessments.
xmendez/wfuzz
assetnote/commonspeak2-wordlists
weakpass.com/wordlist
packetstormsecurity.com/Crackers/wordlists
Password Spraying
Find out how to generate a good password spraying wordlist from my other project, but first you
will need a few good keywords that describe your target.
Such keywords can be a company name, abbreviations, words that describe your target's
services, products, etc.
After you generate the wordlist, use it with aircrack-ng to crack a WPA/WPA2 handshake.
If strong password policy is enforced, passwords usually start with one capitalized word followed
by a few digits and one special character at the end (e.g. Password123!).
You can also use the generated wordlist with Hashcat, e.g. to crack NTLMv2 hashes that you
have collected using LLMNR responder, etc.
5. Post-Exploitation
If MAC address filtering is active, change the MAC address of a wireless interface to an existing
one:
ifconfig wlan0 down && macchanger --mac FF:FF:FF:FF:FF:FF && ifconfig wlan0 up
Once you get an access to a WiFi network, run the following tools:
yersinia -G
wireshark
Find out how to pipe tcpdump from WiFi Pineapple to Wireshark from my other poject.
Try to access the wireless access point's web interface. Search the Internet for default paths
and credentials.
6. Evil-Twin
Find out how to set up a fake authentication web page on a fake WiFi network with WiFi
Pineapple Mark VII Basic from my other project, as well as how to set up all the tools from this
cheat sheet.