1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 13:11:28 +00:00

Fix http-useragent-tester, which did not test user agents

Spotted by Raúl Fuentes, http-useragent-tester was only sending one
query, but reporting status for all user agents. This was because the
http.get call was not using the bypass_cache option, so the first
(cached) response was used for all subsequent tests.
This commit is contained in:
dmiller
2015-09-10 17:27:22 +00:00
parent d1a2bf1d60
commit d8fa762407

View File

@@ -57,7 +57,7 @@ getLastLoc = function(host, port, useragent)
local options
options = {header={}, no_cache=true, redirect_ok=function(host,port)
options = {header={}, no_cache=true, bypass_cache=true, redirect_ok=function(host,port)
local c = 3
return function(url)
if ( c==0 ) then return false end