Nmap Development 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 74.207.244.221.
Initiating NSE at 13:33
NSE: ip-geolocation-maxmind against 74.207.244.221 threw an error!
C:\Program Files\Nmap/scripts\ip-geolocation-maxmind.nse:405: Cannot open Maxmind database file
stack traceback:
[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
Files\Nmap/scripts\ip-geolocation-maxmind.nse:586>
(...tail calls...)
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/'.")
to this:
local gi = assert( GeoIP:new(nmap.fetchfile("nselib/data/GeoLiteCity.dat")), "Cannot read Maxmind database file in
'nselib/data/'.")
David Fifield
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/
Current thread:
- maxmind geo nse script Roy Woods (Jul 09)
- Re: maxmind geo nse script David Fifield (Jul 31)
- Re: maxmind geo nse script Roy Woods (Aug 07)
- Re: maxmind geo nse script David Fifield (Jul 31)
