Files
metasploit-gs/modules/payloads/singles/generic/shell_bind_aws_ssm.rb
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.0 KiB
Ruby
Raw Normal View History

2022-12-30 21:50:15 -05:00
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
module MetasploitModule
CachedSize = 0
2022-12-30 21:50:15 -05:00
include Msf::Payload::Single
include Msf::Sessions::CommandShellOptions
def initialize(info = {})
2023-02-03 15:29:19 -05:00
super(
merge_info(
info,
'Name' => 'Command Shell, Bind SSM (via AWS API)',
2023-02-03 15:29:19 -05:00
'Description' => 'Creates an interactive shell using AWS SSM',
'Author' => 'RageLtMan <rageltman[at]sempervictus>',
'References' => [['URL', 'https://www.sempervictus.com/single-post/once-upon-a-cloudy-air-i-crossed-a-gap-which-wasn-t-there']],
2023-02-03 15:29:19 -05:00
'License' => MSF_LICENSE,
'Platform' => '',
'Arch' => ARCH_ALL,
2023-02-03 15:29:19 -05:00
'Handler' => Msf::Handler::BindAwsSsm,
'Session' => Msf::Sessions::AwsSsmCommandShellBind,
2023-02-03 15:29:19 -05:00
'Payload' => {
'Offsets' => {},
2022-12-30 21:50:15 -05:00
'Payload' => ''
}
2023-02-03 15:29:19 -05:00
)
)
2022-12-30 21:50:15 -05:00
end
def on_session(session)
super
2022-12-30 21:50:15 -05:00
session.arch.clear # undo the ARCH_ALL amalgamation
2022-12-30 21:50:15 -05:00
end
end