Land #5583, Android Meterpreter commands fix

bug/bundler_fix
William Vu 2015-06-23 14:39:37 -05:00
commit dffc516d6d
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
3 changed files with 13 additions and 0 deletions

View File

View File

@ -19,6 +19,13 @@ class Meterpreter_Java_Android < Msf::Sessions::Meterpreter_Java_Java
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
end
end

View File

@ -65,6 +65,12 @@ module MeterpreterOptions
end
end
if session.platform =~ /android/i
if datastore['AutoLoadAndroid']
session.load_android
end
end
[ 'InitialAutoRunScript', 'AutoRunScript' ].each do |key|
if (datastore[key].empty? == false)
args = Shellwords.shellwords( datastore[key] )