Skip to content

Commit 9ba6797

Browse files
committed
use arch for session_compatible? to support shell sessions
1 parent 483228c commit 9ba6797

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
@@ -169,7 +169,7 @@ def session_compatible?(sess_or_sid)
169169
mod_arch = self.module_info['Arch']
170170
unless mod_arch.nil?
171171
mod_arch = [mod_arch] unless mod_arch.kind_of?(Array)
172-
return false unless mod_arch.include? s.base_arch
172+
return false unless mod_arch.include? s.arch
173173
end
174174

175175
# If we got here, we haven't found anything that definitely

0 commit comments

Comments
 (0)