52 lines
1009 B
TypeScript
Raw Normal View History

/**
* VNCClient is a minimal VNC client for nuclei scripts.
* @example
* ```javascript
* const vnc = require('nuclei/vnc');
* const client = new vnc.Client();
* ```
*/
export class VNCClient {
// Constructor of VNCClient
constructor() {}
/**
* 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));
* ```
*/
public IsVNC(host: string, port: number): IsVNCResponse | null {
return null;
}
}
/**
* 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));
* ```
*/
export interface IsVNCResponse {
IsVNC?: boolean,
Banner?: string,
}