SMTP Enum

CheckList

  • Check for version

  • LFI chaining log file poisoning

  • User enumeration

Grab the banner and VRFY

nc -nv 10.11.12.8 25 
VRFY bob 
250 2.1.5 
[email protected]                  <--- Output if user exists
 
VRFY idontexist 
550 5.1.1 idontexist... User unknow    <--- Output if user does not exist 

EXPN request: asks the server for the membership of a mailing list

Bash Script for SMTP

#!/bin/bash

# VRFY Script
#############

for ips in $(cat numbers.txt);			# numbers.txt list of IP's
do
	for user in $(cat users.txt);       # users.txt list of usernames
	do 
		echo VRFY $user | nc -nv -w 1 10.11.1.$ips 25 2>/dev/null |grep ^"250"
	done
done

SMTP nmap scripts

SMTP user enum

Code Execution through SMTP/LFI

Last updated

Was this helpful?