# Subfinder

> subfinder

- Skill: `sameh1200/subfinder` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add sameh1200/subfinder`
- Raw SKILL.md: https://api.skillmd.com/api/skills/sameh1200/subfinder/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Sameh1200 (https://skillmd.com/u/sameh1200)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/sameh1200/subfinder

---

# subfinder

## Repo
https://github.com/projectdiscovery/subfinder

## Installation
```bash
# Go install (recommended)
go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest

# Binary
wget https://github.com/projectdiscovery/subfinder/releases/latest/download/subfinder_linux_amd64.zip
unzip subfinder_linux_amd64.zip
sudo mv subfinder /usr/local/bin/

# PATH
export PATH=$PATH:$(go env GOPATH)/bin
```

## Using
```bash
# Single domain
subfinder -d target.com -o subs.txt

# All sources
subfinder -d target.com -all -o subs.txt

# Domain list
subfinder -dL domains.txt -o all_subs.txt

# Silent pipe
subfinder -d target.com -silent | httpx -silent
```

## Current Step
Passive subdomain enumeration. First recon phase.

## Next Step
Resolve with dnsx → probe live hosts with httpx → feed into nuclei or amass for deeper mapping.

## Errors Fixes
- Empty results → configure API keys in ~/.config/subfinder/provider-config.yaml
- Rate limit → lower -rl or restrict sources with -s
- go: command not found → install golang-go then re-run go install
- Binary not found → add $(go env GOPATH)/bin to PATH

