From 3a2c434998bfc6343169fdf71db49a5165920972 Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 28 May 2015 23:08:31 +0000 Subject: [PATCH] Check if Nmap's user agent is redirected in http-useragent-tester --- scripts/http-useragent-tester.nse | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/http-useragent-tester.nse b/scripts/http-useragent-tester.nse index e9a313d1e..20429c88c 100644 --- a/scripts/http-useragent-tester.nse +++ b/scripts/http-useragent-tester.nse @@ -91,7 +91,9 @@ action = function(host, port) -- We don't crawl any site. We initialize a crawler to use its iswithinhost method. local crawler = httpspider.Crawler:new(host, port, '/', { scriptname = SCRIPT_NAME } ) - local HTTPlibs = {"libwww", + local HTTPlibs = { + http.USER_AGENT, + "libwww", "lwp-trivial", "libcurl-agent/1.0", "PHP/",