Ffuf

From TerminalSkills/skills · View interactive version

Ffuf is an AI agent skill from the GitHub repository TerminalSkills/skills. Discover hidden content, directories, subdomains, and API endpoints with ffuf — the fastest web fuzzer. Use when someone asks to "find hidden directories", "fuzz URLs", "discover API endpoints", "subdomain enumeration", "content discovery", "ffuf", "brute force paths", or "find hidden files on a web

How to use this skill

Skill file

ffuf (Fuzz Faster U Fool)

Overview

ffuf is the fastest web fuzzer available — written in Go, it discovers hidden files, directories, subdomains, and API endpoints by sending thousands of requests with wordlist-based payloads. Unlike dirbuster or gobuster, ffuf supports multiple fuzzing positions (URL, headers, POST body, cookies), response filtering, auto-calibration, and recursive scanning. Current release: v2.3.0 (September 2026).

When to Use

Instructions

Setup

# Package managers (Debian/Kali, Homebrew)
sudo apt install ffuf
brew install ffuf

# Or build with Go
go install github.com/ffuf/ffuf/v2@latest

# SecLists is the standard wordlist collection
git clone --depth 1 https://github.com/danielmiessler/SecLists.git

A release binary must be checked against the published checksums before use. Release assets carry the version in their name:

curl -sLO https://github.com/ffuf/ffuf/releases/download/v2.3.0/ffuf_2.3.0_linux_amd64.tar.gz
curl -sLO https://github.com/ffuf/ffuf/releases/download/v2.3.0/ffuf_2.3.0_checksums.txt
sha256sum --ignore-missing -c ffuf_2.3.0_checksums.txt
tar xzf ffuf_2.3.0_linux_amd64.tar.gz ffuf
./ffuf -V

Directory Discovery

The FUZZ keyword marks the injection point. By default ffuf shows status codes 200-299, 301, 302, 307, 401, 403, 405 and 500, so most 404s are already hidden.

# Basic directory fuzzing
ffuf -u https://staging.bookshelf.local/FUZZ -w SecLists/Discovery/Web-Content/common.txt

# Let ffuf work out the filter for the soft-404 page by itself
ffuf -u https://staging.bookshelf.local/FUZZ -w SecLists/Discovery/Web-Content/common.txt -ac

# Or filter by hand: response size, or status code
ffuf -u https://staging.bookshelf.local/FUZZ -w SecLists/Discovery/Web-Content/common.txt -fs 4242
ffuf -u https://staging.bookshelf.local/FUZZ -w SecLists/Discovery/Web-Content/common.txt -mc 200,301,302,403

# Extensions: each word is tried plain and with every extension (dot included)
ffuf -u https://staging.bookshelf.local/FUZZ -w SecLists/Discovery/Web-Content/common.txt -e .php,.bak,.old,.txt,.json

# Recursion: the URL must end in FUZZ; depth 0 (the default) means unlimited, so always set it
ffuf -u https://staging.bookshelf.local/FUZZ -w SecLists/Discovery/Web-Content/common.txt -recursion -recursion-depth 2

The default recursion strategy follows only redirects (directories answering 301); -recursion-strategy greedy recurses into every match.

Subdomain and Virtual Host Discovery

# Subdomains through DNS resolution
ffuf -u https://FUZZ.bookshelf.local -w SecLists/Discovery/DNS/subdomains-top1million-5000.txt -ac

# Virtual hosts: same IP, different Host header (auto-calibrate away the default site)
ffuf -u https://staging.bookshelf.local/ -w SecLists/Discovery/DNS/subdomains-top1million-5000.txt \
  -H "Host: FUZZ.bookshelf.local" -ac

API Endpoint and Parameter Discovery

# REST paths
ffuf -u https://api.bookshelf.local/v1/FUZZ -w SecLists/Discovery/Web-Content/api/api-endpoints.txt -mc 200,401,403

# With authentication; the token comes from the environment
ffuf -u https://api.bookshelf.local/v1/FUZZ -w SecLists/Discovery/Web-Content/api/api-endpoints.txt \
  -H "Authorization: Bearer $BOOKSHELF_API_TOKEN" -mc 200

# GET parameter names
ffuf -u "https://staging.bookshelf.local/api/users?FUZZ=1" \
  -w SecLists/Discovery/Web-Content/burp-parameter-names.txt -fs 0

# JSON body keys
ffuf -u https://staging.bookshelf.local/api/login -X POST \
  -H "Content-Type: application/json" \
  -d '{"username":"admin","FUZZ":"x"}' \
  -w SecLists/Discovery/Web-Content/burp-parameter-names.txt -fc 400

Advanced Usage

# Two positions with named keywords (default -mode clusterbomb tries every pair; pitchfork pairs line by line)
ffuf -u https://staging.bookshelf.local/W1/W2 -w endpoints.txt:W1 -w ids.txt:W2

# Reuse a request copied from Burp or DevTools (FUZZ inside the file marks the position)
ffuf -request login.req -request-proto https -w passwords.txt -fc 401

# Save results (formats: json, ejson, html, md, csv, ecsv, all)
ffuf -u https://staging.bookshelf.local/FUZZ -w SecLists/Discovery/Web-Content/common.txt -o results.json -of json

# Polite scan with a time limit; -noninteractive for scripts and CI
ffuf -u https://staging.bookshelf.local/FUZZ -w SecLists/Discovery/Web-Content/common.txt \
  -rate 50 -t 10 -maxtime 600 -noninteractive

# Match on response body
ffuf -u https://staging.bookshelf.local/FUZZ -w SecLists/Discovery/Web-Content/common.txt -mr "admin|dashboard|config"

ffuf 2.3.0 added -preflight / -postflight raw request files that run around each fuzzing request, with -preflight-var "NAME:regex" to capture a value such as a CSRF token or a session token and inject it into the main request. These requests inherit your -H and -b values, and a captured value that would change the target host makes ffuf refuse to send the request.

Examples

Example 1: Content discovery on a staging server

User prompt: "I have written permission to test staging.bookshelf.local. Find hidden directories and backup files."

ffuf -u https://staging.bookshelf.local/FUZZ -w SecLists/Discovery/Web-Content/common.txt \
  -e .bak,.old,.sql,.zip -ac -rate 50 -o discovery.json -of json

The output lists one line per hit, for example admin [Status: 301, Size: 169, Words: 5, Lines: 8] and db.sql [Status: 200, Size: 2048000, ...]. A large 200 on a backup extension is the first thing to report. Re-run -recursion -recursion-depth 2 against the directories that answered 301.

Example 2: Find undocumented API endpoints

User prompt: "Our API has endpoints left by previous developers. Find them."

ffuf -u https://api.bookshelf.local/v1/FUZZ \
  -w SecLists/Discovery/Web-Content/api/api-endpoints.txt \
  -H "Authorization: Bearer $BOOKSHELF_API_TOKEN" -mc 200,204,401,403,405 -ac

A 405 means the path exists but not for GET; repeat with -X POST. Compare the hits against the OpenAPI spec to spot endpoints missing from the docs. Try /v2/ and /internal/ prefixes the same way.

Guidelines

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.