From 6364e93ece7e5dd5ab6879dabdfafbbfa652ee36 Mon Sep 17 00:00:00 2001 From: OJ Date: Sat, 29 Oct 2016 12:45:37 +1000 Subject: [PATCH] Update session types to have base_platform and base_arch --- lib/msf/base/sessions/meterpreter_android.rb | 3 ++- lib/msf/base/sessions/meterpreter_armle_linux.rb | 3 ++- lib/msf/base/sessions/meterpreter_mipsle_linux.rb | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/msf/base/sessions/meterpreter_android.rb b/lib/msf/base/sessions/meterpreter_android.rb index 5728ddd036..089c979cf8 100644 --- a/lib/msf/base/sessions/meterpreter_android.rb +++ b/lib/msf/base/sessions/meterpreter_android.rb @@ -16,7 +16,8 @@ class Meterpreter_Java_Android < Msf::Sessions::Meterpreter_Java_Java def initialize(rstream, opts={}) super - self.platform = 'java/android' + self.base_platform = 'android' + self.base_arch = ARCH_JAVA end def load_android diff --git a/lib/msf/base/sessions/meterpreter_armle_linux.rb b/lib/msf/base/sessions/meterpreter_armle_linux.rb index ec5fdafe09..856c34b63f 100644 --- a/lib/msf/base/sessions/meterpreter_armle_linux.rb +++ b/lib/msf/base/sessions/meterpreter_armle_linux.rb @@ -19,7 +19,8 @@ class Meterpreter_armle_Linux < Msf::Sessions::Meterpreter end def initialize(rstream, opts={}) super - self.platform = 'armle/linux' + self.base_platform = 'linux' + self.base_arch = ARCH_ARMLE end end diff --git a/lib/msf/base/sessions/meterpreter_mipsle_linux.rb b/lib/msf/base/sessions/meterpreter_mipsle_linux.rb index 54b3ffcdb5..7d6599cf61 100644 --- a/lib/msf/base/sessions/meterpreter_mipsle_linux.rb +++ b/lib/msf/base/sessions/meterpreter_mipsle_linux.rb @@ -19,7 +19,8 @@ class Meterpreter_mipsle_Linux < Msf::Sessions::Meterpreter end def initialize(rstream, opts={}) super - self.platform = 'mipsle/linux' + self.base_platform = 'linux' + self.base_arch = ARCH_MIPSLE end end