Class: TelnetClient

telnet.TelnetClient

TelnetClient is a minimal Telnet client for nuclei scripts.

Example

const telnet = require('nuclei/telnet');
const client = new telnet.Client();

Table of contents

Constructors

Methods

Constructors

constructor

new TelnetClient(): TelnetClient

Returns

TelnetClient

Defined in

telnet.ts:15

Methods

IsTelnet

IsTelnet(host, port): IsTelnetResponse

IsTelnet checks if a host is running a Telnet server.

Parameters

NameType
hoststring
portnumber

Returns

IsTelnetResponse

Example

const telnet = require('nuclei/telnet');
const isTelnet = telnet.IsTelnet('acme.com', 23);
log(toJSON(isTelnet));

Defined in

telnet.ts:25