httpx Kullanımı (Detaylı Anlatım ve Uygulama Teknikleri)

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 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​

bash
go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest

Temel Kullanım Komutları​

1. Tek Hedef Probing​

bash
httpx -u https://hedef.com

2. Dosyadan Hedef Listesi ile Probing​

bash
httpx -l hedefler.txt

3. Canlı Host'ları Filtreleme​

bash
httpx -l hedefler.txt -silent -o live_hosts.txt

4. Teknoloji Tespiti​

bash
httpx -l hedefler.txt -tech-detect

5. Başlık (Title) Tespiti​

bash
httpx -l hedefler.txt -title

6. Status Code Tespiti​

bash
httpx -l hedefler.txt -status-code

7. Ekran Görüntüsü Alma​

bash
httpx -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​

bash
httpx -l subdomains.txt -silent -o live_hosts.txt -title -tech-detect

2. API Servislerini Bulma​

bash
httpx -l subdomains.txt -silent | grep -E "/api|/v1|/v2|/rest|/graphql"

3. Yaygın Port Tarama​

bash
httpx -l ips.txt -p 80,443,8080,8443,3000,5000,8000,9000

4. WebSocket Tespiti​

bash
httpx -l subdomains.txt -websocket -silent

5. JSON ve XML Yanıtlarını Bulma​

bash
httpx -l subdomains.txt -silent -json-response -xml-response

6. HSTS ve Security Headers Kontrolü​

bash
httpx -l live_hosts.txt -header "Strict-Transport-Security,Content-Security-Policy,X-Frame-Options"

Çıktı Formatları​

1. Standart Çıktı​

bash
httpx -l hedefler.txt -o output.txt

2. JSON Formatı​

bash
httpx -l hedefler.txt -json -o output.json

3. CSV Formatı​

bash
httpx -l hedefler.txt -csv -o output.csv

4. Yalnızca URL'ler​

bash
httpx -l hedefler.txt -silent

🔒 Bu içeriği görmek için giriş yapın

 
Yanıt yazmak için giriş yapmalısınız
Forum özelliklerini kullanmak ve Level 2 üyelik satın almak için hesabınıza giriş yapın.
133,661Konular
3,288,226Mesajlar
324,330Kullanıcılar
Üst Alt