Subfinder

3 min read401 words

Subfinder

Learn Subfinder (Fast Passive Subdomain Tool)

Understand how to quickly discover subdomains using passive sources.

Link -> https://github.com/projectdiscovery/subfinder

Tool: Subfinder

Description: Subfinder is a fast and efficient tool for passive subdomain enumeration.

It works by collecting data from:

  • OSINT sources
  • APIs
  • Public datasets

Key features:

  • High speed
  • Clean output
  • Easy integration with other tools

Used in:

  • Bug bounty hunting
  • Recon automation
  • Subdomain discovery pipelines

Installation / Check

Check if installed:

which subfinder

Install Subfinder:

sudo apt install subfinder

Basic Syntax

subfinder -d <domain>

Common Commands

Basic Subdomain Enumeration

Command:

subfinder -d example.com
  • What it does: Performs basic subdomain enumeration.
  • When to use: For quick reconnaissance of a target domain.

Save Output to File

Command:

subfinder -d example.com -o subs.txt
  • What it does: Saves discovered subdomains to a file.
  • When to use: To store results for later use or analysis.

Multiple Domains Scan

Command:

subfinder -dL domains.txt
  • What it does: Scans multiple domains from a list.
  • When to use: For batch reconnaissance on multiple targets.

Silent Mode

Command:

subfinder -d example.com -silent
  • What it does: Outputs only results without extra information.
  • When to use: For clean output, especially when piping into other tools.

Step-by-Step Guide

  1. Run basic scan:
subfinder -d <domain>
  1. Configure API keys for better results
  2. Save output:
subfinder -d <domain> -o subs.txt
  1. Use silent mode for automation:
subfinder -d <domain> -silent
  1. Pipe results into other tools (e.g., httpx)

Understanding Output

Subfinder outputs:

  • Subdomains → List of discovered domains
  • Clean format (especially in -silent mode)

Note:

  • Output is ideal for automation pipelines

⚠️ Important Warnings

  • Results depend on:

    • Configured sources
    • API keys
  • Some subdomains may be:

    • Outdated
    • Inactive
  • Always verify results before further testing

🚨 Legal Notice

⚠️ Use Kali Linux tools only on systems you own or have permission to test. Unauthorized reconnaissance may lead to legal consequences.

💡 Pro Tip (Very Important):

👉 Use combo like:

subfinder -d target.com -silent | tee subs.txt

Then:

cat subs.txt | httpx

👉 This is how automation pipelines are built 💻🔥

Keep learning. Keep building. Keep growing.

© 2026 Ugenz Academy