Penetration Testing mailing list archives

Re: IP Location database like IP2Location.com


From: Jeremy Saintot <jeremy () caramiel com>
Date: Wed, 13 Dec 2006 10:59:19 +0100

Hi,

I have fond some errors in the maximind geoip database (networks mentioned in wrong countries). I suggest you try this one :

http://ip-to-country.webhosting.info/downloads/ip-to-country.csv.zip

Here is a php-cli script to add the networks decimal ip addresses to this file :

(php script.php > output_file.csv)

<?php
#!/usr/local/bin/php

$f = fopen('ip-to-country.csv', 'r');
while ($line = fgets($f))
{
        $tab = explode(',', $line);

        $from = trim($tab[0], '"');
        $to = trim($tab[1], '"');

        echo '"'. long2ip($from) .'",'. long2ip($to) .'",'. $line;
}}
fclose($f);
?>


Regards,

Jeremy
D wrote:
Does anyone know of an IP database or a way to create one free like that at IP2Location.com?

I know that this information is available for free and websites like IP2Location.com are just aggregating the 
information.

Something I am interested in is not only the country information but also the lat/long info.

Thanks




____________________________________________________________________________________
Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited

------------------------------------------------------------------------
This List Sponsored by: Cenzic

Need to secure your web apps?
Cenzic Hailstorm finds vulnerabilities fast.
Click the link to buy it, try it or download Hailstorm for FREE.
http://www.cenzic.com/products_services/download_hailstorm.php?camp=701600000008bOW
------------------------------------------------------------------------



------------------------------------------------------------------------
This List Sponsored by: Cenzic

Need to secure your web apps?
Cenzic Hailstorm finds vulnerabilities fast.
Click the link to buy it, try it or download Hailstorm for FREE.
http://www.cenzic.com/products_services/download_hailstorm.php?camp=701600000008bOW
------------------------------------------------------------------------


Current thread: