File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ def initialize(info={})
30
30
# @raise [OptionValidateError] if {#session} returns nil
31
31
def setup
32
32
unless session_compatible? ( session )
33
- raise Msf :: OptionValidateError . new ( [ " SESSION (type not valid for this module)" ] )
33
+ print_warning ( ' SESSION may not be compatible with this module.' )
34
34
end
35
35
36
36
super
@@ -168,8 +168,8 @@ def session_compatible?(sess_or_sid)
168
168
# Check to make sure architectures match
169
169
mod_arch = self . module_info [ 'Arch' ]
170
170
unless mod_arch . nil?
171
- mod_arch = [ mod_arch ] unless mod_arch . kind_of? ( Array )
172
- return false unless mod_arch . include? s . arch
171
+ mod_arch = [ mod_arch ] unless mod_arch . kind_of? ( Array )
172
+ return false unless mod_arch . include? ( s . arch )
173
173
end
174
174
175
175
# If we got here, we haven't found anything that definitely
You can’t perform that action at this time.
0 commit comments