samdump2 command not found

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

Introduction

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

samdump2: command not found

or when using sudo you get the following error message

sudo: samdump2: command not found

Solutions to samdump2: command not found

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

In Ubuntu samdump2 is provided by samdump2 package.

samdump2 is:

This tool is designed to dump Windows 2k/NT/XP password hashes from a SAM file, using the syskey bootkey from the system hive.

This package also provides the functionality of bkhive, which recovers the syskey bootkey from a Windows NT/2K/XP system hive.

Syskey is a Windows feature that adds an additional encryption layer to the password hashes stored in the SAM database.

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

sudo apt-get -y install samdump2

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

You can also use apt command to install samdump2.

sudo apt -y install samdump2

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

sudo aptitude install samdump2

Summary

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