> For the complete documentation index, see [llms.txt](https://infra.newerasec.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infra.newerasec.com/infrastructure-testing/enumeration/services-ports/vnc.md).

# 5900 - VNC

**Nmap**:&#x20;

Script: vnc-info&#x20;

&#x20;**Example Usage**&#x20;

```
nmap -p 5901 --script vnc-info 192.168.0.50

PORT    STATE SERVICE 
5900/tcp open  vnc 
| vnc-info: 
|   Protocol version: 3.889 
|   Security types: 
|     Mac OS X security type (30) 
|_    Mac OS X security type (35) 
```

**Connect to VNC:**

`vncviewer $IP:5901`&#x20;

**Brute Force with Metasploit**&#x20;

`use auxiliary/scanner/vnc/vnc_login`&#x20;
