From 1493e74f635fbeb9f5cd13d0231aa0358b46bd23 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 5 Mar 2013 21:20:37 +0000 Subject: [PATCH] Add missing set_port_version. These scripts changed the port table but did not commit the changes with set_port_version. --- scripts/flume-master-info.nse | 1 + scripts/hadoop-secondary-namenode-info.nse | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/flume-master-info.nse b/scripts/flume-master-info.nse index da9d17704..f55c6a5e6 100644 --- a/scripts/flume-master-info.nse +++ b/scripts/flume-master-info.nse @@ -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 diff --git a/scripts/hadoop-secondary-namenode-info.nse b/scripts/hadoop-secondary-namenode-info.nse index 8f5991007..59da027d3 100644 --- a/scripts/hadoop-secondary-namenode-info.nse +++ b/scripts/hadoop-secondary-namenode-info.nse @@ -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("([^][/]+)")