This article is for educational purposes only. MDK3 should only be used on networks you own or have explicit written permission to test. Unauthorized use of deauthentication or beacon flooding attacks violates laws such as the Computer Fraud and Abuse Act (CFAA) in the US, the Computer Misuse Act in the UK, and similar laws globally. You assume all responsibility for your actions.
We’ll cover three reliable methods: APT package manager, source compilation from GitHub, and manual installation via the Kali repository.
make sudo make install
: If you encounter issues during installation, ensure your /etc/apt/sources.list is correctly configured to point to the official Kali Network Repositories . mdk3 | Kali Linux Tools mdk3 install kali linux
The basic syntax for MDK3 is:
This command uses:
In the world of wireless security auditing, few tools are as notorious—or as misunderstood—as mdk3 . MDK3 is a powerful, command-line-oriented tool designed for stress-testing IEEE 802.11 (Wi-Fi) networks. Unlike simpler deauthentication tools like aireplay-ng , MDK3 is a "swiss army knife" for layer 2 injection attacks. It can flood beacon frames, deauthenticate clients, confuse WDS (Wireless Distribution System) systems, and even perform brute-force attacks on hidden SSIDs. This article is for educational purposes only
Open your terminal and synchronize your repository index. sudo apt update Use code with caution. Install MDK3: Run the installation command. sudo apt install mdk3 -y Use code with caution.
MDK3 cannot function while the wireless interface is managed by the Network Manager. The interface must be placed in .
The power of MDK3 comes with significant responsibility. Using this tool against networks you do not own is in most jurisdictions and can result in severe penalties, including criminal charges. You assume all responsibility for your actions
To use MDK3 effectively, your wireless adapter must support:
sudo aireplay-ng -9 wlan0mon
: Sends fake AP (Access Point) beacons to confuse clients and site surveys. mdk3 wlan0mon b -c 1 Deauthentication Attack (