1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-20 22:49:01 +00:00

Implements consistent local cache control and redirect handling for script http-default-accounts. Closes #551

This commit is contained in:
nnposter
2016-10-30 18:58:25 +00:00
parent 2be31d5f49
commit de2ed2eec6
2 changed files with 68 additions and 27 deletions

View File

@@ -259,7 +259,9 @@ action = function(host, port)
-- within the pipeline.
local path = probe.path
if not pathmap[path] then
requests = http.pipeline_add(basepath .. path, nil, requests, 'GET')
requests = http.pipeline_add(basepath .. path,
{bypass_cache=true, redirect_ok=false},
requests, 'GET')
pathmap[path] = #requests
end
end