1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-06 14:39:03 +00:00

Use fetchfile to look for GeoLiteCity.dat.

Apparently it only worked before when you were running from an Nmap
source directory, where nselib was in the current directory.

Roy Woods reported the problem.
http://seclists.org/nmap-dev/2013/q3/48
This commit is contained in:
david
2013-08-01 02:01:09 +00:00
parent 3e1334b5de
commit 85b6312590

View File

@@ -594,7 +594,7 @@ action = function(host,port)
local out = gi:output_record_by_addr(host.ip)
output = out
else
local gi = assert( GeoIP:new("nselib/data/GeoLiteCity.dat"), "Cannot read Maxmind database file in 'nselib/data/'.")
local gi = assert( GeoIP:new(nmap.fetchfile("nselib/data/GeoLiteCity.dat")), "Cannot read Maxmind database file in 'nselib/data/'.")
local out = gi:output_record_by_addr(host.ip)
output = out
end