httpx, Project Discovery tarafından geliştirilen, hızlı ve çok yönlü bir HTTP probing (sondaj) aracıdır. Bir hedefin canlı olup olmadığını, hangi teknolojileri kullandığını, başlıklarını ve daha fazlasını tespit eder.
httpx'ın Avantajları:
go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest
httpx -u https://hedef.com
httpx -l hedefler.txt
httpx -l hedefler.txt -silent -o live_hosts.txt
httpx -l hedefler.txt -tech-detect
httpx -l hedefler.txt -title
httpx -l hedefler.txt -status-code
httpx -l hedefler.txt -screenshot
# Sadece 200, 301, 302
httpx -l hedefler.txt -status-code -silent -o live_hosts.txt -filter-code 200,301,302
# 404'leri hariç tut
httpx -l hedefler.txt -status-code -silent -o live_hosts.txt -filter-code -404
# Sadece Nginx
httpx -l hedefler.txt -tech-detect -filter-server "nginx"
# Apache hariç tut
httpx -l hedefler.txt -tech-detect -filter-server -"apache"
# Content-Length 0 olanları hariç tut
httpx -l hedefler.txt -silent -filter-content-length 0
# 2 saniyeden hızlı yanıt verenleri al
httpx -l hedefler.txt -silent -filter-response-time 2
httpx -l subdomains.txt -silent -o live_hosts.txt -title -tech-detect
httpx -l subdomains.txt -silent | grep -E "/api|/v1|/v2|/rest|/graphql"
httpx -l ips.txt -p 80,443,8080,8443,3000,5000,8000,9000
httpx -l subdomains.txt -websocket -silent
httpx -l subdomains.txt -silent -json-response -xml-response
httpx -l live_hosts.txt -header "Strict-Transport-Security,Content-Security-Policy,X-Frame-Options"
httpx -l hedefler.txt -o output.txt
httpx -l hedefler.txt -json -o output.json
httpx -l hedefler.txt -csv -o output.csv
httpx -l hedefler.txt -silent
httpx Nedir?
httpx, bir liste halinde verilen hedeflere (domain, IP, URL) hızlıca HTTP istekleri göndererek, hangilerinin canlı olduğunu ve hangi servisleri çalıştırdığını belirler. Bug bounty ve pentest'lerde, subdomain enumeration sonrası canlı host'ları filtrelemek için kullanılır.httpx'ın Avantajları:
- Hızlı: Paralel istekler ile yüksek performans.
- Çoklu Protokol: HTTP, HTTPS, HTTP/2, WebSocket.
- Teknoloji Tespiti: Web sunucu, framework, CMS tespiti.
- Başlık Analizi: Server, Content-Type, Set-Cookie.
- Ekran Görüntüsü: Canlı hedeflerin screenshot'ını alma.
httpx Kurulumu
bashgo install -v github.com/projectdiscovery/httpx/cmd/httpx@latest
Temel Kullanım Komutları
1. Tek Hedef Probing
bashhttpx -u https://hedef.com
2. Dosyadan Hedef Listesi ile Probing
bashhttpx -l hedefler.txt
3. Canlı Host'ları Filtreleme
bashhttpx -l hedefler.txt -silent -o live_hosts.txt
4. Teknoloji Tespiti
bashhttpx -l hedefler.txt -tech-detect
5. Başlık (Title) Tespiti
bashhttpx -l hedefler.txt -title
6. Status Code Tespiti
bashhttpx -l hedefler.txt -status-code
7. Ekran Görüntüsü Alma
bashhttpx -l hedefler.txt -screenshot
Gelişmiş Filtreleme Seçenekleri
1. Status Code Filtreleme
bash# Sadece 200, 301, 302
httpx -l hedefler.txt -status-code -silent -o live_hosts.txt -filter-code 200,301,302
# 404'leri hariç tut
httpx -l hedefler.txt -status-code -silent -o live_hosts.txt -filter-code -404
2. Web Sunucu Filtreleme
bash# Sadece Nginx
httpx -l hedefler.txt -tech-detect -filter-server "nginx"
# Apache hariç tut
httpx -l hedefler.txt -tech-detect -filter-server -"apache"
3. Content-Length Filtreleme
bash# Content-Length 0 olanları hariç tut
httpx -l hedefler.txt -silent -filter-content-length 0
4. Response Time Filtreleme
bash# 2 saniyeden hızlı yanıt verenleri al
httpx -l hedefler.txt -silent -filter-response-time 2
Pratik Kullanım Senaryoları
1. Subdomain'lerden Canlı Host'ları Bulma
bashhttpx -l subdomains.txt -silent -o live_hosts.txt -title -tech-detect
2. API Servislerini Bulma
bashhttpx -l subdomains.txt -silent | grep -E "/api|/v1|/v2|/rest|/graphql"
3. Yaygın Port Tarama
bashhttpx -l ips.txt -p 80,443,8080,8443,3000,5000,8000,9000
4. WebSocket Tespiti
bashhttpx -l subdomains.txt -websocket -silent
5. JSON ve XML Yanıtlarını Bulma
bashhttpx -l subdomains.txt -silent -json-response -xml-response
6. HSTS ve Security Headers Kontrolü
bashhttpx -l live_hosts.txt -header "Strict-Transport-Security,Content-Security-Policy,X-Frame-Options"
Çıktı Formatları
1. Standart Çıktı
bashhttpx -l hedefler.txt -o output.txt
2. JSON Formatı
bashhttpx -l hedefler.txt -json -o output.json
3. CSV Formatı
bashhttpx -l hedefler.txt -csv -o output.csv
4. Yalnızca URL'ler
bashhttpx -l hedefler.txt -silent
🔒 Bu içeriği görmek için giriş yapın