mirror of
https://github.com/nmap/nmap.git
synced 2025-12-16 20:59:02 +00:00
Updates auth realm extraction pattern to accommodate extraneous spaces in the HTTP response header
This commit is contained in:
@@ -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 = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user