Authentication Capture: HTTP - Metasploit


This page contains detailed information about how to use the auxiliary/server/capture/http metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.

Module Overview


Name: Authentication Capture: HTTP
Module: auxiliary/server/capture/http
Source code: modules/auxiliary/server/capture/http.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 HTTP 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/http
msf auxiliary(http) > show targets
    ... a list of targets ...
msf auxiliary(http) > set TARGET target-id
msf auxiliary(http) > show options
    ... show and set options ...
msf auxiliary(http) > exploit

Go back to menu.

Msfconsole Usage


Here is how the server/capture/http auxiliary module looks in the msfconsole:

msf6 > use auxiliary/server/capture/http

msf6 auxiliary(server/capture/http) > show info

       Name: Authentication Capture: HTTP
     Module: auxiliary/server/capture/http
    License: Metasploit Framework License (BSD)
       Rank: Normal

Provided by:
  ddz <[email protected]>
  hdm <[email protected]>

Available actions:
  Name     Description
  ----     -----------
  Capture  Run capture web server

Check supported:
  No

Basic options:
  Name          Current Setting                                                                     Required  Description
  ----          ---------------                                                                     --------  -----------
  AUTOPWN_HOST                                                                                      no        The IP address of the browser_autopwn service
  AUTOPWN_PORT                                                                                      no        The SRVPORT port of the browser_autopwn service
  AUTOPWN_URI                                                                                       no        The URIPATH of the browser_autopwn service
  FORMSDIR      /opt/metasploit-framework/embedded/framework/data/exploits/capture/http/forms       no        The directory containing form snippets (example.com.txt)
  SITELIST      /opt/metasploit-framework/embedded/framework/data/exploits/capture/http/sites.txt   no        The list of URLs that should be used for cookie capture
  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       80                                                                                  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)
  TEMPLATE      /opt/metasploit-framework/embedded/framework/data/exploits/capture/http/index.html  no        The HTML template to serve in responses

Description:
  This module provides a fake HTTP service that is designed to capture 
  authentication credentials.

Module Options


This is a complete list of options available in the server/capture/http auxiliary module:

msf6 auxiliary(server/capture/http) > show options

Module options (auxiliary/server/capture/http):

   Name          Current Setting                                                                    Required  Description
   ----          ---------------                                                                    --------  -----------
   AUTOPWN_HOST                                                                                     no        The IP address of the browser_autopwn service
   AUTOPWN_PORT                                                                                     no        The SRVPORT port of the browser_autopwn service
   AUTOPWN_URI                                                                                      no        The URIPATH of the browser_autopwn service
   FORMSDIR      /opt/metasploit-framework/embedded/framework/data/exploits/capture/http/forms      no        The directory containing form snippets (example.com.txt)
   SITELIST      /opt/metasploit-framework/embedded/framework/data/exploits/capture/http/sites.txt  no        The list of URLs that should be used for cookie capture
   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       80                                                                                 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)
   TEMPLATE      /opt/metasploit-framework/embedded/framework/data/exploits/capture/http/index.htm  no        The HTML template to serve in responses
                 l

Auxiliary action:

   Name     Description
   ----     -----------
   Capture  Run capture web server

Advanced Options


Here is a complete list of advanced options supported by the server/capture/http auxiliary module:

msf6 auxiliary(server/capture/http) > show advanced

Module advanced options (auxiliary/server/capture/http):

   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/http module can do:

msf6 auxiliary(server/capture/http) > show actions

Auxiliary actions:

   Name     Description
   ----     -----------
   Capture  Run capture web server

Evasion Options


Here is the full list of possible evasion options supported by the server/capture/http auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):

msf6 auxiliary(server/capture/http) > 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.

Error Messages


This module may fail with the following error messages:

Error Messages

Check for the possible causes from the code snippets below found in the module source code. This can often times help in identifying the root cause of the problem.

Error


Here is a relevant code snippet related to the "Error" error message:

90:	          close_client(cli)
91:	      end
92:	    rescue ::EOFError, ::Errno::EACCES, ::Errno::ECONNABORTED, ::Errno::ECONNRESET
93:	    rescue ::OpenSSL::SSL::SSLError
94:	    rescue ::Exception
95:	      print_error("Error: #{$!.class} #{$!} #{$!.backtrace}")
96:	    end
97:	
98:	    close_client(cli)
99:	  end
100:	

Go back to menu.


Go back to menu.

See Also


Check also the following modules related to this module:

Authors


  • ddz
  • hdm

Version


This page has been produced using Metasploit Framework version 6.1.36-dev. For more modules, visit the Metasploit Module Library.

Go back to menu.