1
0
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:
nnposter
2016-08-15 15:56:54 +00:00
parent c2b139e9bf
commit 2804d04d36

View File

@@ -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