SQLMap is the detection-and-exploitation workhorse for SQL injection. Point it at a parameter, let it fingerprint, then ride its boundary/payload engine from a single quote all the way to an OS shell. This module covers how to feed it real-world requests, tune its noise, beat WAFs with tamper scripts, and escalate a confirmed SQLi into a file read, file write, or --os-shell.
Quick Reference
- 📋 Cheatsheet & Checklist — one-liners, flags, tampers, and a full methodology
Sections
- Overview & Setup — install, supported DBMSes, injection techniques (BEUSTQ)
- Building Attacks —
-u,-r,--data,--cookie,--headers, injection marks - Handling Errors —
--parse-errors,-v 6,-t, routing through Burp - Attack Tuning —
--level,--risk,--technique,--threads,--dbms - Database Enumeration —
--dbs,--tables,--columns,--dump,--schema,--search - Bypassing Protections — tamper scripts,
--random-agent,--proxy,--tor, CSRF tokens - OS Exploitation —
--os-shell,--os-cmd,--os-pwn,--file-read,--file-write
