POP3 & IMAP | 110, 143, 993
01. POP3 - Post Office Protocol Version 3
## ------------------| Login via telnet
telnet $IP 110 ### Login via telnet
USER h4rithd ### Enter user name with USER command | Receive +OK, if success
PASS harith123 ### Enter password with PASS command | Receive +OK Welcome h4rithd, if success
STAT ### Returns total number of messages and total size | Receive +OK 1 743
LIST ### Lists all messages | +OK 1 743, if success
RETR 1 ### Retrieves the whole message RETR <number>
## ------------------| Login via OpenSSL [Encrypted]
openssl s_client -connect $IP:pop3s
openssl s_client -connect $IP:pop3s -quiet -crlf
## ------------------| Enumerate using Nmap
sudo nmap -sV -Pn -p110,143,993,995 -sC $IP
sudo nmap -sV -Pn --script pop3-ntlm-info.nse -p 110 $IP
sudo nmap -sV -Pn --script pop3-brute.nse -p 110 $IP
## ------------------| Brute force
hydra -l <USERS> -P <PASSWORDS> -f $IP pop3 -V
hydra -S -v -s 995 -l <USERS> -P <PASSWORDS_LISTS> -f $IP pop3 -V
use auxiliary/scanner/pop3/pop3_login02. IMAP - Internet Message Access Protocol
Last updated
