1
0
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:
david
2013-03-05 21:20:37 +00:00
parent 6d83daa08c
commit 1493e74f63
2 changed files with 2 additions and 0 deletions

View File

@@ -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

View File

@@ -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("([^][/]+)")