Skip to content

Subfinder

11 commands

ProjectDiscovery’s fast passive subdomain enumeration tool, pulling from many sources and designed to slot into a recon pipeline.

  • subdomains
  • recon
  • passive
  • ProjectDiscovery

Install Subfinder

sudo apt install subfinder

Discovery5

subfinder -d <domain>

Passive subdomain discovery from dozens of online sources.

Link
subfinder -d <domain> -silent

Prints only the subdomains, perfect for piping.

Link
subfinder -dL <file> -silent

Enumerates many root domains from a file.

Link
subfinder -d <domain> -all

Uses every source, including the slower ones.

Link
subfinder -d <domain> -recursive

Recursively enumerates sources that can reveal deeper subdomains.

Link

Output & pipelines4

subfinder -d <domain> -o <file>

Writes results to a file.

Link
subfinder -d <domain> -oJ -o <file>

JSON Lines output with the source of each finding.

Link
subfinder -d <domain> -silent | httpx -silent

Finds subdomains, then live web servers among them.

Link
subfinder -d <domain> -silent | dnsx -silent -a -resp

Resolves discovered subdomains to filter out dead ones.

Link

Configuration2

subfinder -ls

Lists the available sources.

Link
cat ~/.config/subfinder/provider-config.yaml

API keys for sources like Censys, SecurityTrails and Shodan — adding them greatly widens coverage.

Link