From d8fa762407faeb696bd58dfa0bb26447ba75e750 Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 10 Sep 2015 17:27:22 +0000 Subject: [PATCH] Fix http-useragent-tester, which did not test user agents MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- scripts/http-useragent-tester.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/http-useragent-tester.nse b/scripts/http-useragent-tester.nse index 20429c88c..12a8a654c 100644 --- a/scripts/http-useragent-tester.nse +++ b/scripts/http-useragent-tester.nse @@ -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