mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 06:01: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:
@@ -57,7 +57,7 @@ getLastLoc = function(host, port, useragent)
|
|||||||
|
|
||||||
local options
|
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
|
local c = 3
|
||||||
return function(url)
|
return function(url)
|
||||||
if ( c==0 ) then return false end
|
if ( c==0 ) then return false end
|
||||||
|
|||||||
Reference in New Issue
Block a user