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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user