Class: RDPClient

rdp.RDPClient RDPClient is a minimal RDP client for nuclei scripts. Example
const rdp = require('nuclei/rdp');
const client = new rdp.Client();

Table of contents

Constructors

Methods

Constructors

constructor

new RDPClient(): RDPClient

Returns

RDPClient

Defined in

rdp.ts:15

Methods

CheckRDPAuth

CheckRDPAuth(host, port): CheckRDPAuthResponse CheckRDPAuth checks if the given host and port are running rdp server with authentication and returns their metadata. If connection is successful, it returns true.

Parameters

NameType
hoststring
portnumber

Returns

CheckRDPAuthResponse Example
const rdp = require('nuclei/rdp');
const checkRDPAuth = rdp.CheckRDPAuth('acme.com', 3389);
log(toJSON(checkRDPAuth));

Defined in

rdp.ts:44

IsRDP

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

NameType
hoststring
portnumber

Returns

IsRDPResponse Example
const rdp = require('nuclei/rdp');
const isRDP = rdp.IsRDP('acme.com', 3389);
log(toJSON(isRDP));

Defined in

rdp.ts:28