mailing list archives
Re: maxmind geo nse script
From: David Fifield <david () bamsoftware com>
Date: Wed, 31 Jul 2013 18:58:49 -0700
On Tue, Jul 09, 2013 at 01:50:41PM -0500, Roy Woods wrote:
NSE: Starting ip-geolocation-maxmind against 18.104.22.168.
Initiating NSE at 13:33
NSE: ip-geolocation-maxmind against 22.214.171.124 threw an error!
C:\Program Files\Nmap/scripts\ip-geolocation-maxmind.nse:405: Cannot open Maxmind database file
[C]: in function 'assert'
C:\Program Files\Nmap/scripts\ip-geolocation-maxmind.nse:405: in function 'new'
C:\Program Files\Nmap/scripts\ip-geolocation-maxmind.nse:597: in function <C:\Program
I'm using the "GeoLiteCity.dat" file (downloaded today - to be sure).
Obviously running windows and have put the "GeoLiteCity.dat" file in the
/data and /nmap directory (cause now I'm getting paranoid - and do stupid
things when I'm paranoid).
Thanks for this report. It looks like it was a bug in the script; it was
searching relative to the current directory rather than relative to the
installation directory. I think it is fixed in r31612.
You can try applying the fix yourself by changing this line:
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
Sent through the dev mailing list
Archived at http://seclists.org/nmap-dev/