SQLMap Cheatsheet
How to Install SQLMap
SQLMap installation:
Useful Commands for SQLMap
-u [URL]: Specify the target URL
--data [data]: Data string to be sent through POST
-p [parameter]: Specify the parameter to test for SQL injection
--dbs: Enumerate databases
--tables: Enumerate tables in a database
--columns: Enumerate columns in a table
--dump: Dump database table entries
--users: Enumerate database users
--passwords: Enumerate database users password hashes
--level [level]: Set the level of tests to perform (1-5)
--risk [risk]: Set the risk of tests to perform (1-3)
Examples of SQLMap Commands
Basic SQL injection test on a URL:
SQL injection test with POST data:
Enumerate databases:
Enumerate tables in a specific database:
Enumerate columns in a specific table:
Dump entries of a specific table:
Enumerate database users:
Enumerate database users password hashes: