CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/msf/base/sessions/meterpreter_android.rb
Views: 1904
1
# -*- coding: binary -*-
2
3
4
module Msf
5
module Sessions
6
7
###
8
#
9
# This class creates a platform-specific meterpreter session type
10
#
11
###
12
class Meterpreter_Java_Android < Msf::Sessions::Meterpreter_Java_Java
13
14
def initialize(rstream, opts={})
15
super
16
self.base_platform = 'android'
17
self.base_arch = ARCH_JAVA
18
end
19
20
def load_android
21
original = console.disable_output
22
console.disable_output = true
23
console.run_single('load android')
24
console.run_single('load appapi')
25
console.disable_output = original
26
end
27
28
end
29
30
end
31
end
32
33
34