Methods
IsTelnet(host, port) → {IsTelnetResponse}
IsTelnet checks if a host is running a Telnet server
Parameters:
Name | Type | Description |
---|---|---|
host | string | The host to check for Telnet server. |
port | int | The port to check for Telnet server. |
- Source
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);