nodecode-subfinder
Passive subdomain discovery with subfinder: the names under a domain, from certificate transparency logs, DNS datasets and search APIs, each host once with every source that named it. Written for Nodecode from subfinder's documented command line and JSON lines.
Get it
Tell the agent "add the subfinder cell", or run nodecode add nc://subfinder.
Set it up
The cell runs the subfinder CLI, which is yours; nothing here vendors it. Install it once (releases), or:
go install github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
Most sources answer without a key. Those marked * by subfinder_sources need an API key in subfinder's own provider config (~/.config/subfinder/provider-config.yaml), which you fill in by hand; the cell never reads or holds a key.
The section is optional. See config.example.jsonc:
| Key | Default | What it does |
|---|---|---|
command |
["subfinder"] |
The argv prefix that runs subfinder: on PATH, or its absolute path. |
timeout_seconds |
900 |
One run's ceiling; the whole process tree is killed past it. |
max_output_chars |
20000 |
How much one tool answer carries. |
max_hosts |
500 |
How many host lines one answer lists; the count covers every one. |
rate_limit |
0 |
Requests per second across all sources (-rl); 0 leaves subfinder's pacing. |
provider_config |
"" |
The absolute path of a provider config instead of the default (-pc). |
Use it
| Tool | Runs | For |
|---|---|---|
subfinder_enum |
subfinder -d ... -json -cs -silent -nc -duc |
The subdomains of one or more domains. Takes sources, exclude_sources, all, recursive, match, filter, resolve and max_time (minutes, 1 to 60). |
subfinder_sources |
subfinder -ls |
The sources it can ask; * marks one that needs a key. |
domains are bare names (example.com): a URL, a port or a value that opens with a dash is refused. resolve (-nW -oI) checks each name in DNS and keeps only live ones with their address; it is the one option that sends queries about the domain, and only to DNS resolvers.
$ subfinder -d=example.com -json -cs -silent -nc -duc -s=crtsh,hackertarget exit 0 (ok) 3 unique hosts under example.com (3) == example.com api.example.com [crtsh, hackertarget] dev.example.com [crtsh] www.example.com [hackertarget]
/subfinder answers the CLI's version.
Scope
Enumeration is passive, but what it finds is a target list. The manual ((help :subfinder)) tells the model to enumerate only domains the operator owns or is authorized to assess, to say which it is about to enumerate, and that a host found here is a lead, not permission to probe it.
Test
.github/test-cell.sh tools/nodecode-subfinder
Twelve tests, offline: every run goes through one stubbed seam, so the argv and the merged host list are asserted with no CLI and no network.
License
MIT. See LICENSE. subfinder is MIT and is not included.