nodecode-ffuf
Web fuzzing with ffuf, only against targets you list as in scope: hidden paths and files, parameters and virtual hosts, by putting each word of a wordlist where FUZZ stands and keeping the responses the matchers select. Written for Nodecode from ffuf's documented command line and JSON lines.
Get it
Tell the agent "add the ffuf cell", or run nodecode add nc://ffuf.
Set it up
The cell runs the ffuf CLI, which is yours; nothing here vendors it or any wordlist. Install it once (releases), or:
go install github.com/ffuf/ffuf/v2@latest
Then set the scope: the targets you are authorized to test. An empty scope refuses every run. See config.example.jsonc:
"ffuf": { "scope": ["app.example.com", "*.staging.example.com"] }
A scope entry is a host, *.domain (any subdomain, not the apex), an IPv4 or IPv6 address, or an address block (192.0.2.0/24, 2001:db8::/32). A loopback, private, link-local, multicast or reserved address (IPv4-mapped and NAT64 forms included), or localhost, is reached only through an entry that names it or its block; a wildcard never reaches one, and a zoned IPv6 address (fe80::1%eth0) is never reached. A target with userinfo (user@), a backslash, a control character or a space in its host is refused, so the host checked is the host reached.
| Key | Default | What it does |
|---|---|---|
command |
["ffuf"] |
The argv prefix that runs ffuf: on PATH, or its absolute path. |
scope |
[] |
What a run may reach. Only the operator sets it. |
timeout_seconds |
900 |
One run's hard ceiling; the whole process tree is killed past it. |
max_time |
600 |
The running time ffuf is told to stop at (-maxtime), a ceiling a call may only lower. |
rate |
50 |
Requests per second, a ceiling a call may only lower. |
threads |
10 |
Concurrent requests, a ceiling a call may only lower. |
max_output_chars |
20000 |
How much one tool answer carries. |
max_results |
300 |
How many result lines one answer lists; the count covers every one. |
max_inline_words |
500 |
How many words a call may pass inline instead of a wordlist file. |
Use it
One tool, ffuf_fuzz, running ffuf -u ... -w ... -json -s -noninteractive:
urlwithFUZZwhere the word goes in its path or query (https://app.example.com/FUZZ,?FUZZ=1), orFUZZindataor a header.FUZZnever stands in the url's host or port: to find virtual hosts keep the url on a scoped host and send the headerHost: FUZZ.example.com.wordlist(an absolute file path) orwords(a short inline list, written to a temporary file that is removed after the run).- Matchers
match_codes,match_size,match_words,match_lines,match_regex; filtersfilter_codes,filter_size,filter_words,filter_lines,filter_regex;auto_calibrate. extensions,method,data,headers,recursion_depth(1 to 5, the URL ending inFUZZ),rate,threads,timeout,max_time.- Redirects are never followed (ffuf's
-rfollows them to any host): each result shows where it redirects, so a redirect off the scoped host is never requested.
3 results (status size words lines word url) 301 0B 1w 1l "admin" https://app.example.com/admin -> /admin/ 200 28B 1w 3l ".env" https://app.example.com/.env 200 19B 2w 2l "version.txt" https://app.example.com/version.txt
ffuf reports each word base64-encoded; the answer shows it decoded. /ffuf answers the CLI's version.
How a run is contained
- Scope. The URL's host must be in the section's scope, and
FUZZmay not stand in it; the model cannot change it. - Ceilings. A call may lower
rate,threadsandmax_time, never raise them. - Secrets stay out of the answer. Every header value but
Host,Accept,Content-Type,User-Agent,OriginandRefereris masked in the echoed command and scrubbed from the output, a token too short to scrub included. - No flag injection. Every value rides its flag as one argument, a value that opens with a dash is refused, and the status, size, word and line filters take only numbers and ranges.
Test
.github/test-cell.sh tools/nodecode-ffuf
Thirteen tests, offline: every ffuf run goes through one stubbed seam, so the scope, the argv, the inline wordlist and the results read from JSON lines are asserted with no CLI and no network.
License
MIT. See LICENSE. ffuf is MIT and is not included.