Linux Execute Command
Execute an arbitrary command
Rank
- Normal
Authors
- ricky < >
Similar Modules
- payload/linux/x64/shell/bind_tcp
- payload/linux/x64/shell/reverse_tcp
- payload/linux/x64/shell_bind_tcp
- payload/linux/x64/shell_find_port
- payload/linux/x64/shell_reverse_tcp
Usage Information
$ msfconsole
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use payload/linux/x64/exec
msf payload(exec) > set CMD [STRING]
msf payload(exec) > generate
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use payload/linux/x64/exec
msf payload(exec) > set CMD [STRING]
msf payload(exec) > generate
Module Options
| CMD | The command string to execute |
| AppendExit | Append a stub that executes the exit(0) system call |
| PrependChrootBreak | Prepend a stub that will break out of a chroot (includes setreuid to root) |
| 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 |
| VERBOSE | Enable detailed status messages |
| WORKSPACE | Specify the workspace for this module |
