2014-07-28 08:49:50 +00:00
|
|
|
# -*- coding: binary -*-
|
|
|
|
|
|
|
|
require 'msf/base/sessions/meterpreter'
|
2014-07-29 14:21:31 +00:00
|
|
|
require 'msf/base/sessions/meterpreter_java'
|
2014-07-28 08:49:50 +00:00
|
|
|
require 'msf/base/sessions/meterpreter_options'
|
|
|
|
|
|
|
|
module Msf
|
|
|
|
module Sessions
|
|
|
|
|
|
|
|
###
|
|
|
|
#
|
|
|
|
# This class creates a platform-specific meterpreter session type
|
|
|
|
#
|
|
|
|
###
|
|
|
|
class Meterpreter_Java_Android < Msf::Sessions::Meterpreter_Java_Java
|
|
|
|
|
|
|
|
def initialize(rstream, opts={})
|
|
|
|
super
|
|
|
|
self.platform = 'java/android'
|
|
|
|
end
|
2014-08-09 18:02:47 +00:00
|
|
|
|
2014-07-28 08:49:50 +00:00
|
|
|
def load_android
|
|
|
|
original = console.disable_output
|
|
|
|
console.disable_output = true
|
|
|
|
console.run_single('load android')
|
|
|
|
console.disable_output = original
|
|
|
|
end
|
2014-08-09 18:02:47 +00:00
|
|
|
|
2014-07-28 08:49:50 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|