Lab
This challenge covers the basics of Postfix SMTP server reconnaissance. Start the lab and answer the following questions:
- What is the SMTP server name and banner.
- Connect to SMTP service using netcat and retrieve the hostname of the server (domain name).
- Does user "admin" exist on the server machine? Connect to SMTP service using netcat and check manually.
- Does user "commander" exist on the server machine? Connect to SMTP service using netcat and check manually.
- What commands can be used to check the supported commands/capabilities? Connect to SMTP service using telnet and check.
- How many of the common usernames present in the dictionary /usr/share/commix/src/txt/usernames.txt exist on the server. Use smtp-user-enum tool for this task.
- How many common usernames present in the dictionary /usr/share/metasploit-framework/data/wordlists/unix_users.txt exist on the server. Use suitable metasploit module for this task.
- Connect to SMTP service using telnet and send a fake mail to root user.
- Send a fake mail to root user using sendemail command.
IP
The target is 192.5.244.3.
SMTP Version Module
use auxiliary/scanner/smtp/smtp_version
exploit
SMTP User Enumeration
use auxiliary/scanner/smtp/smtp_enum
exploit