mdk4 command not found

In this troubleshooting guide we learn how to fix mdk4 command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

mdk4: command not found

or when using sudo you get the following error message

sudo: mdk4: command not found

Solutions to mdk4: command not found

How To Fix mdk4: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mdk4 is provided by mdk4 package.

mdk4 is:

This package contains a proof-of-concept tool to exploit common IEEE 802.11 protocol weaknesses.

MDK4 is a new version of MDK3. MDK4 is a Wi-Fi testing tool from E7mer of 360PegasusTeam, ASPj of k2wrlz, it uses the osdep library from the aircrack-ng project to inject frames on several operating systems.

IMPORTANT: It is your responsibility to make sure you have permission from the network owner before running MDK against it.

To fix this problem, we can install more using the command below.

sudo apt-get -y install mdk4

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install mdk4.

sudo apt -y install mdk4

Or if you have aptitude installed you can use the following command.

sudo aptitude install mdk4

Summary

In this tutorial we learn how to fix mdk4 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.