Security tool · inject
sqlmap
The definitive automatic SQL injection and database takeover tool. Deep detection and exploitation across many DBMSes.
Overview
Where sqlmap fits
The definitive automatic SQL injection and database takeover tool. Deep detection and exploitation across many DBMSes.
Detection-first use
Start with the least intrusive template that can distinguish your hypothesis from a normal response. Preserve raw output and a negative control.
Install
Installation references
Install with gitAuthorization required
git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git- Positive signal
- Tool-specific output that supports the stated hypothesis.
- Negative control
- No result, or identical behavior against a known-safe control.
- Intrusiveness
- Review flags and target scope before execution.
Install with aptAuthorization required
sudo apt install -y sqlmap- Positive signal
- Tool-specific output that supports the stated hypothesis.
- Negative control
- No result, or identical behavior against a known-safe control.
- Intrusiveness
- Review flags and target scope before execution.
Test safely
Command templates
Test a URLAuthorization required
Populate placeholders only with assets that are explicitly in scope.
sqlmap -u '{url}' --batch --risk {risk} --level {level}- Positive signal
- Tool-specific output that supports the stated hypothesis.
- Negative control
- No result, or identical behavior against a known-safe control.
- Intrusiveness
- Review flags and target scope before execution.
From request fileAuthorization required
Populate placeholders only with assets that are explicitly in scope.
sqlmap -r {request} --batch --dbs- Positive signal
- Tool-specific output that supports the stated hypothesis.
- Negative control
- No result, or identical behavior against a known-safe control.
- Intrusiveness
- Review flags and target scope before execution.
Related
Continue the workflow
Sources
Attribution and verification
Version history: normalized permanent page created 2026-08-20. Upstream activity and popularity are separate signals and do not establish tool safety.