mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 20:15:24 +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>
51 lines
988 B
TypeScript
Executable File
51 lines
988 B
TypeScript
Executable File
|
|
|
|
/**
|
|
* RsyncClient is a minimal Rsync client for nuclei scripts.
|
|
* @example
|
|
* ```javascript
|
|
* const rsync = require('nuclei/rsync');
|
|
* const client = new rsync.Client();
|
|
* ```
|
|
*/
|
|
export class RsyncClient {
|
|
|
|
|
|
// Constructor of RsyncClient
|
|
constructor() {}
|
|
/**
|
|
* IsRsync checks if a host is running a Rsync server.
|
|
* @example
|
|
* ```javascript
|
|
* const rsync = require('nuclei/rsync');
|
|
* const isRsync = rsync.IsRsync('acme.com', 873);
|
|
* log(toJSON(isRsync));
|
|
* ```
|
|
*/
|
|
public IsRsync(host: string, port: number): IsRsyncResponse | null {
|
|
return null;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* IsRsyncResponse is the response from the IsRsync function.
|
|
* this is returned by IsRsync function.
|
|
* @example
|
|
* ```javascript
|
|
* const rsync = require('nuclei/rsync');
|
|
* const isRsync = rsync.IsRsync('acme.com', 873);
|
|
* log(toJSON(isRsync));
|
|
* ```
|
|
*/
|
|
export interface IsRsyncResponse {
|
|
|
|
IsRsync?: boolean,
|
|
|
|
Banner?: string,
|
|
}
|
|
|