mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-20 13:15:23 +00:00
* introduce typescript files generation using ast + tmpl * feat valid ts with scraping * feat remove old logic + tsdocs for all modules * fix ikev and related bugs * typescript docs for js modules * lint,build + ldap realm fix * go mod tidy * fix named imports ast parsing * fix ast code generation errors * complete support for ts files generation * support go global/const in ts docs * updated template * feat: typescript using go code generation * nuke jsdoc generator * update generated ts dir structure * fix multifile ts gen issue * fix panic in ts code gen * fix test * update docs of js libs * feat: add doc+example for every js class,function,method * fix missing quotes in ikev example --------- Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
52 lines
1009 B
TypeScript
Executable File
52 lines
1009 B
TypeScript
Executable File
|
|
|
|
/**
|
|
* 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,
|
|
}
|
|
|