All     Ethical Hacking     Networking     Programming     OSINT

Subfinder in Termux – Installation, Usage & Basic Commands

Subfinder is a fast and passive subdomain enumeration tool developed by ProjectDiscovery. It is widely used in reconnaissance to discover valid subdomains of a target domain using multiple data sources.

Installation

Update Termux and install Go:

pkg update && pkg upgrade && pkg install golang git -y

Install Subfinder using Go:

go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest

Add Go binary path to PATH:

export PATH=$PATH:$HOME/go/bin

Verify installation:

subfinder -h

Usage Commands

Find subdomains of a domain:

subfinder -d example.com

Save output to a file:

subfinder -d example.com -o subdomains.txt

Use silent mode (clean output):

subfinder -d example.com -silent

Enumerate subdomains using all sources:

subfinder -d example.com -all

Use multiple domains from a file:

subfinder -dL domains.txt

Set timeout value:

subfinder -d example.com -timeout 30