We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7f21239 + 15c6df1 commit 7fdf84aCopy full SHA for 7fdf84a
modules/auxiliary/scanner/winrm/winrm_auth_methods.rb
@@ -37,7 +37,7 @@ def initialize
37
def run_host(ip)
38
resp = winrm_poke
39
return nil if resp.nil?
40
- if resp.code == 401 and resp.headers['Server'].include? "Microsoft-HTTPAPI"
+ if resp.code == 401 and resp.headers['Server'] and resp.headers['Server'].include? "Microsoft-HTTPAPI"
41
methods = parse_auth_methods(resp)
42
desc = resp.headers['Server'] + " Authentication Methods: " + methods.to_s
43
report_service(
0 commit comments