🔬SMTP Enum
SMTP (Simple Mail Transfer Protocol) - a communication protocol used for the transmission of email.
Default SMTP TCP port is 25.
sudo nmap -p25 -sV -sC -O <TARGET_IP>Lab 1
🔬 SMTP - Postfix Recon: Basics
Target IP:
192.63.243.3Enumeration of Postfix server
ip -br -c a
eth1@if130369 UP 192.63.243.2/24Target IP is
192.8.3.3
nmap -sV -script banner 192.63.243.325/tcp open smtp Postfix smtpd
|_banner: 220 openmailbox.xyz ESMTP Postfix: Welcome to our mail server.
MAC Address: 02:42:C0:3F:F3:03 (Unknown)
Service Info: Host: openmailbox.xyz
📌 SMTP server name and banner are:
Server:
PostfixBanner:
openmailbox.xyz ESMTP Postfix: Welcome to our mail server.
Fetch the hostname using
nc(netcat)
📌 SMTP server hostname is
openmailbox.xyz
Check if
adminandcommanderuser exists
Check supported commands/capabilities using
telnet
📌 Supported commands/capabilities are
smtp-user-enum- tool for enumerating OS-level user account via the SMTP service
Use
smtp-user-enumto find common usernames from specified wordlist

📌 There are
8users present on the server, from the above wordlist:
admin
administrator
postmaster
root
sales
support
www-data
Use
msfconsoleto find common usernames from specified wordlist
📌 There are
20users present on the server, from the/usr/share/metasploit-framework/data/wordlists/unix_users.txtwordlist.

Connect to SMTP service using telnet and send a fake mail to root user.

Send a fake mail to root user using
sendemailcommand

Last updated
Was this helpful?
