Author Topic: MDL now contains ASNs  (Read 8364 times)

0 Members and 1 Guest are viewing this topic.

May 27, 2009, 10:25:28 pm
Read 8364 times

SysAdMini

  • Administrator
  • Hero Member

  • Offline
  • *****

  • 3335
MDL now contains Autonomous System Numbers (ASNs).
This makes it easier to find all urls of a specific network.
Many ISPs and researchers had asked for this feature.
Now it's implemented.

We retrieve the ASNs from Team Cymru's service.
http://www.team-cymru.org/Services/ip-to-asn.html
It is an excellent service ! Thanks guys.
Their data base on BGP because it is a reflection of what is happening in
real time as opposed to whois records where data and records grow stale over time.

Here is a short php example how you can use their service.
Code: [Select]
function reverseIp($ip)
    {        
        return implode('.', array_reverse(explode('.', $ip)));        
    } // function

require_once ('Net/DNS.php');
require_once ('Net/CheckIP.php');

$ip="74.200.241.122";
if (Net_CheckIP::check_ip($ip)) {
$ndr = new Net_DNS_Resolver();

$answer = $ndr->search(reverseIp($ip).".origin.asn.cymru.com", "TXT");
if ($answer) {
  foreach ($answer->answer as $rr) {
    echo trim(strtok($rr->rdatastr(),"|")," \x22\x27");
  }
}
}
?>
Ruining the bad guy's day