mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +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:
parent
3e1334b5de
commit
85b6312590
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue