Cyber Monday: 2XCYBER doubles your top-up, up to $2,000.Double my top-up

nc://ffuf

v0.1.0Pinned
Backnodecode-ai
ThomSharksecurity cells: harden scope, Nuclei containment, ffuf authority and scrub (#183)245fa9c· 2 Dec2 commits
test1 filecell.lisp4.1 KBcli.lisp10.3 KBscope.lisp11.1 KBtools.lisp12.0 KB

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:

  • url with FUZZ where the word goes in its path or query (https://app.example.com/FUZZ, ?FUZZ=1), or FUZZ in data or a header. FUZZ never stands in the url's host or port: to find virtual hosts keep the url on a scoped host and send the header Host: FUZZ.example.com.
  • wordlist (an absolute file path) or words (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; filters filter_codes, filter_size, filter_words, filter_lines, filter_regex; auto_calibrate.
  • extensions, method, data, headers, recursion_depth (1 to 5, the URL ending in FUZZ), rate, threads, timeout, max_time.
  • Redirects are never followed (ffuf's -r follows 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 FUZZ may not stand in it; the model cannot change it.
  • Ceilings. A call may lower rate, threads and max_time, never raise them.
  • Secrets stay out of the answer. Every header value but Host, Accept, Content-Type, User-Agent, Origin and Referer is 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.

Add nc://ffuf

  1. 1

    Install Nodecode

    Once per machine.

    $ curl -fsSL https://nodecode.ai/install.sh | sh
  2. 2

    Add the cell

    Pinned at 245fa9c.

    $ nodecode add nc://ffuf

    Or tell the agent add the ffuf cell.