mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Add missing set_port_version.
These scripts changed the port table but did not commit the changes with set_port_version.
This commit is contained in:
@@ -202,6 +202,7 @@ action = function( host, port )
|
||||
result[#result+1] = parse_page(host, port, env_uri, env_keys )
|
||||
result[#result+1] = "Config: "
|
||||
result[#result+1] = parse_page(host, port, config_uri, config_keys )
|
||||
nmap.set_port_version(host, port)
|
||||
return stdnse.format_output(true, result)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -101,6 +101,7 @@ action = function( host, port )
|
||||
table.insert(result, ("Checkpoint Period: %s"):format(stats[4]))
|
||||
table.insert(result, ("Checkpoint: Size %s"):format(stats[5]))
|
||||
end
|
||||
nmap.set_port_version(host, port)
|
||||
if target.ALLOW_NEW_TARGETS then
|
||||
if stats[1]:match("([^][/]+)") then
|
||||
local newtarget = stats[1]:match("([^][/]+)")
|
||||
|
||||
Reference in New Issue
Block a user