telnet~ TelnetClient

TelnetClient is a minimal Telnet client for nuclei scripts

Constructor

new TelnetClient()

Methods

IsTelnet(host, port) → {IsTelnetResponse}

IsTelnet checks if a host is running a Telnet server
Parameters:
NameTypeDescription
hoststringThe host to check for Telnet server.
portintThe port to check for Telnet server.
Throws:
- The error encountered during the IsTelnet check.
Type
error
Returns:
- The response of the IsTelnet check.
Type: 
IsTelnetResponse
Example
let m = require('nuclei/telnet');
let c = m.TelnetClient();
let response = c.IsTelnet('localhost', 23);