mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Add options to http-enum fingerprints format. Patch based on work by Josh Amishav-Zlatin
This commit is contained in:
@@ -396,15 +396,16 @@ action = function(host, port)
|
||||
for i = 1, #fingerprints, 1 do
|
||||
-- Add each path. The order very much matters here.
|
||||
for j = 1, #fingerprints[i].probes, 1 do
|
||||
if fingerprints[i].probes[j].nopipeline then
|
||||
local res = http.generic_request(host, port, fingerprints[i].probes[j].method or 'GET', basepath .. fingerprints[i].probes[j].path, nil)
|
||||
local probe = fingerprints[i].probes[j]
|
||||
if probe.nopipeline then
|
||||
local res = http.generic_request(host, port, probe.method or 'GET', basepath .. probe.path, probe.options or nil)
|
||||
if res.status then
|
||||
table.insert(results_nopipeline, res)
|
||||
else
|
||||
table.insert(results_nopipeline, false)
|
||||
end
|
||||
else
|
||||
all = http.pipeline_add(basepath .. fingerprints[i].probes[j].path, nil, all, fingerprints[i].probes[j].method or 'GET')
|
||||
all = http.pipeline_add(basepath .. probe.path, probe.options or nil, all, probe.method or 'GET')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user