sqlmap-cheat-sheet (1)
sqlmap-cheat-sheet (1)
-v <verbosity> Set verbosity level (0-6) Option Description --current-db Retrieve current database
--batch Don't ask for user input --level=LEVEL Level of tests to perform (1-5) --dbs List databases
--risk=RISK Risk of tests to perform (1-3) --tables List tables
Target specification --technique=<techniques>
SQL injection techniques to use --columns List columns
(default "BEUSTQ", see below)
Option Description --schema Enumerate database schema
-u <url> Target URL --dump Dump table entries
Injection techniques
Scan target URLs from a given Dump table entries for all
-m <file> Technique Description --dump-all
text file databases
-g <query> Target Google dork result URLs Appends AND/OR to test for -D <database> Database to enumerate
Boolean-based blind (B)
true/false responses
Crawl a website starting from the -T <table> Table(s) to enumerate
--crawl=<depth> Error-based (E) Forces DBMS to generate an error
target URL
-C <column> Table column(s) to enumerate
UNION query-based (U) Appends UNION SELECT
--file-read=<file> Read a file from the file system
HTTP request options Stacked queries (S)
Appends ; to execute multiple
queries --os-shell Prompt for an interactive shell
Option Description
--data 'uid=1&name=test' Send a POST request with data Appends SLEEP() to delay
Time-based blind (T)
response Output
-H <header> Specify a header
Inline queries (Q) Appends inline queries Option Description
--cookie='PHPSESSID=1234' Specify a cookie header
-t <file> Save requests and responses to a file
--user-agent=<ua> HTTP user-agent header value
© Nth Root Software Consultancy - Last updated on January 16, 2024 - Find more cheat sheets at nth-root.nl/en/cheat-sheets