mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 03:48:14 +00:00
Updates auth realm extraction pattern to accommodate extraneous spaces in the HTTP response header
This commit is contained in:
parent
2804d04d36
commit
7d9994597e
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ end
|
|||
---
|
||||
local function http_auth_realm(response)
|
||||
local auth = response.header["www-authenticate"] or ""
|
||||
return auth:match('%srealm="([^"]*)')
|
||||
return auth:match('%srealm%s*=%s*"([^"]*)')
|
||||
end
|
||||
|
||||
fingerprints = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue