2024-02-07 21:45:40 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2024-03-01 16:38:56 +05:30
|
|
|
* IsRsync checks if a host is running a Rsync server.
|
2024-02-07 21:45:40 +05:30
|
|
|
* @example
|
|
|
|
|
* ```javascript
|
|
|
|
|
* const rsync = require('nuclei/rsync');
|
2024-03-01 16:38:56 +05:30
|
|
|
* const isRsync = rsync.IsRsync('acme.com', 873);
|
|
|
|
|
* log(toJSON(isRsync));
|
2024-02-07 21:45:40 +05:30
|
|
|
* ```
|
|
|
|
|
*/
|
2024-03-01 16:38:56 +05:30
|
|
|
export function IsRsync(host: string, port: number): IsRsyncResponse | null {
|
|
|
|
|
return null;
|
2024-02-07 21:45:40 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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,
|
|
|
|
|
}
|
|
|
|
|
|