metasploit-framework/lib/msf/base/sessions/meterpreter_android.rb

34 lines
613 B
Ruby
Raw Normal View History

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
def load_android
original = console.disable_output
console.disable_output = true
console.run_single('load android')
console.disable_output = original
end
2014-07-28 08:49:50 +00:00
end
end
end