1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 04:09:01 +00:00

Correctly handle cases where the tested fingerprint path does not end with "/". Patch by nnposter.

This commit is contained in:
sophron
2013-07-30 00:03:04 +00:00
parent 6e01ecd452
commit 8572c85d0b

View File

@@ -47,7 +47,7 @@ end
-- @return True if login in was successful
---
local function try_http_post_login(host, port, path, target, failstr, params, follow_redirects)
local req = http.post(host, port, path..target, {no_cache=true}, nil, params)
local req = http.post(host, port, path:gsub("[^/]+$","")..target, {no_cache=true}, nil, params)
if not req.status then return false end
local status = tonumber(req.status) or 0