TEMEL KULLANIM
Temel subdomain keşfi
subfinder -d target.comSonuçları dosyaya kaydet
subfinder -d target.com -o subdomains.txtSessiz modda çalıştır (sadece subdomain listesi)
subfinder -d target.com -silent -o subdomains.txtDetaylı çıktı (verbose)
subfinder -d target.com -vBelirli bir DNS sunucusu kullan
subfinder -d target.com -r 8.8.8.8,1.1.1.1Belirli bir DNS sunucusu ile çalıştır (TCP üzerinden)
subfinder -d target.com -r 8.8.8.8 -tcpRate limit ayarla (saniyede kaç sorgu)
subfinder -d target.com -rl 100Thread sayısını belirle (varsayılan 100)
subfinder -d target.com -t 50KAYNAK / WORDLIST
Özel wordlist ile tarama
subfinder -d target.com -w /path/to/subdomain_wordlist.txtBirden fazla wordlist kullan
subfinder -d target.com -w wordlist1.txt,wordlist2.txtSadece pasif kaynakları kullan
subfinder -d target.com -only-passiveSadece aktif DNS sorguları yap
subfinder -d target.com -activeBelirli kaynakları devre dışı bırak
subfinder -d target.com -exclude-sources "virustotal,shodan"Sadece belirli kaynaklardan al
subfinder -d target.com -sources "alienvault,crtsh,securitytrails"Tüm kaynakları listele
subfinder -list-sourcesRecursive DNS çözümlemesi yap (alt domainleri de bul)
subfinder -d target.com -recursiveÇOKLU HEDEF
Birden fazla domaini tara
subfinder -d target1.com -d target2.com -o subdomains.txtDomain listesini dosyadan oku
subfinder -dL domains.txt -o subdomains.txtTüm domainler için çıktıları ayrı dosyalara yaz
subfinder -dL domains.txt -o-dir ./outputsWildcard domain desteği
subfinder -d *.target.comAKTİF / PASİF KEŞİF
Aktif domain listesinden pasif keşif
subfinder -d target.com -sf /path/to/active_subdomains.txt -o final_subdomains.txtSadece IP adresleriyle çalış
subfinder -d target.com -ipSubdomain'lerin IP'lerini de göster
subfinder -d target.com -ip -o subdomains_with_ips.txtDNS çözümlemesi yap (A, AAAA, CNAME)
subfinder -d target.com -resolveJSON formatında çıktı al
subfinder -d target.com -o subdomains.json -jsonToplam subdomain sayısını göster
subfinder -d target.com -statsGELİŞMİŞ TEKNİKLER
Tüm bağlantı noktalarını tarama için subfinder + httpx entegrasyonu
subfinder -d target.com -silent | httpx -silent -o alive.txtCanlı subdomain'leri bul (200 OK)
subfinder -d target.com -silent | httpx -status-code -mc 200Subfinder + nuclei ile güvenlik açığı taraması
subfinder -d target.com -silent | httpx -silent | nuclei -t cves/Subfinder + ffuf ile dizin fuzzing
subfinder -d target.com -silent | httpx -silent | ffuf -u FUZZ -w /path/to/wordlist.txtSubfinder + waybackurls ile URL toplama
subfinder -d target.com -silent | waybackurls | grep -E ".js|.css|.php|.asp"Subfinder + gau ile URL toplama
subfinder -d target.com -silent | gau | sort -uSubfinder + aquatone ile screenshot alma
subfinder -d target.com -silent | aquatone -out ./screenshotsSubfinder + nmap ile port taraması
subfinder -d target.com -silent | xargs -I {} nmap -p 80,443,8080,8443 -T4 {}Subfinder + masscan ile hızlı port taraması
subfinder -d target.com -silent | xargs -I {} masscan -p1-65535 --rate=1000 {}Subfinder + dnsx ile DNS detayları
subfinder -d target.com -silent | dnsx -a -aaaa -cname -respSubfinder + dig ile elle sorgulama
subfinder -d target.com -silent | xargs -I {} dig {} +shortSubfinder + whois ile domain bilgisi
subfinder -d target.com -silent | xargs -I {} whois {}Subfinder + curl ile API kontrolü
subfinder -d target.com -silent | xargs -I {} curl -s -o /dev/null -w "%{http_code}\n" https://{}WAF / GÜVENLİK ATLATMA
Tor ağı üzerinden çalıştır
subfinder -d target.com -proxy socks5://127.0.0.1:9050HTTP/HTTPS proxy ile
subfinder -d target.com -proxy http://127.0.0.1:8080Özel User-Agent kullan
subfinder -d target.com -ua "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"Rastgele User-Agent
subfinder -d target.com -raZaman aşımı ayarla (varsayılan 10s)
subfinder -d target.com -timeout 30Retry sayısı (varsayılan 3)
subfinder -d target.com -retry 5API VE YAPILANDIRMA
API anahtarlarını göster
subfinder -show-api-keysAPI anahtarlarını yapılandır
subfinder -configureYapılandırma dosyası ile çalıştır
subfinder -d target.com -config /path/to/config.yamlEnvironment variable ile proxy ayarla
export HTTP_PROXY="http://127.0.0.1:8080" && subfinder -d target.comJSON çıktıyı jq ile filtrele
subfinder -d target.com -json | jq '.host'Çıktıyı sort ve unique yap
subfinder -d target.com -silent | sort -u > final_subdomains.txtBÜYÜK SCOPELAR / VERİM
Büyük scope için optimize et (hızlı tarama)
subfinder -d target.com -t 200 -rl 1000 -timeout 5Bellek kullanımını optimize et
subfinder -d target.com -buffer-size 10000Sonuçları stream et (anlık yaz)
subfinder -d target.com -stream -o subdomains.txtParalel domain taraması
cat domains.txt | xargs -P 10 -I {} subfinder -d {} -silentGünde bir kez otomatik tarama (cron)
0 0 * * * subfinder -d target.com -silent -o subdomains_$(date +%Y%m%d).txtÖnceki sonuçlarla karşılaştır (diff)
diff old_subdomains.txt new_subdomains.txt | grep ">"İLERİ DÜZEY SUBDOMAIN KEŞFİ
Permutation saldırısı (alt domain varyasyonları)
cat subdomains.txt | dnsgen - | subfinder -d target.com -sf -Alt domain varyasyonları ile genişletme
subfinder -d target.com -silent | dnsgen -w /path/to/words.txt | subfinder -d target.com -sf -Subdomain takeover kontrolü
subfinder -d target.com -silent | httpx -silent | suboverCloudflare tespiti
subfinder -d target.com -silent | httpx -silent -title -tech-detect | grep -i cloudflareCDN tespiti
subfinder -d target.com -silent | httpx -silent -cdnTeknoloji tespiti (Apache, Nginx, etc.)
subfinder -d target.com -silent | httpx -silent -tech-detectExpired domain tespiti
subfinder -d target.com -silent | xargs -I {} dig {} +short | grep -v "NXDOMAIN"IP aralığı tespiti (ASN)
subfinder -d target.com -silent | dnsx -a -resp | grep -Eo '[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}' | sort -u | xargs -I {} whois {} | grep -i "inetnum"Reverse DNS ile IP'den domain bulma
cat ips.txt | revdns | subfinder -d target.com -sf -SSL sertifikasından subdomain bulma
curl -s "https://crt.sh/?q=%25.target.com" | grep -Eo "*.target.com" | sort -uRAPORLAMA VE ANALİZ
HTML raporu oluştur
subfinder -d target.com -o report.html -htmlMarkdown formatında rapor
subfinder -d target.com -o report.md -markdownCSV formatında çıktı
subfinder -d target.com -o report.csv -csvDetaylı statistics
subfinder -d target.com -stats -o stats.txtBulunan subdomain'leri kategorize et
subfinder -d target.com -silent | grep -E "api|dev|test|admin|staging" > important_subdomains.txtTLD bazında gruplama
subfinder -d target.com -silent | awk -F. '{print $NF}' | sort | uniq -cDomain bazında istatistik
subfinder -d target.com -silent | sed -e 's/./\n/g' | sort | uniq -c | sort -nrHTTP başlıklarını analiz et
subfinder -d target.com -silent | httpx -silent -header -o headers.txtHata sayfalarını tespit et
subfinder -d target.com -silent | httpx -silent -status-code | grep "404|500|503"SUBFINDER + DİĞER ARAÇLAR
Subfinder + Amass kombinasyonu
subfinder -d target.com -silent | amass intel -whoisSubfinder + SecurityTrails
subfinder -d target.com -sources securitytrailsSubfinder + Shodan
subfinder -d target.com -sources shodan | xargs -I {} shodan host {}Subfinder + Censys
subfinder -d target.com -sources censysSubfinder + VirusTotal
subfinder -d target.com -sources virustotalSubfinder + AlienVault OTX
subfinder -d target.com -sources alienvaultSubfinder + CertSpotter
subfinder -d target.com -sources certspotterSubfinder + CommonCrawl
subfinder -d target.com -sources commoncrawlSubfinder + BufferOver
subfinder -d target.com -sources bufferoverSubfinder + ThreatMiner
subfinder -d target.com -sources threatminerKRİTİK NOTLAR VE İPUÇLARI
- Subfinder'ı her zaman güncel tutun: go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
- Büyük scopelarda Amass'tan önce Subfinder kullanın (daha hızlı ve daha az kaynak tüketir).
- --silent modu diğer araçlarla (httpx, nuclei, ffuf) entegrasyon için idealdir.
- Sonuçları her zaman sort -u ile benzersizleştirin.
- Rate limiting (--rl) ayarlarını hedefe göre optimize edin (agresif tarama banlanmaya neden olabilir).
- Proxy kullanımı (Tor/HTTP) ile IP ban riskini azaltın.
- API anahtarlarını ~/.config/subfinder/config.yaml dosyasına güvenle saklayın.
- Passive mod sadece kaynaklardan veri çeker, DNS sorgusu yapmaz (daha hızlı, daha az iz bırakır).
- Active mod DNS sorguları yapar, daha doğru sonuç verir ama daha yavaştır.
- -recursive ile 3. seviye subdomain'leri de bulabilirsiniz.
- Periyodik taramalar ile yeni eklenen subdomain'leri tespit edin.
- Tüm bu işlemler YASAL ve ETİK kurallara uygun olarak, yetkilendirilmiş sistemlerde yapılmalıdır.
ÖRNEK TAM ZİNCİR (SUBJECT KEŞFİNDEN ZAFİYET RAPORUNA)
1. Subdomain keşfi
subfinder -d target.com -silent -o subdomains.txt2. Canlı subdomain kontrolü
cat subdomains.txt | httpx -silent -o alive.txt3. URL toplama
cat alive.txt | waybackurls | gau | sort -u > urls.txt4. Parametre fuzzing
cat urls.txt | grep "=" | qsreplace FUZZ | ffuf -u FUZZ -w /path/to/fuzz.txt -mc 200 -o fuzz_results.txt5. SQL injection taraması
cat alive.txt | xargs -I {} sqlmap -u {} --batch --level=3 --risk=26. XSS taraması
cat alive.txt | xargs -I {} dalfox url {} --silent -o xss_results.txt7. Dizin/Path keşfi
cat alive.txt | ffuf -c -w /usr/share/seclists/Discovery/Web_Content/common.txt -u FUZZ -recursion -recursion-depth 28. Sensitive dosya keşfi
cat alive.txt | ffuf -c -w /usr/share/seclists/Fuzzing/secret.txt -u FUZZ9. Subdomain takeover
cat alive.txt | nuclei -t takeover/ -o takeover.txt10. CVE taraması
cat alive.txt | nuclei -t cves/ -severity high,critical -o cves.txt11. Rapor oluşturma
echo "=== TARAMA RAPORU (date)===">report.txtecho"ToplamSubdomainecho "Canlı Subdomain: $(wc -l < alive.txt)" >> report.txt
echo "=== BULGULAR ===" >> report.txt
cat takeover.txt cves.txt xss_results.txt >> report.txt
HIZLI REFERANS KARTI
En sık kullanılan komutlar
subfinder -d target.com -silent -o output.txtsubfinder -d target.com -dL domains.txt -o all.txt
subfinder -d target.com -silent | httpx -silent
subfinder -d target.com -w wordlist.txt -o brute.txt
subfinder -d target.com -r 8.8.8.8 -o resolved.txt
subfinder -d target.com -ip -o ips.txt
subfinder -d target.com -json -o data.json
subfinder -d target.com -only-passive -o passive.txt
subfinder -d target.com -active -o active.txt
subfinder -d target.com -sources virustotal,shodan -o sources.txt
Performans için optimize
subfinder -d target.com -t 200 -rl 1000 -timeout 5 -silentDışa aktar ve karşılaştır
subfinder -d target.com -silent > old.txtsubfinder -d target.com -silent > new.txt
diff old.txt new.txt | grep ">" | cut -d " " -f2 > new_subdomains.txt

