On Tue, Jul 09, 2013 at 01:50:41PM -0500, Roy Woods wrote:
NSE: Starting ip-geolocation-maxmind against 184.108.40.206.
Initiating NSE at 13:33
NSE: ip-geolocation-maxmind against 220.127.116.11 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
C:\Program Files\Nmap/scripts\ip-geolocation-maxmind.nse:597: in
function <C:\Program Files\Nmap/scripts\ip-geolocation-maxmind.nse:586>
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 'nselib/data/'.")