sqlmap command not found

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

Introduction

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

sqlmap: command not found

or when using sudo you get the following error message

sudo: sqlmap: command not found

Solutions to sqlmap: command not found

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

In Ubuntu sqlmap is provided by sqlmap package.

sqlmap is:

sqlmap goal is to detect and take advantage of SQL injection vulnerabilities in web applications. Once it detects one or more SQL injections on the target host, the user can choose among a variety of options to perform an extensive back-end database management system fingerprint, retrieve DBMS session user and database, enumerate users, password hashes, privileges, databases, dump entire or user’s specific DBMS tables/columns, run his own SQL statement, read specific files on the file system and more.

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

sudo apt-get -y install sqlmap

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

You can also use apt command to install sqlmap.

sudo apt -y install sqlmap

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

sudo aptitude install sqlmap

Summary

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