rdp~ RDPClient

RDPClient is a client for rdp servers

Constructor

new RDPClient()

Methods

CheckRDPAuth(host, port) → {CheckRDPAuthResponse}

CheckRDPAuth checks if the given host and port are running rdp server with authentication and returns their metadata.
Parameters:
NameTypeDescription
hoststringThe host to check.
portnumberThe port to check.
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:
NameTypeDescription
hoststringThe host to check.
portnumberThe port to check.
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);