mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 05:09:00 +00:00
Fix an indexing bug in http-vhosts.nse. Found by Daniel Miller.
This commit is contained in:
@@ -547,7 +547,7 @@ action = function(host, port)
|
|||||||
if not http_response["ERROR"] then
|
if not http_response["ERROR"] then
|
||||||
result["ERROR"]={}
|
result["ERROR"]={}
|
||||||
end
|
end
|
||||||
result["ERROR"][result["ERROR"] + 1] = targetname
|
result["ERROR"][#result["ERROR"] + 1] = targetname
|
||||||
else
|
else
|
||||||
local status = tostring(http_response.status)
|
local status = tostring(http_response.status)
|
||||||
if not result[status] then
|
if not result[status] then
|
||||||
|
|||||||
Reference in New Issue
Block a user