Postfix Recon: Basics
Lab Environment
In this lab environment, you will be provided with GUI access to a Kali machine. The target machine will be accessible at demo.ine.local.
Objective: 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.
Tools
Nmap
telnet
nc
Metasploit Framework
Writeup
Last updated