Browse Exploit & Auxiliary Modules
The Metasploit Project hosts the world's largest database of quality assured exploits, including hundreds of remote exploits, auxiliary modules, and payloads. You can even review the Metasploit Framework source code of any module - or write your own.
Search for modules
NAT-PMP Port Mapper
Map (forward) TCP and UDP ports on NAT devices using NAT-PMP
Rank
- Normal
Authors
- Jon Hart < jhart [at] spoofed.org >
Development
Similar Modules
Usage Information
$ msfconsole
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use auxiliary/admin/natpmp/natpmp_map
msf auxiliary(natpmp_map) > set LPORT [MY LISTENER PORT]
msf auxiliary(natpmp_map) > set RHOSTS [TARGET HOST RANGE]
msf auxiliary(natpmp_map) > set RPORT [TARGET PORT]
msf auxiliary(natpmp_map) > run
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use auxiliary/admin/natpmp/natpmp_map
msf auxiliary(natpmp_map) > set LPORT [MY LISTENER PORT]
msf auxiliary(natpmp_map) > set RHOSTS [TARGET HOST RANGE]
msf auxiliary(natpmp_map) > set RPORT [TARGET PORT]
msf auxiliary(natpmp_map) > run
Module Options
| CHOST | The local client address |
| LIFETIME | Time in ms to keep this port forwarded (default: 3600000) |
| LPORT | The listen port |
| NATPMPPORT | NAT-PMP port to use (default: 5351) |
| PROTOCOL | Protocol to forward (accepted: TCP, UDP) (default: TCP) |
| RHOSTS | The target address range or CIDR identifier |
| RPORT | The target port |
| THREADS | The number of concurrent threads (default: 1) |
| ShowProgress | Display progress messages during a scan |
| ShowProgressPercent | The interval in percent that progress should be shown |
| VERBOSE | Enable detailed status messages |
| WORKSPACE | Specify the workspace for this module |
