Tutorial Install and Run SQLMap on Kali Linux

Tutorial Install and Run SQLMap on Kali Linux

One of the most important types of attacks in the web world is the SQL injection attack that injects SQL codes in the URL and executes the desired commands. Many tools are available to test this attack’s penetration, and SQLMap is one of the most famous for SQL injection attacks. This article will teach you How to Install and Run SQLMap on Kali Linux. If you want to purchase a Linux VPS server, you can check out packages offered on the Eldernode website.

How to Install and Run SQLMap on Kali Linux

Recommended Article: Tutorial Install And Run Bluelog On Kali Linux [Security]

What is SQLMap?

SQLMap is an open-source generation testing tool in Python programming language for SQL Injection. It is available in Kali Linux by default and has a potent detection engine that can easily detect bugs. This powerful tool supports a wide range of databases such as MySQL, Oracle, PostgreSQL, Microsoft SQL, IBM DB2, SQLite, etc.

SQLMap automates the process of detecting and exploiting SQL injection flaws and taking over database servers. Attackers can use the tool to get into a database and potentially the server. It has an option to provide the attacker with an OS shell, with which the attacker can execute any arbitrary OS commands. This tool was developed by Bernardo Damele and Miroslav Stampar.

SQLMap Features

– Connect to the database directly without SQL injection using login

– Support for various SQL injection techniques such as Boolean based, Time base blind, Union query, and Error based.

– Create table entries locally after extraction for readability.

Install SQLMap on Kali Linux

In this section, we will teach you how to install SQLMap on Kali Linux. You can do this by running the following commands.

First, you should update your system by entering the following command:

sudo apt update

Now run the following command to install SQLMap:

sudo apt install sqlmap

Also, you can install SQLMap using aptitude but first, you should install aptitude since aptitude is not installed by default on Kali Linux. To do this enter the following command:

sudo apt install aptitude

And to install SQLMap using aptitude just run the following command:

sudo aptitude install sqlmap

How to Run SQLMap on Kali Linux

You can access the SQLMap with the following command:


To get the automatic SQL injection tool use the following command:

sqlmap -h

How to Remove SQLMap Configuration and all of its Dependencies

You can remove SQLMap configurations, data, and all of its dependencies using the following command:

sudo apt-get -y autoremove --purge sqlmap


[sp_easyaccordion id=”38304″]


The SQLMap tool is one of the most famous SQL injection tools, which quickly provides the possibility of testing penetration into the website through SQL injection. It uses a very powerful detection engine that can quickly detect vulnerabilities related to SQL. In this article, we taught you how to install and run SQLMap on Kali Linux. I hope this article was useful for you. If you have any questions, you can contact us in the comments.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

View More Posts
Marilyn Bisson
Content Writer
Eldernode Writer
We Are Waiting for your valuable comments and you can be sure that it will be answered in the shortest possible time.

    Leave Your Comment

    Your email address will not be published.

    We are by your side every step of the way

    Think about developing your online business; We will protect it compassionately

    We are by your side every step of the way


    7 days a week, 24 hours a day