curl vs wget

curl ve wget, Linux'ta en yaygın kullanılan dosya indirme ve HTTP istek araçlarıdır. Bug bounty ve pentest'lerde API testi, dosya indirme, web scrapping ve otomasyon için kullanılırlar.


curl — HTTP İstek Aracı​

Temel Kullanım​

bash
# GET isteği
curl https://hedef.com

# Başlıkları göster
curl -I https://hedef.com
curl -v https://hedef.com # Detaylı

# POST isteği
curl -X POST https://hedef.com/api -d "key=value"

# Dosya indir
curl -O https://hedef.com/dosya.txt
curl -o yeni_ad.txt https://hedef.com/dosya.txt

Gelişmiş Kullanım​

bash
# JSON gönder
curl -H "Content-Type: application/json" -X POST https://hedef.com/api -d '{"key":"value"}'

# Cookie
curl -b "session=abc123" https://hedef.com
curl -c cookies.txt https://hedef.com

# Header ekle
curl -H "Authorization: Bearer token" https://hedef.com

# User-Agent
curl -A "Mozilla/5.0" https://hedef.com

# Timeout
curl --connect-timeout 5 https://hedef.com

# SSL atla
curl -k https://hedef.com

# Proxy
curl -x http://proxy:8080 https://hedef.com

wget — Dosya İndirme Aracı​

Temel Kullanım​

bash
# Dosya indir
wget https://hedef.com/dosya.zip

# Farklı isimle kaydet
wget -O yeni_ad.zip https://hedef.com/dosya.zip

# Recursive indirme
wget -r https://hedef.com

# HTTP/S FTP desteği
wget ftp://ftp.hedef.com/dosya.txt

Gelişmiş Kullanım​

bash
# Tüm siteyi indir
wget -r -l 5 -k -p -E https://hedef.com

# Cookie ile
wget --header="Cookie: session=abc123" https://hedef.com

# User-Agent
wget -U "Mozilla/5.0" https://hedef.com

# Resume (devam et)
wget -c https://hedef.com/buyuk_dosya.zip

# Mirror
wget -m https://hedef.com

curl vs wget Karşılaştırması​



Özellikcurlwget
HTTP/S
FTP
POST
Cookie
Recursive
API Testi
Başlık Kontrolü
Dosya İndirme

🔒 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,663Konular
3,288,262Mesajlar
324,335Kullanıcılar
hbi14Son Üye
Üst Alt