25, 465, 587 - SMTP

Telnet

telnet 10.0.0.3 25

Netcat

nc -n 10.0.0.3 25

Openssl (SMTPS)

openssl s_client -starttls smtp -crlf -connect 10.0.0.3:587
Parameters
  • s_client: SSL/TLS client program.

  • -starttls <protocol>: send the protocol-specific message(s) to switch to TLS for communication.

  • -crlf: translate a line feed from the terminal into CR+LF.

Enumeration

smtp-commands NSE Script

nmap -p 25,465,587 --script smtp-commands 10.0.0.3

smtp-enum-users NSE Script

NTLM Information Disclosure

On Windows, with NTLM authentication enabled, sending a SMTP NTLM authentication request with null credentials will cause the remote service to respond with a NTLMSSP message disclosing information to include NetBIOS, DNS, and OS build version.

Manually

smtp-ntlm-info NSE Script

Commands

Note: Sessions must start with HELO and end with QUIT.

Configuration files

Other

The following Python script opens a TCP socket, connects to the SMTP server, and issues a VRFY command for a given username:

Last updated

Was this helpful?