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, Generic command execution
Executes the supplied command
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/interact
- payload/cmd/unix/reverse
- payload/cmd/unix/reverse_bash
Usage Information
$ msfconsole
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use payload/cmd/unix/generic
msf payload(generic) > set CMD [STRING]
msf payload(generic) > generate
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use payload/cmd/unix/generic
msf payload(generic) > set CMD [STRING]
msf payload(generic) > generate
Module Options
| CMD | The command string to execute |
| AutoRunScript | A script to run automatically on session creation. |
| InitialAutoRunScript | An initial script to run on session creation (before AutoRunScript) |
| VERBOSE | Enable detailed status messages |
| WORKSPACE | Specify the workspace for this module |
