25, 465, 587 - SMTP(S)
Banner Grabbing
// SMTP
nc -vn <IP> 25
// SMTPS
openssl s_client -crlf -connect smtp.mailgun.org:465 #SSL/TLS without starttls command
openssl s_client -starttls smtp -crlf -connect smtp.mailgun.org:587Find Organization MX Server
dig +short mx google.comRemote - Connect to SMTP server with netcat
kyle@writer:/etc/postfix$ nc localhost 25
220 writer.htb ESMTP Postfix (Ubuntu)
HELO writer.htb
250 writer.htb
MAIL FROM:<kyle@writer.htb>
250 2.1.0 Ok
RCPT TO:<kyle@writer.htb>
250 2.1.5 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Subject: This is a email.
.
250 2.0.0 Ok: queued as 9FF0C802Remote - NTML Auth
Remote - Enum Users
Local - Setup Postfix SMTP server
Local - Swaks
Local - sendEmail (MSDT Follina example)
Local - Thunderbird GUI
Local - Send mail using Pyhon
Interesting Files
Postfix master.cf
Force NTLM Authentication
Last updated