Land #7657, use platform for session_compatible? to support shell sessions

bug/bundler_fix 4.13.4
Brendan 2016-12-05 16:05:05 -06:00
commit a038922d32
No known key found for this signature in database
GPG Key ID: ECC0F0A52E65F268
1 changed files with 2 additions and 2 deletions

View File

@ -162,14 +162,14 @@ module Msf::PostMixin
# Types are okay, now check the platform.
if self.platform and self.platform.kind_of?(Msf::Module::PlatformList)
return false unless self.platform.supports?(Msf::Module::PlatformList.transform(s.base_platform))
return false unless self.platform.supports?(Msf::Module::PlatformList.transform(s.platform))
end
# Check to make sure architectures match
mod_arch = self.module_info['Arch']
unless mod_arch.nil?
mod_arch = [mod_arch] unless mod_arch.kind_of?(Array)
return false unless mod_arch.include? s.base_arch
return false unless mod_arch.include? s.arch
end
# If we got here, we haven't found anything that definitely