SQLMAP(1)
π SQLMAP(1) β like, the whole manual bestie π
okay so you opened the manual for sqlmap and honestly? iconic choice. it's an automatic SQL injection tool and it's lowkey a whole legend. this is the User Commands page, page one of one, and we're gonna get through it together. grab a snack π
β¨ NAME β¨
sqlmap β automatic SQL injection tool
periodt. that's the name. that's what it does.
π¦ SYNOPSIS π¦
python3 sqlmap [options]
that's it. that's the whole vibe. python3 runs it, and then you feed it [options] like you're ordering a very specific drink π
π DESCRIPTION π
no cap, the description is literally a little mascot. here it is in all its glory, verbatim, because I would never mess with the art:
___
__H__
___ ___[']_____ ___ ___
{1.7.10#stable}
|_ -| . [,] | .'| . | |___|_ [)]_|_|_|__,| _|
|_|V...
|_| https://sqlmap.org
look at her. she's got the version number 1.7.10#stable right in the middle and the homepage https://sqlmap.org at the bottom. main character energy fr fr π
π OPTIONS π
this is the long part and I'm not skipping a single one, bestie. we're going the whole way down. buckle up π«Ά
πΈ the basics
-h,--helpβ shows the basic help message and dips (exits)-hhβ shows the advanced help message and dips. yeah she has two help modes, she's extra and we love her--versionβ prints the program's version number and exits-v VERBOSEβ verbosity level:0-6(default1)
π― Target
At least one of these options has to be provided to define the target(s)
like, you have to tell her what to attack, she's not psychic bestie π
-u URL,--url=URLβ target URL (e.g."http://www.site.com/vuln.php?id=1")-g GOOGLEDORKβ process Google dork results as target URLs
π‘ Request
these ones are for telling her how to connect to the target URL, like giving her the wifi password
--data=DATAβ data string to be sent throughPOST(e.g."id=1")--cookie=COOKIEβ HTTPCookieheader value (e.g."PHPSESSID=a8d127e..")--random-agentβ use a randomly selected HTTPUser-Agentheader value--proxy=PROXYβ use a proxy to connect to the target URL--torβ use Tor anonymity network--check-torβ check to see if Tor is used properly
π Injection
these ones say which parameters to test for, let you bring custom injection payloads, and let you add optional tampering scripts
-p TESTPARAMETERβ testable parameter(s)--dbms=DBMSβ force back-end DBMS to provided value
π Detection
these customize the detection phase, aka the "is there even anything here" era
--level=LEVELβ level of tests to perform (1-5, default1)--risk=RISKβ risk of tests to perform (1-3, default1)
π§ Techniques
these tweak the testing of specific SQL injection techniques
--technique=TECH..β SQL injection techniques to use (default"BEUSTQ")
π Enumeration
these are for enumerating the back-end database management system's information, structure, and the data chilling inside the tables
-a,--allβ retrieve everything-b,--bannerβ retrieve DBMS banner--current-userβ retrieve DBMS current user--current-dbβ retrieve DBMS current database--passwordsβ enumerate DBMS users password hashes--dbsβ enumerate DBMS databases--tablesβ enumerate DBMS database tables--columnsβ enumerate DBMS database table columns--schemaβ enumerate DBMS schema--dumpβ dump DBMS database table entries--dump-allβ dump all DBMS databases tables entries-D DBβ DBMS database to enumerate-T TBLβ DBMS database table(s) to enumerate-C COLβ DBMS database table column(s) to enumerate
π₯οΈ Operating system access
these let you get at the operating system sitting underneath the back-end database management system. yeah. underneath. π³
--os-shellβ prompt for an interactive operating system shell--os-pwnβ prompt for an OOB shell, Meterpreter or VNC
βοΈ General
general working parameters, the little housekeeping besties
--batchβ never ask for user input, use the default behavior--flush-sessionβ flush session files for current target
π Miscellaneous
these do not fit into any other category and honestly? relatable. they're the ones that live outside the boxes
--wizardβ simple wizard interface for beginner users
and that's the whole page, bestie, every single flag accounted for, nothing skipped, nothing invented π
reminder: at least one target option is required, so don't just run her with no target and then act surprised, iykyk π
π
okay and for the cute sign-off: this page is sqlmap v1.7.10, dated October 2023, and it lives on the SQLMAP(1) manual page. slay. go inject responsibly (like, legally, with permission, please) β¨ππ¦
π¦ where this page comes from
- debian trixie: sqlmap 1.9.6-1 Β· GPL-2+-custom
- ubuntu noble: sqlmap 1.8.4-1 Β· GPL-2+-custom
- ubuntu questing: sqlmap 1.9.9-1
- ubuntu resolute: sqlmap 1.10.4-1 Β· GPL-2+-custom
- ubuntu stonking: sqlmap 1.10.10-1 Β· GPL-2+-custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms