Portmapper Amplification Scanner - Metasploit
This page contains detailed information about how to use the auxiliary/scanner/portmap/portmap_amp metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: Portmapper Amplification Scanner
Module: auxiliary/scanner/portmap/portmap_amp
Source code: modules/auxiliary/scanner/portmap/portmap_amp.rb
Disclosure date: -
Last modification time: 2017-07-24 06:26:21 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): 111
List of CVEs: CVE-2013-5211
This module can be used to discover Portmapper services which can be used in an amplification DDoS attack against a third party.
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
This module is a scanner module, and is capable of testing against multiple hosts.
msf > use auxiliary/scanner/portmap/portmap_amp
msf auxiliary(portmap_amp) > show options
... show and set options ...
msf auxiliary(portmap_amp) > set RHOSTS ip-range
msf auxiliary(portmap_amp) > exploit
Other examples of setting the RHOSTS option:
Example 1:
msf auxiliary(portmap_amp) > set RHOSTS 192.168.1.3-192.168.1.200
Example 2:
msf auxiliary(portmap_amp) > set RHOSTS 192.168.1.1/24
Example 3:
msf auxiliary(portmap_amp) > set RHOSTS file:/tmp/ip_list.txt
Required Options
- RHOSTS: The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
Go back to menu.
Msfconsole Usage
Here is how the scanner/portmap/portmap_amp auxiliary module looks in the msfconsole:
msf6 > use auxiliary/scanner/portmap/portmap_amp
msf6 auxiliary(scanner/portmap/portmap_amp) > show info
Name: Portmapper Amplification Scanner
Module: auxiliary/scanner/portmap/portmap_amp
License: Metasploit Framework License (BSD)
Rank: Normal
Provided by:
xistence <[email protected]>
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
BATCHSIZE 256 yes The number of hosts to probe in each set
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 111 yes The target port (UDP)
THREADS 10 yes The number of concurrent threads
Description:
This module can be used to discover Portmapper services which can be
used in an amplification DDoS attack against a third party.
References:
https://nvd.nist.gov/vuln/detail/CVE-2013-5211
https://www.us-cert.gov/ncas/alerts/TA14-017A
http://blog.level3.com/security/a-new-ddos-reflection-attack-portmapper-an-early-warning-to-the-industry/
Module Options
This is a complete list of options available in the scanner/portmap/portmap_amp auxiliary module:
msf6 auxiliary(scanner/portmap/portmap_amp) > show options
Module options (auxiliary/scanner/portmap/portmap_amp):
Name Current Setting Required Description
---- --------------- -------- -----------
BATCHSIZE 256 yes The number of hosts to probe in each set
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 111 yes The target port (UDP)
THREADS 10 yes The number of concurrent threads
Advanced Options
Here is a complete list of advanced options supported by the scanner/portmap/portmap_amp auxiliary module:
msf6 auxiliary(scanner/portmap/portmap_amp) > show advanced
Module advanced options (auxiliary/scanner/portmap/portmap_amp):
Name Current Setting Required Description
---- --------------- -------- -----------
CHOST no The local client address
CPORT no The local client port
NUM_REQUESTS 1 no Number of requests to send
SRCIP no Use this source IP
ScannerMaxResends 10 yes The maximum times to resend a packet when out of buffers
ScannerRecvInterval 30 yes The maximum numbers of sends before entering the processing loop
ScannerRecvQueueLimit 100 yes The maximum queue size before breaking out of the processing loop
ScannerRecvWindow 15 yes The number of seconds to wait post-scan to catch leftover replies
ShowProgress true yes Display progress messages during a scan
ShowProgressPercent 10 yes The interval in percent that progress should be shown
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 scanner/portmap/portmap_amp module can do:
msf6 auxiliary(scanner/portmap/portmap_amp) > show actions
Auxiliary actions:
Name Description
---- -----------
Evasion Options
Here is the full list of possible evasion options supported by the scanner/portmap/portmap_amp auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(scanner/portmap/portmap_amp) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
Go back to menu.
Error Messages
This module may fail with the following 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.
Skipping <DATA.SIZE>-byte non-Portmap response from <SHOST>:<SPORT>
Here is a relevant code snippet related to the "Skipping <DATA.SIZE>-byte non-Portmap response from <SHOST>:<SPORT>" error message:
118: @results_metrics[shost] << data
119: elsif data =~ /#{@xid_dump}\x00\x00\x00\x01/
120: @results_dump[shost] ||= []
121: @results_dump[shost] << data
122: else
123: vprint_error("Skipping #{data.size}-byte non-Portmap response from #{shost}:#{sport}")
124: end
125: end
126:
127: # Called after the scan block
128: def scanner_postscan(batch)
<PEER> - Not vulnerable to <ATTACK>: <PROOF>
Here is a relevant code snippet related to the "<PEER> - Not vulnerable to <ATTACK>: <PROOF>" error message:
163: proto: 'udp',
164: name: attack,
165: refs: references
166: )
167: else
168: vprint_status("#{peer} - Not vulnerable to #{attack}: #{proof}")
169: end
170: end
171: end
172:
173:
Go back to menu.
Related Pull Requests
- #8716 Merged Pull Request: Print_Status -> Print_Good (And OCD bits 'n bobs)
- #8518 Merged Pull Request: update CVE reference in where modules report_vuln
- #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
- #5380 Merged Pull Request: PageantJacker (POST Module)
- #5972 Merged Pull Request: Portmap amplification scanner
References
- CVE-2013-5211
- https://www.us-cert.gov/ncas/alerts/TA14-017A
- http://blog.level3.com/security/a-new-ddos-reflection-attack-portmapper-an-early-warning-to-the-industry/
See Also
Check also the following modules related to this module:
- auxiliary/admin/upnp/soap_portmapping
- auxiliary/scanner/misc/sunrpc_portmapper
- auxiliary/scanner/ntp/ntp_monlist
- auxiliary/scanner/ntp/ntp_peer_list_dos
- auxiliary/scanner/ntp/ntp_peer_list_sum_dos
- auxiliary/scanner/ntp/ntp_readvar
- auxiliary/scanner/ntp/ntp_req_nonce_dos
- auxiliary/scanner/ntp/ntp_reslist_dos
- auxiliary/scanner/ntp/ntp_unsettrap_dos
- auxiliary/scanner/upnp/ssdp_amp
- auxiliary/scanner/udp/udp_amplification
- auxiliary/scanner/dns/dns_amp
- auxiliary/scanner/memcached/memcached_amp
- exploit/windows/browser/aol_ampx_convertfile
- exploit/windows/fileformat/abbs_amp_lst
- auxiliary/admin/mssql/mssql_findandsampledata
- auxiliary/gather/doliwamp_traversal_creds
- auxiliary/scanner/sap/sap_ctc_verb_tampering_user_mgmt
- exploit/windows/browser/ms10_026_avi_nsamplespersec
- exploit/windows/browser/nctaudiofile2_setformatlikesample
- exploit/windows/browser/winamp_playlist_unc
- exploit/windows/browser/winamp_ultravox
- exploit/windows/fileformat/gta_samp
- exploit/windows/fileformat/winamp_maki_bof
- exploit/windows/http/xampp_webdav_upload_php
- exploit/windows/local/ms13_053_schlamperei
- exploit/windows/misc/citrix_streamprocess
- exploit/windows/misc/citrix_streamprocess_data_msg
- exploit/windows/misc/citrix_streamprocess_get_boot_record_request
- exploit/windows/misc/citrix_streamprocess_get_footer
- exploit/windows/misc/citrix_streamprocess_get_objects
Authors
- xistence <xistence[at]0x90.nl>
Version
This page has been produced using Metasploit Framework version 6.1.28-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.