1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-16 12:49:02 +00:00

Updates auth realm extraction pattern to accommodate extraneous spaces in the HTTP response header

This commit is contained in:
nnposter
2016-08-16 02:00:17 +00:00
parent 2804d04d36
commit 7d9994597e

View File

@@ -74,7 +74,7 @@ end
--- ---
local function http_auth_realm(response) local function http_auth_realm(response)
local auth = response.header["www-authenticate"] or "" local auth = response.header["www-authenticate"] or ""
return auth:match('%srealm="([^"]*)') return auth:match('%srealm%s*=%s*"([^"]*)')
end end
fingerprints = {} fingerprints = {}