mirror of
https://github.com/nmap/nmap.git
synced 2026-06-25 10:38:02 +00:00
Fixes Xplico fingerprint to account for non-default base path
This commit is contained in:
parent
c2b139e9bf
commit
2804d04d36
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue