mirror of
https://github.com/nmap/nmap.git
synced 2025-12-23 16:09:02 +00:00
Fixes Xplico fingerprint to account for non-default base path
This commit is contained in:
@@ -128,7 +128,7 @@ table.insert(fingerprints, {
|
||||
-- harvest all hidden fields from the login form
|
||||
local req1 = http.get(host, port, path, {no_cache=true, redirect_ok = false})
|
||||
if req1.status ~= 200 then return false end
|
||||
local html = req1.body and req1.body:match('<form%s+action%s*=%s*"/users/login".->(.-)</form>')
|
||||
local html = req1.body and req1.body:match('<form%s+action%s*=%s*"[^"]*/users/login".->(.-)</form>')
|
||||
if not html then return false end
|
||||
local form = {}
|
||||
for n, v in html:gmatch('<input%s+type%s*=%s*"hidden"%s+name%s*=%s*"(.-)"%s+value%s*=%s*"(.-)"') do
|
||||
|
||||
Reference in New Issue
Block a user