Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
mdk4 — IEEE 802.11 Wi-Fi testing tool for protocol weakness exploitation, including beacon flooding, deauthentication, packet fuzzing, and IDS evasion. Supports dual-card injection and 2.4/5GHz. | Kitploit
Tools/GitHubGitHub/aircrack-ng/mdk4
Wi-Fi AuditingVulnerability AnalysisExploitationIDS/IPS EvasionFuzzingWireless SecurityPenetration TestingRed Teaming
GitHubaircrack-ng/mdk4

mdk4

IEEE 802.11 Wi-Fi testing tool for protocol weakness exploitation, including beacon flooding, deauthentication, packet fuzzing, and IDS evasion. Supports dual-card injection and 2.4/5GHz.

View Repository
800135834 months agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

MDK4

MDK is a proof-of-concept tool to exploit common IEEE 802.11 protocol weaknesses.

About MDK4

MDK4 is a new version of MDK3.

MDK4 is a Wi-Fi testing tool from E7mer, ASPj of k2wrlz, it uses the osdep library from the aircrack-ng project to inject frames on several operating systems. Many parts of it have been contributed by the great aircrack-ng community: Antragon, moongray, Ace, Zero_Chaos, Hirte, thefkboss, ducttape, telek0miker, Le_Vert, sorbo, Andy Green, bahathir, Dawid Gajownik and Ruslan Nabioullin. THANK YOU!

MDK4 is licenced under the GPLv3 or later.

Installation

	apt-get install pkg-config libnl-3-dev libnl-genl-3-dev libpcap-dev 

	git clone https://github.com/aircrack-ng/mdk4
	cd mdk4
	make
	sudo make install
	# Using Arch Linux (and derived) append `CC=clang` after any `make` in commands. 

Features

  • Supports two WiFi card (one for receiving data, another for injecting data).
  • Supports block the specified ESSID/BSSID/Station MAC in command option.
  • Supports both 2.4 to 5GHz (Linux).
  • supports IDS Evasion (Ghosting, Fragmenting, Does not fully work with every driver).
  • supports packet fuzz testing.
  • supports Proof-of-concept of WiFi protocol implementation vulnerability testing

ATTACK MODE

	ATTACK MODE b: Beacon Flooding
	  Sends beacon frames to show fake APs at clients.
	  This can sometimes crash network scanners and even drivers!
	ATTACK MODE a: Authentication Denial-Of-Service
	  Sends authentication frames to all APs found in range.
	  Too many clients can freeze or reset several APs.
	ATTACK MODE p: SSID Probing and Bruteforcing
	  Probes APs and checks for answer, useful for checking if SSID has
	  been correctly decloaked and if AP is in your sending range.
	  Bruteforcing of hidden SSIDs with or without a wordlist is also available.
	ATTACK MODE d: Deauthentication and Disassociation
	  Sends deauthentication and disassociation packets to stations
	  based on data traffic to disconnect all clients from an AP.
	ATTACK MODE m: Michael Countermeasures Exploitation
	  Sends random packets or re-injects duplicates on another QoS queue
	  to provoke Michael Countermeasures on TKIP APs.
	  AP will then shutdown for a whole minute, making this an effective DoS.
	ATTACK MODE e: EAPOL Start and Logoff Packet Injection
	  Floods an AP with EAPOL Start frames to keep it busy with fake sessions
	  and thus disables it to handle any legitimate clients.
	  Or logs off clients by injecting fake EAPOL Logoff messages.
	ATTACK MODE s: Attacks for IEEE 802.11s mesh networks
	  Various attacks on link management and routing in mesh networks.
	  Flood neighbors and routes, create black holes and divert traffic!
	ATTACK MODE w: WIDS Confusion
	  Confuse/Abuse Intrusion Detection and Prevention Systems by
	  cross-connecting clients to multiple WDS nodes or fake rogue APs.
	ATTACK MODE f: Packet Fuzzer
	  A simple packet fuzzer with multiple packet sources
	  and a nice set of modifiers. Be careful!
	ATTACK MODE x: Poc Testing
	  Proof-of-concept of WiFi protocol implementation vulnerability,
	  to test whether the device has wifi vulnerabilities.
	  It may cause the wifi connection to be disconnected or the target device to crash.

