Web application · Open source (GNU GPLv2)

sqlmap

sqlmap is a free, open-source tool that automates the detection and exploitation of SQL injection vulnerabilities. Given a request with an injectable parameter, it fingerprints the backend database, confirms the injection type (boolean, error-based, time-based, union, stacked), and can then enumerate databases, tables and columns, dump data, read or write files, and in some cases run operating-system commands. It is the standard tool for testing and demonstrating SQL injection impact.

Last updated: 6 August 2026

What sqlmap is actually used for

sqlmap takes the manual grind out of SQL injection. A tester points it at a suspicious URL or a saved request file, and it works out whether the parameter is injectable and how, then supports the full exploitation chain: list the databases, pick a table, and dump its rows to prove the data is exposed. It supports many DBMSes, can use a saved Burp request for authenticated testing, and can escalate to file access or command execution where the configuration allows. It is used both to find injection and to show its real business impact.

Platforms

Linux · Windows · macOS

Licence

Open source (GNU GPLv2)

Commands worth knowing

sqlmap -u "https://example.com/item?id=1" --batch

Test a single parameter for SQL injection non-interactively.

sqlmap -u "https://example.com/item?id=1" --dbs

Enumerate the available databases once injection is confirmed.

sqlmap -u "https://example.com/item?id=1" -D shop --tables

List the tables inside a chosen database.

sqlmap -u "https://example.com/item?id=1" -D shop -T users --dump

Dump the rows of a specific table.

sqlmap -r request.txt --batch

Use a saved raw HTTP request (for example from Burp) to test authenticated endpoints.

sqlmap -u "https://example.com/item?id=1" --level=3 --risk=2

Increase test depth and risk to detect harder-to-find injections.

sqlmap -u "https://example.com/item?id=1" --os-shell

Attempt an interactive OS shell where the DBMS and privileges permit.

The legal line

sqlmap actively exploits injection and can read, modify or destroy data, so run it only against applications you own or are explicitly authorised, in writing, to test. Unauthorised use is a clear offence under the IT Act 2000. Even within scope, dumping live customer data can breach privacy obligations, so agree data-handling rules beforehand.

What sqlmap is bad at

Automated detection can miss context-specific injections and can trigger false positives; a human should confirm results. Aggressive options like --dump, --os-shell or high --risk can damage or overload production databases. WAFs and input filtering can block it, and it only tests injection, not other web vulnerability classes.

Alternatives, and when to pick them

ToolPick it when
Burp Suite (manual + scanner)You want to find and understand injection by hand or across a whole app.
GhauriYou want a sqlmap-style tool that handles some WAF/edge cases differently.
NoSQLMapThe backend is a NoSQL database such as MongoDB rather than SQL.
jSQL InjectionYou prefer a lightweight GUI for basic injection testing.
Manual payloadsYou need precise control to bypass filters sqlmap cannot handle automatically.

Where we teach it

Ethical Hacking Course (6 months) — web application security (injection) module

We are not affiliated with, endorsed by, or a reseller for the vendors of any tool on this site.

sqlmap — FAQs

What is sqlmap used for?

sqlmap automates finding and exploiting SQL injection. It detects whether a parameter is injectable, identifies the database, and can enumerate and dump its contents, helping testers prove the impact of an injection flaw.

Is it safe to run sqlmap --dump on a live site?

Only with authorisation and care. Dumping pulls real data and high-risk options can overload or corrupt a production database. On live systems, limit scope, avoid destructive flags, and agree data-handling rules first.

Does sqlmap work if there is a WAF?

A web application firewall can block or slow it. sqlmap has tamper scripts and tuning options that sometimes evade filtering, but a well-configured WAF may stop it, and evasion must still be within your authorised scope.

sqlmap se kisi bhi website ka data nikal sakte hain kya?

Sirf tab jab website mein SQL injection vulnerability ho aur aapko test karne ki permission ho. Bina authorisation kisi site par sqlmap chalana IT Act ke tahat jurm hai.

Learn sqlmap properly, in a legal lab

Free counselling call. We will tell you honestly whether a full course is worth it for what you actually want to do.

Call +91 75175 72000