Ultimate Wfuzz Cheat Sheet



Ultimate Wfuzz Cheat Sheet

A reference guide for the web application fuzzer. Brute force everything with payloads.

1. Basic Syntax

The fundamental structure of a Wfuzz command.

wfuzz -c -z [payload] [options] [URL]

Essential Flags

  • -c : Colorized output
  • -z [PAYLOAD] : Specify payload
  • -w [FILE] : Wordlist payload
  • -t [N] : Number of threads

Basic Fuzzing

  • wfuzz -c -w wordlist.txt http://example.com/FUZZ : Directory fuzz
  • wfuzz -c -z range,1-100 http://example.com/id=FUZZ : ID fuzz
  • wfuzz -c -z list,admin-test http://example.com/FUZZ : Custom list
  • wfuzz -c -w words.txt -t 50 http://example.com/FUZZ : 50 threads
Pro Tip: FUZZ Keyword
The FUZZ keyword marks where payloads are injected. Wfuzz replaces FUZZ with each payload item. Use FUZZ in URL path, parameters, headers, or POST data.

2. Payloads & Fuzzing

Wordlist Payload

Use wordlist file as payload source.

wfuzz -c -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt http://example.com/FUZZ

Range Payload

Generate numeric range payloads.

wfuzz -c -z range,1-1000 http://example.com/page.php?id=FUZZ

List Payload

Use comma-separated list as payload.

wfuzz -c -z list,admin-login-dashboard-test http://example.com/FUZZ

File Payload

Read payloads from file without wordlist flag.

wfuzz -c -z file,/path/to/wordlist.txt http://example.com/FUZZ

Hex Range Payload

Generate hexadecimal range payloads.

wfuzz -c -z range,0x00-0xff http://example.com/param=FUZZ

Multiple Payloads

Use multiple FUZZ positions with different payloads.

wfuzz -c -z list,admin-user -z range,1-100 http://example.com/FUZZ?id=FUZ2Z
Payload TypeSyntaxDescription
file-z file,pathRead from file
list-z list,item1-item2Comma-separated list
range-z range,1-100Numeric range
hexrand-z range,0x00-0xffHex range
stdin-z stdinFrom standard input

3. Filtering & Hiding

Hide by Response Code

Hide specific HTTP status codes.

wfuzz -c -w words.txt --hc 404,500 http://example.com/FUZZ

Show by Response Code

Show only specific HTTP status codes.

wfuzz -c -w words.txt --sc 200,301,302 http://example.com/FUZZ

Hide by Character Count

Hide responses with specific character count.

wfuzz -c -w words.txt --hh 1234 http://example.com/FUZZ

Hide by Word Count

Hide responses with specific word count.

wfuzz -c -w words.txt --hw 10 http://example.com/FUZZ

Hide by Line Count

Hide responses with specific line count.

wfuzz -c -w words.txt --hl 25 http://example.com/FUZZ

Show by Regex

Show only responses matching regex.

wfuzz -c -w words.txt --ss "admin|login" http://example.com/FUZZ
Filter FlagDescription
--hc [CODES]Hide status codes
--sc [CODES]Show only status codes
--hh [COUNT]Hide by character count
--sh [COUNT]Show by character count
--hw [COUNT]Hide by word count
--sw [COUNT]Show by word count
--hl [COUNT]Hide by line count
--sl [COUNT]Show by line count
--hs [REGEX]Hide by regex
--ss [REGEX]Show by regex
Pro Tip: Baseline Filtering
First run without filters to find the baseline response size. Then use --hh to hide that size and reveal only interesting responses that differ.

4. Attack Types

Directory Brute Forcing

Discover hidden directories and files.

wfuzz -c -w /usr/share/wordlists/dirb/common.txt --hc 404 http://example.com/FUZZ

Parameter Fuzzing

Fuzz GET parameters for vulnerabilities.

wfuzz -c -z list,1-2-3-4-5 --hc 404 http://example.com/page.php?id=FUZZ

POST Data Fuzzing

Fuzz POST parameters.

wfuzz -c -w passwords.txt -d "username=admin&password=FUZZ" http://example.com/login.php

Header Fuzzing

Fuzz HTTP headers (User-Agent, X-Forwarded-For, etc.).

wfuzz -c -w user-agents.txt -H "User-Agent: FUZZ" http://example.com

Cookie Fuzzing

Fuzz cookie values for session issues.

wfuzz -c -z range,1-1000 -b "session=FUZZ" http://example.com/admin

Subdomain Fuzzing

Discover subdomains via Host header fuzzing.

wfuzz -c -w subdomains.txt -H "Host: FUZZ.example.com" --hc 404 http://example.com

SQL Injection Testing

Test parameters for SQL injection.

wfuzz -c -z list,"' OR '1'='1"-"admin'--"-"' UNION SELECT NULL--" http://example.com/page.php?id=FUZZ
Warning:

SQL injection and authentication fuzzing can damage data or lock accounts. Only test on authorized targets and understand the potential impact before launching attacks.

5. Advanced Features

Custom Headers

Add custom headers to requests.

wfuzz -c -w words.txt -H "Authorization: Bearer TOKEN123" -H "X-Custom: Test" http://example.com/FUZZ

Cookie Support

Send cookies with requests.

wfuzz -c -w words.txt -b "session=abc123; theme=dark" http://example.com/FUZZ

Proxy Support

Route traffic through proxy (Burp Suite).

wfuzz -c -w words.txt -p 127.0.0.1:8080 http://example.com/FUZZ

Authentication

Basic authentication support.

wfuzz -c -w words.txt --basic user:pass http://example.com/FUZZ

Follow Redirects

Automatically follow HTTP redirects.

wfuzz -c -w words.txt -L http://example.com/FUZZ

Recursive Fuzzing

Recursively fuzz discovered directories.

wfuzz -c -w words.txt -R 3 http://example.com/FUZZ

Connection Persistence

Use persistent connections for speed.

wfuzz -c -w words.txt -Z http://example.com/FUZZ
Advanced FlagDescription
-H [HEADER]Add custom header
-b [COOKIE]Send cookie
-p [PROXY]Use proxy
--basic [CREDS]Basic auth
-LFollow redirects
-R [DEPTH]Recursive fuzzing
-ZPersistent connections

6. Output & Automation

Save Results

Export results to a file.

wfuzz -c -w words.txt -f results.txt http://example.com/FUZZ

JSON Output

Export results in JSON format.

wfuzz -c -w words.txt -f results.json,json http://example.com/FUZZ

CSV Output

Export results in CSV format.

wfuzz -c -w words.txt -f results.csv,csv http://example.com/FUZZ

HTML Report

Generate HTML report with results.

wfuzz -c -w words.txt -f results.html,html http://example.com/FUZZ

Interactive Mode

Launch interactive result viewer.

wfuzz -c -w words.txt --interactive http://example.com/FUZZ

Pipeline with Other Tools

Pipe results to other tools.

wfuzz -c -w words.txt --hc 404 -f - http://example.com/FUZZ | grep "200"
Output FlagDescription
-f [FILE]Save results to file
-f [FILE],jsonJSON output format
-f [FILE],csvCSV output format
-f [FILE],htmlHTML report
--interactiveInteractive mode
-vVerbose output
Pro Tip: Encoders
Wfuzz supports encoders to transform payloads. Use -e to list encoders. Common encoders: base64, urlencode, md5, sha1. Apply with --zP flag.
⇧