Enumeration
Mandatory
- Grab banner
telnet $target 25 // plain SMTPopenssl s_client -crlf -connect $target:465 // without STARTTLS
openssl s_client -starttls smtp -crlf -connect$target:587 // with STARTTLS - Search for exploits for this server.
- Enumerate with nmap
nmap -p25 --script smtp-commands $target - Enumerate short userlist with nmap
nmap -p25 --script smtp-enum-users.nse $target
Optional
- Find usernames:
smtp-user-enum -M VRFY -U /usr/share/wordlists/metasploit/unix_users.txt -t $target‑m 20
smtp-user-enum -M VRFY -U /usr/share/wordlists/seclists/Usernames/xato-net-10-million-usernames.txt -t $target - Try the ismtp tool.
- If you have a valid username and password, try to log in.
On Windows
- Use telnet.exe (from the system directly in \system32 or copy it from another machine) and connect via telnet with the smtp server.
Leave a Reply
You must be logged in to post a comment.