VNC

Default Ports: 5900-5906

Virtual Network Computing (VNC) is a graphical desktop-sharing system that uses the Remote Frame Buffer (RFB) protocol to remotely control another computer. VNC transmits keyboard and mouse events from one computer to another, relaying graphical screen updates back. It's platform-independent and widely used for remote technical support, access to work computers, and server administration.

Connect

Using vncviewer

# Basic connection
vncviewer target.com:5900

# With display number (5900 + display)
vncviewer target.com:0  # Port 5900
vncviewer target.com:1  # Port 5901

# With password file
vncviewer -passwd ~/.vnc/passwd target.com:0

Using remmina (GUI)

Remmina is a feature-rich remote desktop client that supports VNC, RDP, and other protocols:

Protocol: VNC
Server: target.com:5900
Username: (if required)
Password: password

Using TightVNC Viewer

Recon

Service Detection with Nmap

Use Nmap to detect VNC services and identify server capabilities.

Connect to VNC services to gather version and service information.

Using netcat

Using nmap

Enumeration

Use various tools for detailed VNC enumeration and information gathering.

VNC Authentication Check

Determine VNC authentication methods and protocol versions.

Display Enumeration

Enumerate available VNC displays and sessions.

Attack Vectors

Exploit various VNC vulnerabilities and misconfigurations for unauthorized access.

No Authentication

Test for VNC servers configured without authentication.

Weak or Default Passwords

Test common default VNC passwords for unauthorized access.

Brute Force Attack

Brute force VNC passwords using various tools and techniques.

Using Hydra

Using Metasploit

Using Nmap

Using Medusa

Password Decryption

Exploit VNC's weak password encryption for credential recovery.

Man-in-the-Middle Attack

Intercept VNC traffic for credential theft and session hijacking.

Post-Exploitation

Extract sensitive data and establish persistent access after successful VNC exploitation.

Screen Capture

Capture screenshots of remote desktop for reconnaissance and data collection.

Keylogging and Input Injection

Inject keyboard and mouse inputs to execute commands or access sensitive information.

Persistence

Create persistent backdoor access to compromised VNC systems.

Data Exfiltration

Extract sensitive data from compromised VNC sessions.

Lateral Movement

Expand access to other systems using VNC sessions.

Credential Harvesting

Extract credentials and sensitive information from VNC sessions.

VNC Variants

VNC Type
Port
Features

RealVNC

5900

Most common, enterprise features

TightVNC

5900

High compression, file transfer

UltraVNC

5900

File transfer, chat, Windows-focused

TigerVNC

5900

High performance

x11vnc

5900

Unix/Linux X11 sharing

Useful Tools

Tool
Description
Primary Use Case

vncviewer

VNC client

Connection

Remmina

Multi-protocol client

GUI connection

TightVNC Viewer

VNC client

Windows client

vncpwd

Password decryptor

Password recovery

vncsnapshot

Screenshot tool

Reconnaissance

vncdo

VNC automation

Input injection

Hydra

Password cracker

Brute force

Metasploit

Exploitation framework

Automated testing

Security Misconfigurations

  • ❌ No authentication (None auth type)

  • ❌ Weak VNC passwords

  • ❌ Exposed to internet

  • ❌ No encryption (standard VNC)

  • ❌ Clipboard sharing enabled

  • ❌ File transfer enabled

  • ❌ No connection logging

  • ❌ Default ports exposed

  • ❌ No network isolation

  • ❌ Outdated VNC server

Last updated