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.
1 parent a5d8835 commit ba5035cCopy full SHA for ba5035c
modules/auxiliary/scanner/http/owa_login.rb
@@ -302,7 +302,7 @@ def get_ad_domain
302
next
303
end
304
305
- if res and res.code == 401 and res['WWW-Authenticate'].match(/^NTLM/i)
+ if res && res.code == 401 && res.headers.has_key?('WWW-Authenticate') && res.headers['WWW-Authenticate'].match(/^NTLM/i)
306
hash = res['WWW-Authenticate'].split('NTLM ')[1]
307
domain = Rex::Proto::NTLM::Message.parse(Rex::Text.decode_base64(hash))[:target_name].value().gsub(/\0/,'')
308
print_good("Found target domain: " + domain)
0 commit comments