Usage

	mdk4 <interface> <attack_mode> [attack_options]
	mdk4 <interface in> <interface out> <attack_mode> [attack_options]

	Try mdk4 --fullhelp for all attack options
	Try mdk4 --help <attack_mode> for info about one attack only

FULL OPTIONS:

	ATTACK MODE b: Beacon Flooding
	  Sends beacon frames to generate fake APs at clients.
	  This can sometimes crash network scanners and drivers!
	      -n <ssid>
		 Use SSID <ssid> instead of randomly generated ones
	      -a
		 Use also non-printable caracters in generated SSIDs
		 and create SSIDs that break the 32-byte limit
	      -f <filename>
		 Read SSIDs from file
	      -v <filename>
		 Read MACs and SSIDs from file. See example file!
	      -t <adhoc>
		 -t 1 = Create only Ad-Hoc network
		 -t 0 = Create only Managed (AP) networks
		 without this option, both types are generated
	      -w <encryptions>
		 Select which type of encryption the fake networks shall have
		 Valid options: n = No Encryption, w = WEP, t = TKIP (WPA), a = AES (WPA2)
		 You can select multiple types, i.e. "-w wta" will only create WEP and WPA networks
	      -b <bitrate>
		 Select if 11 Mbit (b) or 54 MBit (g) networks are created
		 Without this option, both types will be used.
	      -m
		 Use valid accesspoint MAC from built-in OUI database
	      -h
		 Hop to channel where network is spoofed
		 This is more effective with some devices/drivers
		 But it reduces packet rate due to channel hopping.
	      -c <chan>
		 Create fake networks on channel <chan>. If you want your card to
		 hop on this channel, you have to set -h option, too.
	      -i <HEX>
		 Add user-defined IE(s) in hexadecimal at the end of the tagged parameters
	      -s <pps>
		 Set speed in packets per second (Default: 50)

	ATTACK MODE a: Authentication Denial-Of-Service
	  Sends authentication frames to all APs found in range.
	  Too many clients can freeze or reset several APs.
	      -a <ap_mac>
		 Only test the specified AP
	      -m
		 Use valid client MAC from built-in OUI database
	      -i <ap_mac>
		 Perform intelligent test on AP
		 This test connects clients to the AP and reinjects sniffed data to keep them alive.
	      -s <pps>
		 Set speed in packets per second (Default: unlimited)

	ATTACK MODE p: SSID Probing and Bruteforcing
	  Probes APs and checks for answer, useful for checking if SSID has
	  been correctly decloaked and if AP is in your sending range.
	  Bruteforcing of hidden SSIDs with or without a wordlist is also available.
	      -e <ssid>
		 SSID to probe for
	      -f <filename>
		 Read SSIDs from file for bruteforcing hidden SSIDs
	      -t <bssid>
		 Set MAC address of target AP
	      -s <pps>
		 Set speed (Default: 400)
	      -b <character sets>
		 Use full Bruteforce mode (recommended for short SSIDs only!)
		 You can select multiple character sets at once:
		 * n (Numbers:   0-9)
		 * u (Uppercase: A-Z)
		 * l (Lowercase: a-z)
		 * s (Symbols: ASCII)
	      -p <word>
		 Continue bruteforcing, starting at <word>.
	      -r <channel>
		 Probe request tests (mod-musket)

	ATTACK MODE d: Deauthentication and Disassociation
	  Sends deauthentication and disassociation packets to stations
	  based on data traffic to disconnect all clients from an AP.
	      -w <filename>
		 Read file containing MACs not to care about (Whitelist mode)
	      -b <filename>
		 Read file containing MACs to run test on (Blacklist Mode)
	      -s <pps>
		 Set speed in packets per second (Default: unlimited)
	      -x
		 Enable full IDS stealth by matching all Sequence Numbers
		 Packets will only be sent with clients' addresses
	      -c [chan,chan,...,chan[:speed]]
		 Enable channel hopping. When -c h is given, mdk4 will hop an all
		 14 b/g channels. Channel will be changed every 3 seconds,
		 if speed is not specified. Speed value is in milliseconds!
	      -E <AP ESSID>
		 Specify an AP ESSID to attack.
	      -B <AP BSSID>
		 Specify an AP BSSID to attack.
	      -S <Station MAC address>
		 Specify a station MAC address to attack.
		  -W <Whitelist Station MAC address>
		 Specify a whitelist station MAC.
Download Tool