Methods
CheckRDPAuth(host, port) → {CheckRDPAuthResponse}
CheckRDPAuth checks if the given host and port are running rdp server with authentication and returns their metadata.
Parameters:
Name | Type | Description |
---|---|---|
host | string | The host to check. |
port | number | The port to check. |
- Source
Throws:
- - The error encountered during the check.
- Type
- error
Returns:
- The response from the check.
- Type:
- CheckRDPAuthResponse
Example
let m = require('nuclei/rdp');
let c = m.RDPClient();
let response = c.CheckRDPAuth('localhost', 3389);
IsRDP(host, port) → {IsRDPResponse}
IsRDP checks if the given host and port are running rdp server. If connection is successful, it returns true. If connection is unsuccessful, it returns false and error. The Name of the OS is also returned if the connection is successful.
Parameters:
Name | Type | Description |
---|---|---|
host | string | The host to check. |
port | number | The port to check. |
- Source
Throws:
- - The error encountered during the check.
- Type
- error
Returns:
- The response from the check.
- Type:
- IsRDPResponse
Example
let m = require('nuclei/rdp');
let c = m.RDPClient();
let response = c.IsRDP('localhost', 3389);