mfoc command not found

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

Introduction

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

mfoc: command not found

or when using sudo you get the following error message

sudo: mfoc: command not found

Solutions to mfoc: command not found

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

In Ubuntu mfoc is provided by mfoc package.

mfoc is:

MFOC is an open source implementation of “offline nested” attack by Nethemba.

This program allow one to recover authentication keys from MIFARE Classic card.

Please note that MFOC is able to recover keys from target only if it have a known key: default one (hardcoded in MFOC) or custom one (user provided using command line).

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

sudo apt-get -y install mfoc

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

You can also use apt command to install mfoc.

sudo apt -y install mfoc

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

sudo aptitude install mfoc

Summary

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