• 31-08-2005, 16:41:25
    #1
    3 ve 4 harfli domain listesi bana lazım olmuştu, aşağıdaki şekilde bir kod yazdım. Belki başkalarınında işine yarar.

    <?
    // 3 Harfli domainler
    for($x1 = 65; $x1 < 91; $x1++)
     for($x2 = 65; $x2 < 91; $x2++)
      for($x3 = 65; $x3 < 91; $x3++)
       {
       echo(chr($x1).chr($x2).chr($x3).".com");
       echo(chr($x1).chr($x2).chr($x3).".net");
       echo(chr($x1).chr($x2).chr($x3).".org\n<br>");
       }
    ?>
    <?
    // 4 Harfli domainler
    for($x1 = 65; $x1 < 91; $x1++)
     for($x2 = 65; $x2 < 91; $x2++)
      for($x3 = 65; $x3 < 91; $x3++)
       for($x4 = 65; $x4 < 91; $x4++)
        {
        echo(chr($x1).chr($x2).chr($x3).chr($x4).".com");
        echo(chr($x1).chr($x2).chr($x3).chr($x4).".net");
        echo(chr($x1).chr($x2).chr($x3).chr($x4).".org\n<br>");
        }
    ?>
  • 31-08-2005, 16:57:30
    #2
    Üyeliği durduruldu
    peki bu kadar ismi en kolay nereden kontrol ederiz boş mu değil mi diye???
  • 31-08-2005, 17:12:30
    #3
    Misafir
    toplu şekilde whois çeken yere bakacaksın
    öyle biryer bilmiyorum ama en iyisi www.whois.sc den whois çekin.
  • 31-08-2005, 17:39:59
    #4
    MoD
    Misafir
    whois.sc'de bulk check kayitli olan domainleride bos gostermek gibi kismi hatalar vermekte. ucretsiz bir yerse aradiginiz Godaddy'nin bulk register bolumunden baslayabilirsiniz.
  • 31-08-2005, 18:35:50
    #5
    http://www.hotscripts.com/PHP/Script...g_Tools/Whois/

    Buradaki scriptlerden bir tanesini değiştirerek yapabilirsiniz.
  • 31-08-2005, 18:57:44
    #6
    Aşağıda yazdığım kodun çalışması lazım ama internic IP'nizi banlayabilir

    <?
    function get_whois($server,$domain,&$output)
    {
        $whois = fsockopen($server, 43);
        fputs($whois, "$domain\r\n");
        $result = "";
        while(!feof($whois))
        {
            $str = fgets($whois, 1024);
            $result .= $str;
            if (strstr($str, "Whois Server:"))
            {
                $new_server = split(": ", $str);
                $output = chop("$new_server[1]");  
                fclose($whois);
                return(1);   
            }
        }
        $output = $result; 
        fclose($whois);
        return(0);  
    }
    
    function kontrol($domain)
    {
    $output = "";
    
    
    $redirect = get_whois("rs.internic.net", $domain, $output);
    
    
    while ($redirect)
    {
        $whois_server = $output;
        $redirect = get_whois($whois_server, $domain, $output);
    }
    
    if(ereg("No match for",$output))
     echo "yok";
    else
     echo "var";
    }
    
    for($x1 = 65; $x1 < 91; $x1++) 
     for($x2 = 65; $x2 < 91; $x2++) 
      for($x3 = 65; $x3 < 91; $x3++) 
       { 
       $domain = chr($x1).chr($x2).chr($x3).".com" 
       echo($domain." ".kontrol($domain)."<br>");
       } 
    ?>
  • 31-08-2005, 23:35:36
    #7
    basit kod yazıyorum.. whois kodunu değiştirerek hazırladım, birde yazdığım kod ile birleştirdim.. aslında yazdığım kodda while döngüsü kullanarak domain sayısını istediğimiz kadar artırabiliriz, normalde gereksiz kod yazımı var
  • 01-09-2005, 00:13:12
    #8
    echo($domain." ".kontrol($domain)."<br>");
    satırında hata olmadıgına eminmisin ? Yoksa hata bende mi ?
    Parse error: parse error, unexpected T_ECHO in /home/xxx/public_html/as.php on line 49
  • 01-09-2005, 00:20:37
    #9
    evet hata var

    echo($domain." ".kontrol($domain)."<br>");

    kontrol()'den değişken dönmüyor, oradaki var veya yok'dan önceki echolar yerine return yazılarak sorun giderilebilir
    veya yukardeki satır aşağıdaki şekilde değiştirilerek

    echo($domain." ");
    kontrol($domain);
    echo("<br>");

    tam hali

    <?
    function get_whois($server,$domain,&$output)
    {
        $whois = fsockopen($server, 43);
        fputs($whois, "$domain\r\n");
        $result = "";
        while(!feof($whois))
        {
            $str = fgets($whois, 1024);
            $result .= $str;
            if (strstr($str, "Whois Server:"))
            {
                $new_server = split(": ", $str);
                $output = chop("$new_server[1]");  
                fclose($whois);
                return(1);   
            }
        }
        $output = $result; 
        fclose($whois);
        return(0);  
    }
    
    function kontrol($domain)
    {
    $output = "";
    
    
    $redirect = get_whois("rs.internic.net", $domain, $output);
    
    
    while ($redirect)
    {
        $whois_server = $output;
        $redirect = get_whois($whois_server, $domain, $output);
    }
    
    if(ereg("No match for",$output))
     echo "yok";
    else
     echo "var";
    }
    
    for($x1 = 65; $x1 < 91; $x1++) 
     for($x2 = 65; $x2 < 91; $x2++) 
      for($x3 = 65; $x3 < 91; $x3++) 
       { 
       $domain = chr($x1).chr($x2).chr($x3).".com" 
       echo($domain." ");
       kontrol($domain);
       echo("<br>");
       } 
    ?>