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