From 48d6a5293125f20971b0f0fac63553133daab20e Mon Sep 17 00:00:00 2001 From: adrien Date: Thu, 13 Apr 2023 15:55:49 +0200 Subject: [PATCH] descrease scan output size --- nmap/http-get.nse | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nmap/http-get.nse b/nmap/http-get.nse index b63a438..07de908 100644 --- a/nmap/http-get.nse +++ b/nmap/http-get.nse @@ -35,6 +35,7 @@ action = function(host, port) local scheme = "" local hostaddress = (host.name ~= '' and host.name) or host.ip local path = "" + local answer if (port.service == "ssl") then scheme = "https" @@ -46,5 +47,6 @@ action = function(host, port) path = "/" .. stdnse.get_script_args('http-get.path') end - return http.get_url(scheme.."://"..hostaddress..":"..port.number.."/"..path) + answer = http.get_url(scheme.."://"..hostaddress..":"..port.number.."/"..path) + return {status=answer.status, ["status-line"]=answer["status-line"]} end