Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: [NSE] ip-geolocation
From: Patrick Donnelly <batrick () batbytes com>
Date: Mon, 13 Jun 2011 19:13:10 -0400

On Fri, Jun 10, 2011 at 11:36 AM, Gorjan Petrovski <mogi57 () gmail com> wrote:

Please find attached the ip-geolocation script. I've implemented IP
geolocation lookups on 4 web services(Geoplugin, IPInfoDB, Geobytes
and Quova) and a query against a Maxmind database based on the API
from Maxmind.

The usage is as follows:
nmap --script ip-geolocation <target> [--script-args

Couple comments on the code:

o The gmtime() function can simply be:


I think there was also an error somewhere in your gmtime function
because the two produce different results.

o The name for your "const" table worries me. Can you change it to
something else that doesn't resemble a C keyword? :)

Overall I like the script. Is there a reason you didn't elect to go
with separate scripts with "subnames" [1].

[1] http://seclists.org/nmap-dev/2011/q2/794

- Patrick Donnelly
Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]