Nmap Development mailing list archives

Re: geoip in nse script


From: David Fifield <david () bamsoftware com>
Date: Sat, 23 Feb 2013 18:50:46 -0800

On Tue, Feb 19, 2013 at 02:01:12PM +0000, Robin Wood wrote:
I've had a look at ip-geolocation-geoplugin and that seems to do what I
need but it has a bug. I've not got time to debug it properly but around
line 43 the script is doing a json.parse on the response body after it has
had a string match applied to it. The string match doesn't seem to be
needed any more so removing the match and passing the response.body
directly to parse fixes the bug.

Thanks, I fixed the script. The web service format must have changed
somewhere along the line.

David Fifield
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: