documentation/modules/auxiliary/scanner/pop3/pop3_login.md
POP3 is an application-layer Internet standard protocol used by e-mail clients to retrieve e-mail from a mail server.
This module in particular attempts to authenticate to a POP3 service. The default wordlists are:
use auxiliary/scanner/pop3/pop3_loginset rhosts [IP]runAttempt to login with a blank username and password
Try blank passwords for all users
How fast to bruteforce, from 0 to 5
Try each user/password couple stored in the current database
Add all passwords in the current database to the list
Add all users in the current database to the list
Skip existing credentials stored in the current database (Accepted: none, user, user&realm)
A specific password to authenticate with
Newline separated list of probable users passwords. Default depends on install location, however it will be within metasploit-framework/data/wordlists/unix_passwords.txt
Stop guessing when a credential works for a host
The number of concurrent threads (max one per host)
A specific username to authenticate as
File containing users and pass words separated by space, one pair per line
Try the username as the password for all users
Newline separated list of probable users accounts. Default depends on install location, however it will be within metasploit-framework/data/wordlists/unix_users.txt
Whether to print output for all attempts
First we need to install an email server, here we will use dovecot:
sudo apt install dovecot-core dovecot-pop3d version 2.3 will be installedThen we can configure it
In /etc/dovecot/dovecot.conf uncomment the line #protocols = pop3 imap lmtp
In /etc/dovecot/conf.d/10-ssl.conf change the line ssl = yes to ssl = no (obviously this is bad practice)
Then we create a new user
sudo useradd -m alice && echo "alice:password123" | sudo chpasswdWe can now start the server with sudo systemctl start dovecot
Now we can go into msfconsole:
msf > use auxiliary/scanner/pop3/pop3_login
msf auxiliary(scanner/pop3/pop3_login) > set rhosts 127.0.0.1
rhosts => 127.0.0.1
msf auxiliary(scanner/pop3/pop3_login) > set username alice
username => alice
msf auxiliary(scanner/pop3/pop3_login) > set password password123
password => password123
msf auxiliary(scanner/pop3/pop3_login) > run
[+] 127.0.0.1:110 - 127.0.0.1:110 - Success: 'alice:password123' '+OK Logged in. '
[!] 127.0.0.1:110 - No active DB -- Credential data will not be saved!
[*] 127.0.0.1:110 - Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed