SQLMap

Cheat Sheet Link https://cdn.comparitech.com/wp-content/uploads/2021/07/sqlmap-Cheat-Sheet.pdf

Target: At least one of these options has to be provided to define the target(s)

-u URL, --url=URL   Target URL (e.g. "http://www.site.com/vuln.php?id=1")
-d DIRECT           Connection string for direct database connection
-l LOGFILE          Parse target(s) from Burp or WebScarab proxy log file
-m BULKFILE         Scan multiple targets given in a textual file
-r REQUESTFILE      Load HTTP request from a file
-g GOOGLEDORK       Process Google dork results as target URLs
-c CONFIGFILE       Load options from a configuration INI filecode
sqlmap -r req.txt -p namePeople

SQLmap Tutorial Enumeration

--current-user      Retrieve DBMS current user
--current-db        Retrieve DBMS current database
--hostname          Retrieve DBMS server hostname
--is-dba            Detect if the DBMS current user is DBA
--users             Enumerate DBMS users
--passwords         Enumerate DBMS users password hashes
--privileges        Enumerate DBMS users privileges

Dump Everything

Read All Databases

Read Current User

Read Hostname

Read User Privileges

SQLmap File System Access - These options can be used to access the back-end database management system underlying file system

Read File From Remote System

Upload File to Remote System

SQLmap Operating System Access - These options can be used to access the back-end database management system underlying operating system

SQLmap Windows Registry Access - These options can be used to access the back-end database management system Windows registry

SQLmap with Anonymity

SQLmap over Proxy

SQLmap over TOR

Last updated