Skip to content

Commit 483228c

Browse files
committed
use platform for session_compatible? to support shell sessions
1 parent d08aff2 commit 483228c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/post_mixin.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def session_compatible?(sess_or_sid)
162162

163163
# Types are okay, now check the platform.
164164
if self.platform and self.platform.kind_of?(Msf::Module::PlatformList)
165-
return false unless self.platform.supports?(Msf::Module::PlatformList.transform(s.base_platform))
165+
return false unless self.platform.supports?(Msf::Module::PlatformList.transform(s.platform))
166166
end
167167

168168
# Check to make sure architectures match

0 commit comments

Comments
 (0)