smtp~ SMTPClient

SMTPClient is a minimal SMTP client for nuclei scripts.

Constructor

new SMTPClient()

Methods

IsSMTP(host, port) → {IsSMTPResponse}

IsSMTP checks if a host is running a SMTP server.
Parameters:
NameTypeDescription
hoststringThe host to check.
portintThe port to check.
Throws:
- The error encountered during the check.
Type
error
Returns:
- The response of the check.
Type: 
IsSMTPResponse
Example
let m = require('nuclei/smtp');
let c = m.SMTPClient();
let response = c.IsSMTP('localhost', 25);