How to Install SQLmap in Linux?
Last Updated :
11 Feb, 2022
SQL Injection Vulnerability can be detected and exploited through various automated tools. It is an open-source cyber security tool that introduces its most powerful SQLi detection engine. All the task of flaw detection and gaining access to the database is done in an automated way. This tool is so powerful that it can extract passwords from a vulnerable database even if the passwords are in encrypted form. This tool is very smart in that it can detect the hash and also specify the type of hash which is been used to encrypt the password. This tool is developed in the Python Language and its cross platformed tool. It can work with Windows, Linux, Mac, and even with Termux.
Note: SQLmap is python based tool so it is necessary to install Python on your system. If Python is not installed in your system you can install using: Python Installation Steps on Linux
Installing SQLmap on Linux
Method 1: Installing SQLmap on Linux using git
Follow the below steps to install SQLmap on Linux:
Step 1: Firstly download the SQLmap tool tar file in your machine by using the below command.
wget 'https://github.com/sqlmapproject/sqlmap/tarball/master' --output-document=sqlmap.tar.gz

Step 2: Now run the below command to extract your SQLmap package from the tar file.
tar -xvf sqlmap.tar.gz

Step 3: Now use the following command to move into the directory of the tool in order to run the tool.
cd sqlmapproject-sqlmap-3b07b70

Step 4: Now use the following command to run the tool and check the version of the tool.
python3 sqlmap.py --version

Check the help section of the tool by using the following command.
python3 sqlmap.py -h

Method 2: Installing sqlmap package on Linux using PIP
To install the sqlmap package in Linux we have to follow the following steps:
Step 1: First of all, we will install Python3 on Linux Machine using the following command:
sudo apt-get install python3

Step 2: Now, install the pip module which is required to manage and install the Python3 packages using the following command:
sudo apt install python3-pip

Step 3: Now, install the sqlmap package by using the following command:
sudo pip3 install sqlmap

Verifying sqlmap package installation on Linux using PIP
To verify if the sqlmap package has been successfully installed in your system run the below command in Terminal:
python3 -m pip show sqlmap
You’ll get the following message if the installation is completed successfully on your system without any error:
Similar Reads
How to Install Scala in Linux? Prerequisite: Introduction to Scala Before, we start with the process of Installing Scala on our System. We must have first-hand knowledge of What the Scala Language is and what it actually does? Scala is a general-purpose, high-level, multi-paradigm programming language. It is a pure object-oriente
3 min read
How to Install SQL Client in Linux? The installation of MySQL client on Linux systems allows plenty possibilities to connect, manage and interact with MySQL databases straight from terminal. Whether itâs for Developers, Database Administrators or System Users, efficiently querying and managing databases requires setting up MySQL clien
3 min read
How to Install Sqlninja in Kali Linux SQL Injection is one of the most severe attacks on web applications that exploit the SQL Database and provide unauthorized access to the Database. This attack can be done through different techniques like Manual and Automated. The manual approach requires more effort as all the steps are to be carri
6 min read
How to Install SQLplus on Linux? Oracle database is a popular database commonly used in transaction processing, data warehousing, and various other applications. SQLplus is an interface that Oracle itself develops. The main purpose of SQLplus is to interact with the Oracle DB and run various queries or code. We can say SQLplus is a
3 min read
How to Install MySQL on Linux? MySQL is one of the most widely used relational database management systems (RDBMS) Known for its reliability, speed, and scalability. MySQL is used for data operations like querying, filtering, sorting, grouping, modifying, and joining the tables present in the database. It is the backbone of many
5 min read
How to Install SQL Developer in Linux? SQL Developer is a client application or a desktop application. We can install it in our local system & can access Oracle Database. Oracle provides it. Oracle has a server component & SQL Developer has a client component. By using SQL developer we can access the Oracle database. SQL Developm
3 min read
How to Install MySQL/MariaDB in Linux? Installing MySQL or MariaDB in Linux is a straightforward process that provides you with powerful relational database management systems (RDBMS). MySQL and MariaDB are both widely used for web applications, data storage, and other database tasks. They offer similar features, and MariaDB is often see
5 min read
How to Install npgsql in c#? Npgsql is a .NET data provider for PostgreSQL, a popular open-source database management system. It allows applications written in .NET languages (such as C# or VB.NET) to connect to and interact with a PostgreSQL database. Npgsql is an open-source .NET data provider for PostgreSQL, a popular open-s
2 min read
How to Install LISP on Linux? LISP (List programming) is the second-oldest high-level programming language after Fortran. It has a fully parenthesized prefix notation. Installing LISP on Linux:Follow the below steps to install LISP on Linux: Step 1: Install SBCL compiler. Steel Bank Common Lisp (SBCL) is the most common Lisp com
1 min read
How to Install Xampp in Linux XAMPP is a popular and free open-source platform primarily used for PHP development. It comes bundled with essential tools like Apache Web Server, MySQL (MariaDB), PHP, Perl, and more, making it a one-stop solution for web development. Installing and setting up XAMPP is streamlined, and the package
6 min read