Namespace: rdp

Table of contents

Interfaces

Functions

Functions

CheckRDPAuth

CheckRDPAuth(host, port): CheckRDPAuthResponse | null 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 | null Example
const rdp = require('nuclei/rdp');
const checkRDPAuth = rdp.CheckRDPAuth('acme.com', 3389);
log(toJSON(checkRDPAuth));

Defined in

rdp.ts:14

IsRDP

IsRDP(host, port): IsRDPResponse | null 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 | null Example
const rdp = require('nuclei/rdp');
const isRDP = rdp.IsRDP('acme.com', 3389);
log(toJSON(isRDP));

Defined in

rdp.ts:32