POP3 (110,995)


Cheat sheet

CommandDescription
sudo nmap -sV -p110,995 <target>Detect POP3/POP3S services and versions
telnet <target> 110Manually connect to POP3 over plaintext
nc <target> 110Netcat to interact with POP3 service
openssl s_client -connect <target>:995Connect to POP3 over SSL (port 995)
openssl s_client -starttls pop3 -connect <target>:110Upgrade plaintext to TLS via STARTTLS
swaks --to [email protected] --server <target> --auth-user <user> --auth-password <pass>Test POP3 login capability
curl --user user:pass pop3://<target>/ -kUse curl to test POP3 connection and creds

NSE Scripts

find / -type f -name pop3* 2>/dev/null | grep scripts

/usr/share/nmap/scripts/pop3-brute.nse

POP3 (Post Office Protocol v3) is used by email clients to retrieve messages from a mail server. Unlike IMAP, POP3 usually downloads and deletes mail from the server after retrieval.

• Port 110: Plaintext POP3 (with optional STARTTLS)
• Port 995: POP3S (POP3 over SSL)

CommandDescription
USER usernameIdentifies the user
PASS passwordAuthenticates the user using the provided password
STATRequests the number of saved emails from the server
LISTRequests the number and size of all emails
RETR idRetrieves the email with the specified ID
DELE idDeletes the email with the specified ID
CAPADisplays server capabilities
RSETResets the session state (undeletes marked emails)
QUITCloses the connection with the POP3 server