Y T Nuke  
Results 1 to 5 of 5
I saw a list of 500+ Google data center IP's here -> http://www.seo-scoop.com/2006/06/23/...enter-ip-list/ So I've ...
  1. #1
    niggles's Avatar
    niggles is offline Newbies
    Join Date
    May 2009
    Location
    Melbourne Australia
    Posts
    35
    Reputation
    10
    Thanks
    7
    Thanked 14 Times in 7 Posts

    Default [$_GET] 500+ Google Datacenter IP's CSV

    I saw a list of 500+ Google data center IP's here -> http://www.seo-scoop.com/2006/06/23/...enter-ip-list/

    So I've turned it into a CSV file and attached it.

    For those of you interested, it was pretty easy to extract the list from the HTML. I just saved the HTML which had the list and then ran this code over it instead of spending ages doing it by hand.


    PHP Code:
    $myString ='1. 64.233.161.18<br />
    2. 64.233.161.19<br />etc....'
    ;

    $myStringArray = array();
    // add a pipe to keep end of record
    $myString str_replace('<br />''|'$myString);
    // get rid of new lines
    $myString str_replace("\r"''$myString);
    // explode to array so we can work with each record
    $myStringArrayTemp explode(" " $myString);
    // strip out the 1., 2. sequential numbering
    for($i=1;$i<520;$i++){
        
        if(
    $i<9){
        
            
    $myStringArray[] = substr($myStringArrayTemp[$i], 0, -3);
        } 
        
        if(
    $i>=and $i99){
        
            
    $myStringArray[] = substr($myStringArrayTemp[$i], 0, -4);
        }
        
        if(
    $i>=99){
        
            
    $myStringArray[] = substr($myStringArrayTemp[$i], 0, -5);
        
        }
    }
    // implode to comma delimited
    $final implode(","$myStringArray);
    echo 
    $final
    Attached Files Attached Files

  2. The Following User Says Thank You to niggles For This Useful Post:

    demoniox (07-04-2009)

  3. #2
    ProfitNow's Avatar
    ProfitNow is offline Regular Member
    Join Date
    Jun 2009
    Posts
    377
    Reputation
    29
    Thanks
    64
    Thanked 597 Times in 98 Posts

    Default Re: [$_GET] 500+ Google Datacenter IP's CSV

    Hey, Can you explain what you can do with these?

  4. #3
    niggles's Avatar
    niggles is offline Newbies
    Join Date
    May 2009
    Location
    Melbourne Australia
    Posts
    35
    Reputation
    10
    Thanks
    7
    Thanked 14 Times in 7 Posts

    Default Re: [$_GET] 500+ Google Datacenter IP's CSV

    If you want to do lots of automated queries to Google, you can't send more than a couple of queries in a short time before it gives an error message stating you might be using a bot.

    By choosing a random datacenter each time from the list you could make a bunch of queries without throwing up the error.

    Cheers,
    Niggles

  5. #4
    demoniox's Avatar
    demoniox is offline Registered Member
    Join Date
    Mar 2007
    Posts
    96
    Reputation
    13
    Thanks
    15
    Thanked 82 Times in 29 Posts

    Default Re: [$_GET] 500+ Google Datacenter IP's CSV

    Thanks for sharing , here is another code useful for scrapping ips
    PHP Code:
    <?php
    set_time_limit
    (0);
    $url "http://www.seo-scoop.com/2006/06/23/current-known-google-datacenter-ip-list/";
    $data file_get_contents($url) or die("ERROR");
    preg_match_all('/(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:[.](?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}/si',$data,$matchs);
    foreach(
    $matchs[0] as $ip) {
        echo 
    '"'.ip2long($ip).'","'.$ip.'","'.gethostbyaddr($ip)."\"\n";
    }
    ?>

  6. #5
    niggles's Avatar
    niggles is offline Newbies
    Join Date
    May 2009
    Location
    Melbourne Australia
    Posts
    35
    Reputation
    10
    Thanks
    7
    Thanked 14 Times in 7 Posts

    Default Re: [$_GET] 500+ Google Datacenter IP's CSV

    That's much cleaner than mine! I hate preg_match (mainly because I don't understand it), but I know I could have stripped all those URL's in 1 line of code instead of lots!!!

    Cheers,
    Niggles

AdStract


Advertise on Black Hat World

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  SEnukeX SEO Software
Proudly Powered by Hostwinds.com Web Hosting Click Here For Exclusive BHW Discounts!

Cheap Web Hosting


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75