genpmk command not found

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

Introduction

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

genpmk: command not found

or when using sudo you get the following error message

sudo: genpmk: command not found

Solutions to genpmk: command not found

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

In Ubuntu genpmk is provided by cowpatty package.

cowpatty is:

If you are auditing WPA-PSK or WPA2-PSK networks, you can use this tool to identify weak passphrases that were used to generate the PMK. Supply a libpcap capture file that includes the 4-way handshake, a dictionary file of passphrases to guess with, and the SSID for the network.

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

sudo apt-get -y install cowpatty

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

You can also use apt command to install cowpatty.

sudo apt -y install cowpatty

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

sudo aptitude install cowpatty

Summary

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