當我們完成路徑掃描後,下一步就是檢測這些發現的網頁服務是否存在安全漏洞。今天要介紹幾個強大的網頁漏洞掃描工具!
經典的網頁伺服器掃描工具,專門檢測常見的網頁安全問題。
基本用法:
# 基本掃描
nikto -h http://target.com
# 掃描特定端口
nikto -h http://target.com -p 80,443,8080
# 輸出結果到檔案
nikto -h http://target.com -o scan_results.html -Format html
檢測項目:
OWASP 開發的開源網頁安全測試工具,功能全面且持續更新。
主要功能:
基本操作:
# 啟動 ZAP
zap.sh -daemon -port 8080 -config api.disablekey=true
# 命令列快速掃描
zap-baseline.py -t http://target.com
現代化的漏洞掃描器,使用 YAML 模板進行快速檢測。
基本用法:
# 安裝 nuclei
go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest
# 基本掃描
nuclei -u http://target.com
# 使用特定模板
nuclei -u http://target.com -t cves/
# 批量掃描
nuclei -l targets.txt -o results.txt
模板類別:
專業級網頁應用程式安全測試平台,包含多種測試工具。
核心功能:
使用流程:
專門檢測 SQL 注入漏洞的強大工具。
基本用法:
# 檢測 GET 參數
sqlmap -u "http://target.com/page.php?id=1"
# 檢測 POST 資料
sqlmap -u "http://target.com/login.php" --data="username=admin&password=test"
# 使用 cookie
sqlmap -u "http://target.com/page.php" --cookie="PHPSESSID=abc123"
# 檢測並嘗試取得資料庫內容
sqlmap -u "http://target.com/page.php?id=1" --dbs --tables --dump
Python 編寫的網頁應用程式漏洞掃描器,檢測多種攻擊向量。
基本用法:
# 基本掃描
wapiti -u http://target.com
# 設定模組
wapiti -u http://target.com -m sql,xss,file
# 設定輸出格式
wapiti -u http://target.com -f html -o /path/to/report
# 第一階段:快速概覽
nuclei -u http://target.com -t technologies/
# 第二階段:深度掃描
nikto -h http://target.com
zap-baseline.py -t http://target.com
# 第三階段:特定漏洞測試
sqlmap -u "http://target.com/page.php?id=1"
# 避免過於激進的掃描
nuclei -u http://target.com -rate-limit 10
nikto -h http://target.com -Tuning 1,2,3
# Nuclei 產生詳細報告
nuclei -u http://target.com -json-export results.json
# ZAP 產生 HTML 報告
zap-cli report -o security_report.html -f html
⚠️ 進行漏洞掃描前必須注意: