1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-26 17:39:03 +00:00

New scripts for geo mapping. Closes #606

This commit is contained in:
dmiller
2016-12-17 14:37:35 +00:00
parent 916ce30d0f
commit c12c2eb1c9
9 changed files with 566 additions and 7 deletions

View File

@@ -1,3 +1,4 @@
local geoip = require "geoip"
local http = require "http"
local ipOps = require "ipOps"
local json = require "json"
@@ -70,6 +71,8 @@ local ipinfodb = function(ip)
table.insert(output, "coordinates (lat,lon): "..loc.latitude..","..loc.longitude)
table.insert(output,"city: ".. loc.cityName..", ".. loc.regionName..", ".. loc.countryName)
geoip.add(ip, loc.latitude, loc.longitude)
return output
end