A fast, async attack-surface mapper + fuzzer for authorized security testing — menu-driven, so there are no commands to memorize.
Point it at a site and it maps the surface for you (pages, parameters, forms,
API endpoints, backends, hidden routes, subdomains), then — if you want — attacks
what it found with the right payloads. Built in pure Python (asyncio +
aiohttp). It bundles the recon and attack steps you'd normally chain from
5 different tools into one, with an interactive menu up front.
⚠️ Legal notice: Use PhantomFuzz only against systems you own or are explicitly authorized to test. Unauthorized fuzzing/scanning may be illegal. You are responsible for how you use this tool.
phantomfuzz # or: pfYou get a menu — pick a number, answer a question or two, done:
What do you want to do? (no commands to memorize)
1) 🗺️ Map a site's attack surface — pages, params, forms, APIs, backends, routes
2) 🌐 Find subdomains — wildcard *.domain scope, passive OSINT
3) ⚔️ Attack a site — auto console — then pick the attack type
4) 🧙 ffuf wizard — menu-driven ffuf (checks it's installed)
5) 📖 Show the full command help
choice [1-5]:
Just want to see a site's surface and save time? Pick 1, paste the URL — it prints every page, parameter, form, API endpoint, backend, and hidden route it can find, and stops there. No attack, no wordlist, nothing to remember.
Prefer typing? Every menu item is also a one-liner:
phantomfuzz auto -u https://target.com --discover-only # 1) map the surface
phantomfuzz subs -u target.com --probe # 2) find live subdomains
phantomfuzz auto -u https://target.com # 3) attack (asks the mode)
phantomfuzz ffuf # 4) ffuf wizard📖 New here? INSTALL.md (Kali/Debian setup) · USAGE.md (every command explained).
| ⚡ Async engine | Hundreds of concurrent requests via aiohttp |
| 🎯 Multi-position | sniper, clusterbomb, pitchfork attack modes |
| 🧩 Fuzz anything | URL path, query params, headers, cookies, POST body |
| 🔎 Matchers & filters | by status, size, words, lines, regex, response time |
| 🤖 Auto-calibration | auto-detects and hides wildcard/catch-all responses |
| 🌀 Recursion | dives into discovered directories, depth-controlled |
| 🧬 Mutations | urlencode, case, doubling, reverse per payload |
| 📎 Extensions | append .php,.bak,.old … on the fly |
| 🚦 Rate control | concurrency, delay, and requests/sec limits |
| 🕵️ Proxy support | route through Burp/ZAP (--proxy) |
| 💾 Export | JSON, CSV, HTML report, or plain text |
| 📊 Live UI | colored results + progress bar, ETA, req/s |
🤖 Attack console (auto) |
one command: crawl → show the surface → attack it. Pick a mode (traversal/lfi/sqli/xss/redirect/ssrf) or context (auto-picks per param) or all. No wordlist needed |
| 🧠 Context payload selection | reads each param's name and fires the right attack (file=→traversal, id=→sqli, return_url=→redirect, q=→xss) |
| 🧾 Form fuzzing | crawler finds <form> inputs; the console fuzzes POST body fields too, not just URL query params |
🥷 WAF evasion (--evade) |
adaptive back-off, User-Agent rotation, jitter, rate cap, and payload-encoding retries that slip a blocked payload past signature filters |
📡 Live observability (-v) |
streams every request (status/latency/OK·WAF-BLOCK·429·TIMEOUT) + a plain-language diagnosis ("WAF blocking — 34/40 recent 403; backed off 2s") so a stall is never a mystery |
| 🛡️ Scope gate | never sends payloads off-scope — discovered third-party/SSO/CDN hosts are shown but not attacked (--scope, --allow-offsite) |
| ✏️ Editable payloads | curated attacks/*.txt per category — add a line, no code (payloads --local) |
| 🕷️ Crawler/spider | auto-discovers URLs, forms & parameters — no Burp needed |
🌐 Subdomain enum (subs) |
passive OSINT (crt.sh, certspotter, hackertarget) maps *.domain wildcard scopes — no amass/subfinder needed |
| 🧠 JS-bundle intel | mines SPA JS for hidden routes, API endpoints, backends (Supabase/Firebase/S3) & leaked keys — no headless browser |
| ⚡ Fast async engine | uvloop + worker-pool + lazy parsing — ~parity with ffuf under real network latency (see benchmark) |
🧙 ffuf wizard (ffuf) |
menu-driven ffuf — pick a task, it validates & auto-adapts your wordlist, asks rate/WAF-bypass, and warns instantly if the target is behind Cloudflare (so you don't fuzz the edge) |
| 🎁 PayloadsAllTheThings | 66 payload categories built in (-w patt:xss) |
Classic HTTP fuzzers (ffuf/wfuzz) hit five well-known walls. PhantomFuzz tackles each:
| # | ffuf limitation | PhantomFuzz answer |
|---|---|---|
| 1 | HTTP-only, can't touch SSH/FTP/DB ports | net subcommand — async TCP port scan, banner grab & raw-payload fuzzing |
| 2 | Stateless; you paste cookies by hand | --auth-url — runs the login flow, auto-extracts CSRF, captures session cookies & bearer tokens, reuses them |
| 3 | Blind to JS/SPA (React/Vue) routes | --render-discover / --render-seed — headless browser renders the app and captures real API endpoints + in-app routes |
| 4 | False positives from soft-404 / branded error pages | --smart — learns a baseline and filters responses by content similarity, not just status/size |
| 5 | Trips WAFs / rate-limiters instantly | auto --evade — detects blocking, auto-backs-off, jitters, rotates User-Agents, and retries blocked payloads with WAF-bypass encodings; -v streams a live diagnosis of why it's throttling |
| 7 | Blind to business-logic bugs (IDOR, price/param tampering, race conditions) | idor / tamper / race subcommands — differential analyzers that compare responses against a baseline to surface logic flaws automatically |
| + | You needed Burp to find URLs/params first | crawl subcommand — built-in spider maps the site (links, forms, params); --tamper auto-tests every param'd URL it finds |
| + | You had to hunt for attack payloads | payloads subcommand + patt: wordlists — bundles PayloadsAllTheThings (66 categories) as instant wordlists |
Measured on a 4-core VM, 10k-word list, same target. ffuf (Go) is the raw-speed king and this doesn't pretend otherwise:
| Condition | ffuf | PhantomFuzz | Notes |
|---|---|---|---|
| localhost, 0 ms latency | ~13,200 req/s | ~7,000 req/s | ffuf ~1.9× faster — pure CPU throughput, Go beats Python |
| 30 ms latency (real target) | ~5,700 req/s | ~5,100 req/s | ~90% of ffuf — network RTT dominates, so the gap nearly vanishes |
| behind a WAF | throttled | throttled | tool-agnostic — a WAF blocks traffic, not the binary; ffuf's speed can trip it sooner |
The honest verdict: ffuf is faster and more battle-tested as a pure fuzzer, and for raw directory brute-forcing you should probably still use it. PhantomFuzz isn't trying to win a req/s contest — it's an all-in-one recon→attack pipeline: subdomains → crawl → JS-intel → context-aware attacks → WAF evasion → business-logic checks, from one binary, no wordlist required. Under real network latency the speed difference is small; the feature breadth is the point.
📖 Full step-by-step guide with troubleshooting: INSTALL.md
git clone --recursive https://github.com/Oveek-Sur/phantomfuzz
cd phantomfuzz
python3 -m venv .venv && source .venv/bin/activate # venv is required on Kali
pip install -r requirements.txt
python -m phantomfuzz --helpOr the one-command installer (creates the venv + an optional global pf):
git clone --recursive https://github.com/Oveek-Sur/phantomfuzz
cd phantomfuzz && ./install.sh🩹 On modern Kali
pip installoutside a venv errors withexternally-managed-environment— the venv above avoids it (or usepipx install git+https://github.com/Oveek-Sur/phantomfuzz). See INSTALL.md.
Requires Python 3.8+. --recursive pulls the PayloadsAllTheThings payload
set (a git submodule).
# 1) Directory / endpoint discovery
python -m phantomfuzz -u https://target.tld/FUZZ -w wordlists/common.txt
# 2) Only show interesting codes, auto-hide wildcard noise, save a report
python -m phantomfuzz -u https://target.tld/FUZZ -w wordlists/common.txt \
-mc 200,204,301,302,401,403 -ac -o report.html -of htmlPut FUZZ wherever you want the wordlist injected.
Fuzz a query parameter
python -m phantomfuzz -u "https://target.tld/search?q=FUZZ" -w payloads.txt -fs 0POST body / login testing
python -m phantomfuzz -u https://target.tld/login -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "username=admin&password=FUZZ" -w passwords.txt -mc 302Two positions, every combination (clusterbomb)
python -m phantomfuzz -u "https://target.tld/FUZZ/FUZ2Z" \
-w dirs.txt:FUZZ -w files.txt:FUZ2Z -m clusterbombParallel positions (pitchfork) — user:pass pairs
python -m phantomfuzz -u https://target.tld/login -X POST \
-d "u=FUZZ&p=FUZ2Z" -w users.txt:FUZZ -w passwords.txt:FUZ2Z -m pitchforkRecursive directory brute-force with extensions
python -m phantomfuzz -u https://target.tld/FUZZ -w wordlists/common.txt \
-e .php,.bak,.old -r -rd 2 -acThrough Burp Suite proxy
python -m phantomfuzz -u https://target.tld/FUZZ -w wl.txt \
--proxy http://127.0.0.1:8080 -kHeader / virtual-host fuzzing
python -m phantomfuzz -u https://target.tld/ \
-H "Host: FUZZ.target.tld" -w subdomains.txt -ac# TCP port scan + service/banner detection
python -m phantomfuzz net --host 10.0.0.5 -p 1-1024
# raw payload fuzzing against one port (e.g. probe a Redis/custom TCP service)
python -m phantomfuzz net --host db.local -p 6379 -w commands.txt \
--send 'FUZZ\r\n' --match "OK"# form login with auto CSRF extraction, then fuzz the members area
python -m phantomfuzz -u https://target.tld/app/FUZZ -w wl.txt \
--auth-url https://target.tld/login \
--auth-data 'username=admin&password=Passw0rd' \
--csrf auto # auto-detects csrf_token / _token / authenticity_token …
# JSON API login → bearer token captured and sent as Authorization header
python -m phantomfuzz -u https://target.tld/api/FUZZ -w wl.txt \
--auth-url https://target.tld/api/login \
--auth-data 'email=me@x.com&password=secret'pip install playwright && playwright install chromium
# render the app, print the real API endpoints + client-side routes
python -m phantomfuzz -u https://spa.target.tld/ --render-discover -o endpoints.txt
# render first, then fuzz using the discovered path segments as the wordlist
python -m phantomfuzz -u https://spa.target.tld/FUZZ --render-seed# --smart learns a baseline from random paths and filters look-alikes by
# content similarity — catches 200-status "not found" pages ffuf shows as hits
python -m phantomfuzz -u https://target.tld/FUZZ -w wl.txt --smart --smart-threshold 0.9python -m phantomfuzz -u https://target.tld/FUZZ -w wl.txt \
--adaptive `# auto-slow-down when 403/429/503 or WAF pages appear` \
--jitter 0.4 `# random 0–0.4s per request` \
--random-agent `# rotate real browser User-Agents` \
-t 10 --rate 20 `# cap concurrency & requests/sec`These are differential analyzers: they establish a baseline, send a variant, and flag when the server's behavior changes in a way it shouldn't. They surface candidates for you to confirm — not automatic exploits.
# IDOR — enumerate object ids and detect ones you can access that aren't yours.
# --self-id is an object you legitimately own (the "authorized" baseline).
python -m phantomfuzz idor -u "https://target.tld/api/invoice/FUZZ" \
--range 1-500 --self-id 42 \
--auth-url https://target.tld/login --auth-data 'user=me&pass=pw'
# TAMPER — mutate price/quantity/role/flags and flag responses that diverge.
python -m phantomfuzz tamper -u "https://target.tld/cart?price=100&qty=1&role=user" \
--auth-url https://target.tld/login --auth-data 'user=me&pass=pw'
python -m phantomfuzz tamper -u https://target.tld/checkout -X POST \
-d 'item=9&price=999&coupon=NONE' -b 'session=...'
# RACE — fire N synchronized requests to reveal a race window
# (e.g. a single-use coupon or balance withdrawal redeemed twice).
python -m phantomfuzz race -u https://target.tld/redeem -X POST \
-d 'code=FREEBIE' -n 30 -b 'session=...'
⚠️ These probe behavior and can change server state (place orders, spend credits, mutate records). Run them only against your own test environment, and expect to verify findings by hand in Burp Repeater.
The crawl subcommand walks the site for you: it follows in-scope links,
parses <form> fields, and records every URL that carries query parameters —
exactly the map you used to build by hand in Burp before fuzzing.
# Map a site: pages, forms, and parameterized URLs
python -m phantomfuzz crawl -u https://target.tld --depth 3 --max 500 -o urls.txt
# Also render JS to catch SPA routes + XHR/API endpoints
python -m phantomfuzz crawl -u https://target.tld --render
# Full auto: crawl, then tamper-test every parameterized URL found
python -m phantomfuzz crawl -u https://target.tld --tamper \
--auth-url https://target.tld/login --auth-data 'user=me&pass=pw'The --tamper flag chains straight into the logic analyzer — a one-command
"find endpoints → test business logic" pipeline that previously meant Burp
Spider + Repeater.
PhantomFuzz bundles swisskyrepo/PayloadsAllTheThings
as a git submodule and indexes all 66 categories. Use them anywhere a wordlist
is expected via the patt: prefix.
# First-time / update the payload database
python -m phantomfuzz payloads --update # (or: git submodule update --init)
# Browse what's available
python -m phantomfuzz payloads --list
python -m phantomfuzz payloads --show xss # preview + count
# Use a category directly as a wordlist (no export step needed)
python -m phantomfuzz web -u "https://target.tld/search?q=FUZZ" -w patt:xss -fr "no results"
python -m phantomfuzz web -u "https://target.tld/item?id=FUZZ" -w patt:sqli -mr "SQL|syntax"
# Or export a category to a plain file
python -m phantomfuzz payloads --export lfi lfi.txtAliases include: xss, sqli, nosql, lfi, traversal, rce, cmd, ssti, ssrf, xxe, crlf, ldap, xpath, upload, csv, graphql, jwt, redirect, prompt — or pass any
category name shown by --list.
Cloning the repo? The payload set is a submodule, so use
git clone --recursive, or after a plain clone rungit submodule update --init --depth 1.
| Flag | Description |
|---|---|
-u, --url |
target URL with FUZZ keyword(s) |
-w, --wordlist FILE[:KEYWORD] |
wordlist (repeatable); name the keyword after : |
-m, --mode |
sniper | clusterbomb | pitchfork |
-e, --extensions |
append extensions, e.g. .php,.bak |
--mutations |
urlencode,upper,lower,capitalize,double,reverse |
| Flag | Description |
|---|---|
-X, --method |
HTTP method (GET, POST, …) |
-H, --header 'K: V' |
custom header (repeatable) |
-b, --cookie |
Cookie header value |
-d, --data |
request body (may contain FUZZ) |
| Flag | Description |
|---|---|
-t, --threads |
concurrency (default 40) |
--timeout |
per-request timeout (s) |
--retries |
retries on error |
--delay |
fixed delay per request (s) |
--jitter |
random 0..N s extra delay per request |
--rate |
max requests/sec (0 = unlimited) |
--random-agent |
rotate real-browser User-Agent strings |
--adaptive |
auto back-off when a WAF/rate-limit is detected |
--proxy |
proxy URL |
-k, --insecure |
skip TLS verification |
-L, --follow |
follow redirects |
| Flag | Description |
|---|---|
--auth-url |
login URL — establishes a session before fuzzing |
--auth-data |
login body, e.g. 'user=admin&pass=1234' |
--auth-method |
login method (default POST) |
--csrf FIELD |
CSRF field name to auto-extract (auto to guess) |
--csrf-url |
page to read the CSRF token from |
| Flag | Description |
|---|---|
--render-discover |
render target, print API endpoints + routes, exit |
--render-seed |
render target, use discovered segments as wordlist |
| Flag | Description |
|---|---|
--smart |
content-similarity soft-404 / false-positive filter |
--smart-threshold |
similarity cutoff 0–1 (default 0.90) |
| Flag | Description |
|---|---|
--host |
target host or IP |
-p, --ports |
22,80,443 or 1-1024 |
--send TEMPLATE |
raw payload with FUZZ, sent to a single port |
--match STR |
only show replies containing STR |
-w |
payload list for --send |
--no-banner |
skip banner grabbing |
All three accept the auth flags (-H, -b, -k, --auth-url, --auth-data,
--csrf, …) so they can run against authenticated endpoints.
| Subcommand | Key flags | Purpose |
|---|---|---|
idor |
-u .../FUZZ, -w ids or --range LO-HI, --self-id, --threshold |
detect access to objects that aren't yours |
race |
-u, -n COUNT, -X, -d, --success CODES |
synchronized burst to reveal race windows |
tamper |
-u (query) / -d (body), --threshold |
mutate price/qty/role/flags, flag behavior changes |
-mc codes · -ms sizes · -mw words · -ml lines · -mr regex · -mt slower-than-ms
-fc codes · -fs sizes · -fw words · -fl lines · -fr regex · -ac auto-calibrate
Values accept lists and ranges: -mc 200,204,301-399.
| Flag | Description |
|---|---|
-r, --recursion |
recurse into discovered dirs |
-rd, --recursion-depth |
max depth (default 1) |
--maxhits |
stop after N matches |
-o, --output |
write results to file |
-of, --output-format |
json | csv | html | plain |
-s, --silent / -v, --verbose |
quiet / detailed |
A response is shown when it matches all active matchers and matches
no active filter. Filters always win. Auto-calibration (-ac) sends a few
random paths first; if the server answers them "successfully", those
(status, size) signatures are filtered out automatically — killing
false positives from catch-all/SPA servers.
A small wordlists/common.txt ships with the repo. For serious work grab
SecLists.
PRs welcome — keep it dependency-light and async-friendly. Ideas: DNS/subdomain mode, HTTP/2, resume-from-state, smart wordlist ordering.
MIT — see LICENSE.