Authentication Capture: POP3 - Metasploit
This page contains detailed information about how to use the auxiliary/server/capture/pop3 metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: Authentication Capture: POP3
Module: auxiliary/server/capture/pop3
Source code: modules/auxiliary/server/capture/pop3.rb
Disclosure date: -
Last modification time: 2020-05-12 22:15:21 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): -
List of CVEs: -
This module provides a fake POP3 service that is designed to capture authentication credentials.
Module Ranking and Traits
Module Ranking:
- normal: The exploit is otherwise reliable, but depends on a specific version and can't (or doesn't) reliably autodetect. More information about ranking can be found here.
Basic Usage
msf > use auxiliary/server/capture/pop3
msf auxiliary(pop3) > show targets
... a list of targets ...
msf auxiliary(pop3) > set TARGET target-id
msf auxiliary(pop3) > show options
... show and set options ...
msf auxiliary(pop3) > exploit
Knowledge Base
Vulnerable Application
This module creates a mock POP3 server which accepts credentials.
Verification Steps
- Start msfconsole
- Do:
use auxiliary/server/capture/pop3
- Do:
run
Scenarios
Testing Script
The following script will attempt a login of the server.
require 'net/pop'
puts 'Attempting Login'
Net::POP3.start('127.0.0.1', 110, 'username', 'password') do |pop|
# check for email, should be none
if pop.mails.empty?
puts 'No mail'
end
end
Output from testing script
When this script is run from the Metasploit console, it intermingles with the commands.
$ sudo ./msfconsole -qx 'use auxiliary/server/capture/pop3; set srvhost 127.0.0.1; run; ruby test_capture_pop3.rb;creds'
srvhost => 127.0.0.1
[*] Auxiliary module running as background job 0.
[*] exec: ruby test_capture_pop3.rb
[*] Started service listener on 127.0.0.1:110
[*] Server started.
Attempting Login
[+] POP3 LOGIN 127.0.0.1:35766 username / password
No mail
Credentials
===========
host origin service public private realm private_type JtR Format
---- ------ ------- ------ ------- ----- ------------ ----------
127.0.0.1 127.0.0.1 110/tcp (pop3) username password Password
Go back to menu.
Msfconsole Usage
Here is how the server/capture/pop3 auxiliary module looks in the msfconsole:
msf6 > use auxiliary/server/capture/pop3
msf6 auxiliary(server/capture/pop3) > show info
Name: Authentication Capture: POP3
Module: auxiliary/server/capture/pop3
License: Metasploit Framework License (BSD)
Rank: Normal
Provided by:
ddz <[email protected]>
hdm <[email protected]>
Available actions:
Name Description
---- -----------
Capture Run POP3 capture server
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
SRVHOST 0.0.0.0 yes The local host or network interface to listen on. This must be an address on the local machine or 0.0.0.0 to listen on all addresses.
SRVPORT 110 yes The local port to listen on.
SSL false no Negotiate SSL for incoming connections
SSLCert no Path to a custom SSL certificate (default is randomly generated)
Description:
This module provides a fake POP3 service that is designed to capture
authentication credentials.
Module Options
This is a complete list of options available in the server/capture/pop3 auxiliary module:
msf6 auxiliary(server/capture/pop3) > show options
Module options (auxiliary/server/capture/pop3):
Name Current Setting Required Description
---- --------------- -------- -----------
SRVHOST 0.0.0.0 yes The local host or network interface to listen on. This must be an address on the local machine or 0.0.0.0 to listen on all addresses.
SRVPORT 110 yes The local port to listen on.
SSL false no Negotiate SSL for incoming connections
SSLCert no Path to a custom SSL certificate (default is randomly generated)
Auxiliary action:
Name Description
---- -----------
Capture Run POP3 capture server
Advanced Options
Here is a complete list of advanced options supported by the server/capture/pop3 auxiliary module:
msf6 auxiliary(server/capture/pop3) > show advanced
Module advanced options (auxiliary/server/capture/pop3):
Name Current Setting Required Description
---- --------------- -------- -----------
ListenerComm no The specific communication channel to use for this service
SSLCipher no String for SSL cipher spec - "DHE-RSA-AES256-SHA" or "ADH"
SSLCompression false no Enable SSL/TLS-level compression
VERBOSE false no Enable detailed status messages
WORKSPACE no Specify the workspace for this module
Auxiliary Actions
This is a list of all auxiliary actions that the server/capture/pop3 module can do:
msf6 auxiliary(server/capture/pop3) > show actions
Auxiliary actions:
Name Description
---- -----------
Capture Run POP3 capture server
Evasion Options
Here is the full list of possible evasion options supported by the server/capture/pop3 auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(server/capture/pop3) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
TCP::max_send_size 0 no Maximum tcp segment size. (0 = disable)
TCP::send_delay 0 no Delays inserted before every send. (0 = disable)
Go back to menu.
Related Pull Requests
- #13443 Merged Pull Request: Add descriptions to auxiliary modules Actions
- #9897 Merged Pull Request: Fix #8404 ListenerComm Support For Exploit::Remote::TcpServer
- #8716 Merged Pull Request: Print_Status -> Print_Good (And OCD bits 'n bobs)
- #8338 Merged Pull Request: Fix msf/core and self.class msftidy warnings
- #6655 Merged Pull Request: use MetasploitModule as a class name
- #6648 Merged Pull Request: Change metasploit class names
- #5768 Merged Pull Request: Update modules to use metasploit-credential instead of report_auth_info
- #2525 Merged Pull Request: Change module boilerplate
- #1228 Merged Pull Request: MSFTIDY cleanup #1 - auxiliary
Go back to menu.
See Also
Check also the following modules related to this module:
- auxiliary/scanner/pop3/pop3_login
- auxiliary/scanner/pop3/pop3_version
- exploit/linux/pop3/cyrus_pop3d_popsubfolders
- exploit/windows/pop3/seattlelab_pass
- exploit/unix/misc/polycom_hdx_auth_bypass
- auxiliary/server/capture/drda
- auxiliary/server/capture/ftp
- auxiliary/server/capture/http
- auxiliary/server/capture/http_basic
- auxiliary/server/capture/http_javascript_keylogger
- auxiliary/server/capture/http_ntlm
- auxiliary/server/capture/imap
- auxiliary/server/capture/mssql
- auxiliary/server/capture/mysql
- auxiliary/server/capture/postgresql
- auxiliary/server/capture/printjob_capture
- auxiliary/server/capture/sip
- auxiliary/server/capture/smb
- auxiliary/server/capture/smtp
- auxiliary/server/capture/telnet
- auxiliary/server/capture/vnc
- post/android/capture/screen
- post/osx/capture/keylog_recorder
- post/osx/capture/screen
- post/windows/capture/keylog_recorder
- post/windows/capture/lockout_keylogger
- auxiliary/scanner/dlsw/dlsw_leak_capture
- exploit/windows/browser/ie_setmousecapture_uaf
Authors
- ddz
- hdm
Version
This page has been produced using Metasploit Framework version 6.1.27-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.