From 8d71da78de331928122e1ac9771da347cac2c6a0 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 15 Aug 2012 08:42:16 +0000 Subject: [PATCH] Remove country and region from traceroute-geolocation structured output. On second thought, we should use codes like "us" instead of "United States" and omit the regision attribute rather than set region="Unknown". Taking away these attributes until we can figure out how. --- scripts/traceroute-geolocation.nse | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/traceroute-geolocation.nse b/scripts/traceroute-geolocation.nse index caf3a2184..6f9b7a254 100644 --- a/scripts/traceroute-geolocation.nse +++ b/scripts/traceroute-geolocation.nse @@ -48,8 +48,6 @@ saves the results to a KML file, plottable on Google earth and maps. -- e4-0.barleymow.stk.router.colt.net -- 62 -- 15 --- Sweden --- Unknown -- -- -- 6 @@ -58,8 +56,6 @@ saves the results to a KML file, plottable on Google earth and maps. -- te0-0-2-0-crs1.FRA.router.colt.net -- 54 -- -2 --- United Kingdom --- Unknown --
-- -- @args traceroute-geolocation.kmlfile full path and name of file to write KML @@ -127,7 +123,7 @@ local function output_hop(count, ip, name, rtt, lat, lon, ctry, reg) label = ("%s"):format(ip) end if lat then - table.insert(output_structured, { hop = count, ip = ip, hostname = name, rtt = ("%.2f"):format(rtt), lat = lat, lon = lon, region = reg, country = ctry }) + table.insert(output_structured, { hop = count, ip = ip, hostname = name, rtt = ("%.2f"):format(rtt), lat = lat, lon = lon }) tab.addrow(output, count, ("%.2f"):format(rtt), label, ("%d,%d %s (%s)"):format(lat, lon, ctry, reg)) table.insert(coordinates, { hop = count, lat = lat, lon = lon }) else