descrease scan output size

This commit is contained in:
Adrien MALINGREY 2023-04-13 15:55:49 +02:00
parent ea98cd9903
commit 48d6a52931

View File

@ -35,6 +35,7 @@ action = function(host, port)
local scheme = "" local scheme = ""
local hostaddress = (host.name ~= '' and host.name) or host.ip local hostaddress = (host.name ~= '' and host.name) or host.ip
local path = "" local path = ""
local answer
if (port.service == "ssl") then if (port.service == "ssl") then
scheme = "https" scheme = "https"
@ -46,5 +47,6 @@ action = function(host, port)
path = "/" .. stdnse.get_script_args('http-get.path') path = "/" .. stdnse.get_script_args('http-get.path')
end 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 end