dalfox: Parameter Analysis and XSS Scanning tool
What is DalFox
DalFox is a powerful open-source tool that focuses on automation, making it ideal for quickly scanning for XSS flaws and analyzing parameters. Its advanced testing engine and niche features are designed to streamline the process of detecting and verifying vulnerabilities.
Key features
Mode: url sxss pipe file server payload
Class | Key Feature | Description |
---|---|---|
Discovery | Parameter analysis | – Find reflected param – Find alive/bad special chars, event handler and attack code – Identification of injection points(HTML/JS/Attribute) inHTML-none inJS-none inJS-double inJS-single inJS-backtick inATTR-none inATTR-double inATTR-single |
Static analysis | – Check bad-header like CSP, XFO, etc.. with req/res base | |
BAV analysis | – Testing BAV(Basic Another Vulnerability) , e.g sqli ssti open-redirects , crlf , esii |
|
Parameter Mining | – Find new param with Dictionary attack (default is GF-Patterns) – Support custom dictionary file ( --mining-dict-word )– Find new param with DOM – Use remote wordlist to mining ( --remote-wordlists ) |
|
Built-in Grepping | – It Identify the basic info leak of SSTi, Credential, SQL Error, and so on | |
WAF Detection and Evasion | – Detect to WAF(Web Application Firewall). – if found waf and using special flag, evasion using slow request – --waf-evasion |
|
Scanning | XSS Scanning | – Reflected XSS / Stored XSS / DOM XSS – DOM base verifying – Headless base verifying – Blind XSS testing with param, header( -b , --blind options)– Only testing selected parameters ( -p , --param )– Only testing parameter analysis ( --only-discovery ) |
Friendly Pipeline | – Single url mode (dalfox url )– From file mode ( dalfox file urls.txt )– From IO(pipeline) mode ( dalfox pipe )– From raw http request file mode ( dalfox file raw.txt --rawdata ) |
|
Optimization query of payloads | – Check the injection point through abstraction and generated the fit payload. – Eliminate unnecessary payloads based on badchar |
|
Encoder | – All test payloads(built-in, your custom/blind) are tested in parallel with the encoder. – To Double URL Encoder – To HTML Hex Encoder |
|
Sequence | – Auto-check the special page for stored xss (--trigger )– Support ( --sequence ) options for Stored XSS , only sxss mode |
|
HTTP | HTTP Options | – Overwrite HTTP Method (-X , --method )– Follow redirects ( --follow-redirects )– Add header ( -H , --header )– Add cookie ( -C , --cookie )– Add User-Agent ( --user-agent )– Set timeout ( --timeout )– Set Delay ( --delay )– Set Proxy ( --proxy )– Set ignore return codes ( --ignore-return )– Load cookie from raw request ( --cookie-from-raw ) |
Concurrency | Worker | – Set worker’s number(-w , --worker ) |
N * hosts | – Use multicast mode (--multicast ) , only file / pipe mode |
|
Output | Output | – Only the PoC code and useful information is write as Stdout – Save output ( -o , --output ) |
Format | – JSON / Plain (--format ) |
|
Printing | – Silence mode (--silence )– You may choose not to print the color ( --no-color )– You may choose not to print the spinner ( --no-spinner )– You may choose show only special poc code ( --only-poc ) |
|
Report | – Show detail report (--report and --report-format=<plain/json> ) |
|
Extensibility | REST API | – API Server and Swagger (dalfox server ) |
Payload Mode | – Generate and Enumerate Payloads for XSS Testing (dalfox payload ) |
|
Found Action | – Lets you specify the actions to take when detected. – Notify, for example ( --found-action ) |
|
Custom Grepping | – Can grep with custom regular expressions on response – If duplicate detection, it performs deduplication ( --grep ) |
|
Custom Payloads | – Use custom payloads list file (--custom-payload )– Custom alert value ( --custom-alert-value )– Custom alert type ( --custom-alert-type ) |
|
Remote Payloads | – Use remote payloads from portswigger, payloadbox, etc.. (--remote-payloads ) |
|
Package | Package manager | – pkg.go.dev – homebrew with tap – snapcraft |
Docker ENV | – docker hub – github package of docker |
|
Other | – github action |
Install
go get -u github.com/hahwul/dalfox
Usage
Running from single url
$ dalfox -url http://testphp.vulnweb.com/listproducts.php\?cat\=123\&artist\=123\&asdf\=ff
Running from file
$ dalfox -iL urls_fileRunning from io(pipeline)
$ cat urls_file | dalfox -pipe
Other tips, See the wiki for detailed instructions!
Copyright (c) 2020 hahwul
Source: https://github.com/hahwul/