descrease scan output size
This commit is contained in:
parent
ea98cd9903
commit
48d6a52931
@ -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
|
||||||
|
Reference in New Issue
Block a user