vnc

package
v3.4.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2026 License: MIT, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Warning - This is generated code

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IsVNCResponse

type IsVNCResponse struct {
	IsVNC  bool
	Banner string
}

IsVNCResponse is the response from the IsVNC function. @example ```javascript const vnc = require('nuclei/vnc'); const isVNC = vnc.IsVNC('acme.com', 5900); log(toJSON(isVNC)); ```

func IsVNC

func IsVNC(ctx context.Context, host string, port int) (IsVNCResponse, error)

IsVNC checks if a host is running a VNC server. It returns a boolean indicating if the host is running a VNC server and the banner of the VNC server. @example ```javascript const vnc = require('nuclei/vnc'); const isVNC = vnc.IsVNC('acme.com', 5900); log(toJSON(isVNC)); ```

type VNCClient added in v3.4.7

type VNCClient struct{}

VNCClient is a client for VNC servers. @example ```javascript const vnc = require('nuclei/vnc'); const client = new vnc.VNCClient(); const connected = client.Connect('acme.com', 5900, 'password'); log(toJSON(connected)); ```

func (*VNCClient) Connect added in v3.4.7

func (c *VNCClient) Connect(ctx context.Context, host string, port int, password string) (bool, error)

Connect connects to VNC server using given password. If connection and authentication is successful, it returns true. If connection or authentication is unsuccessful, it returns false and error. The connection is closed after the function returns. @example ```javascript const vnc = require('nuclei/vnc'); const client = new vnc.VNCClient(); const connected = client.Connect('acme.com', 5900, 'password'); ```

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL