ANTICHAT.XYZ    VIDEO.ANTICHAT.XYZ    НОВЫЕ СООБЩЕНИЯ    ФОРУМ  
Баннер 1   Баннер 2
Antichat снова доступен.
Форум Antichat (Античат) возвращается и снова открыт для пользователей. Здесь обсуждаются безопасность, программирование, технологии и многое другое. Сообщество снова собирается вместе.
Новый адрес: forum.antichat.xyz
Вернуться   Форум АНТИЧАТ > Программирование > PHP, PERL, MySQL, JavaScript
   
Ответ
 
Опции темы Поиск в этой теме Опции просмотра

авто-регер yandex.ru
  #1  
Старый 08.03.2009, 16:08
Звeрь
Banned
Регистрация: 25.02.2008
Сообщений: 229
Провел на форуме:
1384476

Репутация: 300
Отправить сообщение для Звeрь с помощью ICQ
Arrow авто-регер yandex.ru

Что надо что б он заработал?
1)регистрируемся на anti-captcha.com
2)пополняем счет на пару баксов(1$ 1к регистраций)
3)берем в админки ключ и вписываем его в переменную $anticapkey
4)в переменную $sikoka пишем количество акков
5)в переменную $dir пишем полный путь до папки с скриптом
и запускаем сркипт
скорость не очень большая но можно запустить несколько раз
вот сам скрипт

Код:
<? * ############ya.ru ############# 

$sikoka=20; * $anticapkey='key'; * $dir='/var/php/ya.ru/'; * for($i=0;$i<$sikoka;$i++){ * * * * $mail=get_random_string(15); * * * $fname=get_random_string(5); * * * $lname=get_random_string(5); * * * $pass=get_random_string(8); * * * $hinta=get_random_string(7); * * * * * * *$ch = curl_init(); * * * curl_setopt($ch, CURLOPT_URL, * * * * * * 'http://passport.yandex.ru/passport?mode=register'); * * * curl_setopt($ch, CURLOPT_RETURNTRANSFER, * * 1); * * * curl_setopt($ch, CURLOPT_TIMEOUT, * * * * * * 60); * * * curl_setopt($ch, CURLOPT_POST, * * * * * * * * 1); * * * curl_setopt($ch, CURLOPT_POSTFIELDS,'step=one&filled=yes&iname='.$lname.'&fname='.$fname.'&login='.$mail.'&done=%C4%E0%EB%FC%F8%E5%A0%26%238594%3B'); * * * curl_setopt($ch, CURLOPT_HEADER,1); * * * * $result = curl_exec($ch); * * * preg_match('/Set-Cookie: (.*) path=/i',$result,$match); * * * $cookie=$match[1]; * * * preg_match('/<img src="(.*)" name="captcha" border=0 width=200 h/i', $result,$match); * * * $urlcap=$match[1]; * * * preg_match('/<input type="hidden" name="idkey" value="(.*)">/i',$result,$match); * * * $idkey=$match[1]; * # * *print $urlcap."\n"; * * * $ch = curl_init(); * * * curl_setopt($ch, CURLOPT_URL,"http://passport.yandex.ru".$urlcap); * * * curl_setopt($ch, CURLOPT_RETURNTRANSFER, * * 1); * * * curl_setopt($ch, CURLOPT_TIMEOUT, * * * * * * 60); * * * $result = curl_exec($ch); * * * $fp=fopen('cap.png','w'); * * * fwrite($fp,$result); * * * fclose($fp); * * * $text=recognize($dir."cap.png",$anticapkey,false,7,120,0,6); * # * *print("|||".$text."|||"); * * * $ch = curl_init(); * * * curl_setopt($ch, CURLOPT_URL, * * * * * * 'http://passport.yandex.ru/passport?mode=regone'); * * * curl_setopt($ch, CURLOPT_RETURNTRANSFER, * * 1); * * * curl_setopt($ch, CURLOPT_TIMEOUT, * * * * * * 60); * * * curl_setopt($ch, CURLOPT_POST, * * * * * * * * 1); * $post='idkey='.$idkey.'&filled=yes&iname='.$lname.'&fname='.$fname.'&login='.$mail.'&passwd='.$pass.'&passwd2='.$pass.'&hintq=2&udhintq=&hinta='.$hinta.'&hintasave='.$hinta.'&questnum=2&hintqsave=&email=&phonenumber=&code='.$text.'&agreed=yes&done=%C7%E0%F0%E5%E3%E8%F1%F2%F0%E8%F0%EE%E2%E0%F2 *%FC'; * * * curl_setopt($ch, CURLOPT_COOKIE,$cookie); * * * curl_setopt($ch,CURLOPT_POSTFIELDS,$post); * * * $result = curl_exec($ch); * * * if(preg_match("/Set-Cookie: yandex_login/i",$result)){ * * * * * * print $mail.":".$pass."@ya.ru\n"; * * * }else{ * * * * * print "error\n"; * * * } * } * * function recognize($filename, $apikey, $is_verbose = true, $rtimeout = 5, $mtimeout = 120, $is_phrase = 0, $is_regsense = 0, $is_numeric = 0, $min_len = 0, $max_len = 0) * { * * * if (!file_exists($filename)) * * * { * * * * * if ($is_verbose) echo "file $filename not found\n"; * * * * * return false; * * * } * * * $postdata = array( * * * * * 'method' * *=> 'post', * * * * * *'key' * * * => $apikey, * * * * * *'file' * * *=> '@'.$filename, //РПМОЩК РХФШ Л ЖБКМХ * * * * * 'phrase' * *=> $is_phrase, * * * * * 'regsense' * *=> $is_regsense, * * * * * 'numeric' * *=> $is_numeric, * * * * * 'min_len' * *=> $min_len, * * * * * 'max_len' * *=> $max_len, * * * * * * * * *); * * * $ch = curl_init(); * * * curl_setopt($ch, CURLOPT_URL, * * * * * * 'http://www.anti-captcha.com/in.php'); * * * curl_setopt($ch, CURLOPT_RETURNTRANSFER, * * 1); * * * curl_setopt($ch, CURLOPT_TIMEOUT, * * * * * * 60); * * * curl_setopt($ch, CURLOPT_POST, * * * * * * * * 1); * * * curl_setopt($ch, CURLOPT_POSTFIELDS, * * * * $postdata); * * * $result = curl_exec($ch); * * * if (curl_errno($ch)) * * * *{ * * * * * if ($is_verbose) echo "CURL returned error: ".curl_error($ch)."\n"; * * * * * return false; * * * } * * * curl_close($ch); * * * if (strpos($result, "ERROR")!==false) * * * { * * * * * if ($is_verbose) echo "server returned error: $result\n"; * * * * * return false; * * * } * * * else * * * { * * * * * $ex = explode("|", $result); * * * * * $captcha_id = $ex[1]; * * * * * if ($is_verbose) echo "captcha sent, got captcha ID $captcha_id\n"; * * * * * $waittime = 0; * * * * * if ($is_verbose) echo "waiting for $rtimeout seconds\n"; * * * * * sleep($rtimeout); * * * * * while(true) * * * * * { * * * * * * * $result = file_get_contents('http://anti-captcha.com/res.php?key='.$apikey.'&action=get&id='.$captcha_id); * * * * * * * if (strpos($result, 'ERROR')!==false) * * * * * * * { * * * * * * * * * if ($is_verbose) echo "server returned error: $result\n"; * * * * * * * * * return false; * * * * * * * } * * * * * * * if ($result=="CAPCHA_NOT_READY") * * * * * * * { * * * * * * * * * if ($is_verbose) echo "captcha is not ready yet\n"; * * * * * * * * * $waittime += $rtimeout; * * * * * * * * * if ($waittime>$mtimeout) * * * * * * * * * *{ * * * * * * * * * * * if ($is_verbose) echo "timelimit ($mtimeout) hit\n"; * * * * * * * * * * * break; * * * * * * * * * } * * * * * * * * * if ($is_verbose) echo "waiting for $rtimeout seconds\n"; * * * * * * * * * sleep($rtimeout); * * * * * * * } * * * * * * * else * * * * * * * { * * * * * * * * * $ex = explode('|', $result); * * * * * * * * * if (trim($ex[0])=='OK') return trim($ex[1]); * * * * * * * } * * * * * } * * * * * * * * * * *return false; * * * } * } * * * * function get_random_string( $len ) * * * *{ * * * * * $result = ""; * * * * * $nums = "1234567890"; * * * * * $syms = "abcdefghijklmnopqrstuvwxyz"; * * * * * $sux = $nums.$syms; * * * * * * * * * * *for ($i = 0; $i <= $len; $i++ ) * * * * * { * * * * * * * $num = rand( 0, strlen( $sux ) - 1 ); * * * * * * * $result .= $sux[ $num ]; * * * * * } * * * * * * * * * * *return $syms[ rand(0,strlen( $syms ) - 1 ) ].$result; * * * } * 

?>
 
Ответить с цитированием

  #2  
Старый 10.03.2009, 15:45
Qissе
Новичок
Регистрация: 23.02.2009
Сообщений: 16
Провел на форуме:
7646

Репутация: 0
По умолчанию

че за ошибка?

Parse error: parse error, unexpected $end in T:\home\users\regger\regger-ya.php on line 2
 
Ответить с цитированием

  #3  
Старый 10.03.2009, 15:50
MuXaJIbI4
Познающий
Регистрация: 20.11.2008
Сообщений: 68
Провел на форуме:
108674

Репутация: 32
По умолчанию

где то скобку не закрыли
 
Ответить с цитированием

  #4  
Старый 10.03.2009, 15:57
cylaaaan
Участник форума
Регистрация: 31.08.2006
Сообщений: 149
Провел на форуме:
1763379

Репутация: 155
Отправить сообщение для cylaaaan с помощью ICQ
По умолчанию

Цитата:
* * * * * while(true) * * * * * { * * * * * * *
Че это за бред? и весь скрипт такой
 
Ответить с цитированием

  #5  
Старый 10.03.2009, 16:21
Звеpь
Banned
Регистрация: 05.11.2008
Сообщений: 71
Провел на форуме:
560246

Репутация: 265
Отправить сообщение для Звеpь с помощью ICQ Отправить сообщение для Звеpь с помощью MSN
По умолчанию

Цитата:
Сообщение от cylaaaan  
Че это за бред? и весь скрипт такой

PHP код:
<?   ############ya.ru #############   $sikoka=20;   $anticapkey='key';   $dir='/var/php/ya.ru/';   for($i=0;$i<$sikoka;$i++){         $mail=get_random_string(15);       $fname=get_random_string(5);       $lname=get_random_string(5);       $pass=get_random_string(8);       $hinta=get_random_string(7);              $ch = curl_init();       curl_setopt($ch, CURLOPT_URL,             'http://passport.yandex.ru/passport?mode=register');       curl_setopt($ch, CURLOPT_RETURNTRANSFER,     1);       curl_setopt($ch, CURLOPT_TIMEOUT,             60);       curl_setopt($ch, CURLOPT_POST,                 1);       curl_setopt($ch, CURLOPT_POSTFIELDS,'step=one&filled=yes&iname='.$lname.'&fname='.$fname.'&login='.$mail.'&done=%C4%E0%EB%FC%F8%E5%A0%26%238594%3B');       curl_setopt($ch, CURLOPT_HEADER,1);         $result = curl_exec($ch);       preg_match('/Set-Cookie: (.*) path=/i',$result,$match);       $cookie=$match[1];       preg_match('/<img src="(.*)" name="captcha" border=0 width=200 h/i', $result,$match);       $urlcap=$match[1];       preg_match('/<input type="hidden" name="idkey" value="(.*)">/i',$result,$match);       $idkey=$match[1];   #    print $urlcap."\n";       $ch = curl_init();       curl_setopt($ch, CURLOPT_URL,"http://passport.yandex.ru".$urlcap);       curl_setopt($ch, CURLOPT_RETURNTRANSFER,     1);       curl_setopt($ch, CURLOPT_TIMEOUT,             60);       $result = curl_exec($ch);       $fp=fopen('cap.png','w');       fwrite($fp,$result);       fclose($fp);       $text=recognize($dir."cap.png",$anticapkey,false,7,120,0,6);   #    print("|||".$text."|||");       $ch = curl_init();       curl_setopt($ch, CURLOPT_URL,             'http://passport.yandex.ru/passport?mode=regone');       curl_setopt($ch, CURLOPT_RETURNTRANSFER,     1);       curl_setopt($ch, CURLOPT_TIMEOUT,             60);       curl_setopt($ch, CURLOPT_POST,                 1);   $post='idkey='.$idkey.'&filled=yes&iname='.$lname.'&fname='.$fname.'&login='.$mail.'&passwd='.$pass.'&passwd2='.$pass.'&hintq=2&udhintq=&hinta='.$hinta.'&hintasave='.$hinta.'&questnum=2&hintqsave=&email=&phonenumber=&code='.$text.'&agreed=yes&done=%C7%E0%F0%E5%E3%E8%F1%F2%F0%E8%F0%EE%E2%E0%F2  %FC';       curl_setopt($ch, CURLOPT_COOKIE,$cookie);       curl_setopt($ch,CURLOPT_POSTFIELDS,$post);       $result = curl_exec($ch);       if(preg_match("/Set-Cookie: yandex_login/i",$result)){             print $mail.":".$pass."@ya.ru\n";       }else{           print "error\n";       }   }     function recognize($filename, $apikey, $is_verbose = true, $rtimeout = 5, $mtimeout = 120, $is_phrase = 0, $is_regsense = 0, $is_numeric = 0, $min_len = 0, $max_len = 0)   {       if (!file_exists($filename))       {           if ($is_verbose) echo "file $filename not found\n";           return false;       }       $postdata = array(           'method'    => 'post',            'key'       => $apikey,            'file'      => '@'.$filename, //РПМОЩК РХФШ Л ЖБКМХ           'phrase'    => $is_phrase,           'regsense'    => $is_regsense,           'numeric'    => $is_numeric,           'min_len'    => $min_len,           'max_len'    => $max_len,                  );       $ch = curl_init();       curl_setopt($ch, CURLOPT_URL,             'http://www.anti-captcha.com/in.php');       curl_setopt($ch, CURLOPT_RETURNTRANSFER,     1);       curl_setopt($ch, CURLOPT_TIMEOUT,             60);       curl_setopt($ch, CURLOPT_POST,                 1);       curl_setopt($ch, CURLOPT_POSTFIELDS,         $postdata);       $result = curl_exec($ch);       if (curl_errno($ch))        {           if ($is_verbose) echo "CURL returned error: ".curl_error($ch)."\n";           return false;       }       curl_close($ch);       if (strpos($result, "ERROR")!==false)       {           if ($is_verbose) echo "server returned error: $result\n";           return false;       }       else       {           $ex = explode("|", $result);           $captcha_id = $ex[1];           if ($is_verbose) echo "captcha sent, got captcha ID $captcha_id\n";           $waittime = 0;           if ($is_verbose) echo "waiting for $rtimeout seconds\n";           sleep($rtimeout);           while(true)           {               $result = file_get_contents('http://anti-captcha.com/res.php?key='.$apikey.'&action=get&id='.$captcha_id);               if (strpos($result, 'ERROR')!==false)               {                   if ($is_verbose) echo "server returned error: $result\n";                   return false;               }               if ($result=="CAPCHA_NOT_READY")               {                   if ($is_verbose) echo "captcha is not ready yet\n";                   $waittime += $rtimeout;                   if ($waittime>$mtimeout)                    {                       if ($is_verbose) echo "timelimit ($mtimeout) hit\n";                       break;                   }                   if ($is_verbose) echo "waiting for $rtimeout seconds\n";                   sleep($rtimeout);               }               else               {                   $ex = explode('|', $result);                   if (trim($ex[0])=='OK') return trim($ex[1]);               }           }                      return false;       }   }         function get_random_string( $len )        {           $result = "";           $nums = "1234567890";           $syms = "abcdefghijklmnopqrstuvwxyz";           $sux = $nums.$syms;                      for ($i = 0; $i <= $len; $i++ )           {               $num = rand( 0, strlen( $sux ) - 1 );               $result .= $sux[ $num ];           }                      return $syms[ rand(0,strlen( $syms ) - 1 ) ].$result;       }   ?>
 
Ответить с цитированием

  #6  
Старый 10.03.2009, 17:59
cylaaaan
Участник форума
Регистрация: 31.08.2006
Сообщений: 149
Провел на форуме:
1763379

Репутация: 155
Отправить сообщение для cylaaaan с помощью ICQ
По умолчанию

Короче ТС выложил скрипт даже не смотрев на него)))
Исправил ошибки. Добавил отсутствующие функции, привел код в порядок и в рабочий вид.

Code:
PHP код:
<?
//setting//

$sikoka=30// coli4estvo accov
$anticapkey='6b3b46871'// key v anticaptcha
$dir="C:\WebServers\home\localhost\www\\"// localniy pyt' 

// functions //


    
function get_random_string($length// количество символов
    
{
        
$ret "";
        for ( 
$i=0$i<=$length$i++)
        {
            if ( 
mt_rand(1,2) == )
                
$char_code mt_rand(4857); // цифра...
            
else 
                
$char_code mt_rand(6590); // .. или буква
                
            
$ret .= chr($char_code);
        }
        return 
$ret;
    }


function 
recognize($filename$apikey$is_verbose true$rtimeout 5$mtimeout 120$is_phrase 0$is_regsense 0$is_numeric 0$min_len 0$max_len 0)
{
    if (!
file_exists($filename))
    {
        if (
$is_verbose) echo "file $filename not found\n";
        return 
false;
    }
    
$postdata = array(
        
'method'    => 'post'
        
'key'       => $apikey
        
'file'      => '@'.$filename//полный путь к файлу
        
'phrase'    => $is_phrase,
        
'regsense'    => $is_regsense,
        
'numeric'    => $is_numeric,
        
'min_len'    => $min_len,
        
'max_len'    => $max_len,
        
    );
    
$ch curl_init();
    
curl_setopt($chCURLOPT_URL,'http://www.anti-captcha.com/in.php');
    
curl_setopt($chCURLOPT_RETURNTRANSFER,1);
    
curl_setopt($chCURLOPT_TIMEOUT,60);
    
curl_setopt($chCURLOPT_POST,1);
    
curl_setopt($chCURLOPT_POSTFIELDS,$postdata);
    
$result curl_exec($ch);
    if (
curl_errno($ch)) 
    {
        if (
$is_verbose) echo "";
        return 
false;
    }
    
curl_close($ch);
    if (
strpos($result"ERROR")!==false)
    {
        if (
$is_verbose) echo "";
        return 
false;
    }
    else
    {
        
$ex explode("|"$result);
        
$captcha_id $ex[1];
        if (
$is_verbose) echo "";
        
$waittime 0;
        if (
$is_verbose) echo "";
        
sleep($rtimeout);
        while(
true)
        {
            
$result file_get_contents('http://anti-captcha.com/res.php?key='.$apikey.'&action=get&id='.$captcha_id);
            if (
strpos($result'ERROR')!==false)
            {
                if (
$is_verbose) echo "";
                return 
false;
            }
            if (
$result=="CAPCHA_NOT_READY")
            {
                if (
$is_verbose) echo "";
                
$waittime += $rtimeout;
                if (
$waittime>$mtimeout
                {
                    if (
$is_verbose) echo "";
                    break;
                }
                if (
$is_verbose) echo "";
                
sleep($rtimeout);
            }
            else
            {
                
$ex explode('|'$result);
                if (
trim($ex[0])=='OK') return trim($ex[1]);
            }
        }
        
        return 
false;
    }
}


//Work//

 
for($i=0;$i<$sikoka;$i++) 
 {  
    
$mail=get_random_string(15); 
    
$fname=get_random_string(5); 
    
$lname=get_random_string(5); 
    
$pass=get_random_string(8);  
    
$hinta=get_random_string(7);  
    
$ch curl_init(); 
    
curl_setopt($chCURLOPT_URL,'http://passport.yandex.ru/passport?mode=register'); 
    
curl_setopt($chCURLOPT_RETURNTRANSFER,1); 
    
curl_setopt($chCURLOPT_TIMEOUT,60);
    
curl_setopt($chCURLOPT_POST,1); 
    
curl_setopt($chCURLOPT_POSTFIELDS,'step=one&filled=yes&iname='.$lname.'&fname='.$fname.'&login='.$mail.'&done=%C4%E0%EB%FC%F8%E5%A0%26%238594%3B');                          curl_setopt($chCURLOPT_HEADER,1); 
    
$result curl_exec($ch); 
    
preg_match('/Set-Cookie: (.*) path=/i',$result,$match);
    
$cookie=$match[1];
    
preg_match('/<img src=\"(.*)\" name=\"captcha\" border=\"0\"/i'$result,$match);
    
$urlcap=$match[1];
    
preg_match('/<input type=\"hidden\" name=\"idkey\" value=\"(.*)\">/i',$result,$match);
    
$idkey=$match[1];  
    print 
"Попытка #".$i."<br>Ссылка каптчи: ".$urlcap."<br>Id каптчи: ".$idkey."<br>\n"
    
    
$ch curl_init();
    
curl_setopt($chCURLOPT_URL,$urlcap);
    
curl_setopt($chCURLOPT_RETURNTRANSFER,1); 
    
curl_setopt($chCURLOPT_TIMEOUT,60); 
    
$result curl_exec($ch);
    
$fp=fopen('cap.gif','w');
    
fwrite($fp,$result);
    
fclose($fp);
    
$text=recognize($dir."cap.gif",$anticapkey); 
    print(
"Разгадали каптчу: ".$text."<br>"); 
    
    
$ch curl_init();
    
curl_setopt($chCURLOPT_URL,'http://passport.yandex.ru/passport?mode=regone');
    
curl_setopt($chCURLOPT_RETURNTRANSFER,1); 
    
curl_setopt($chCURLOPT_TIMEOUT,60);
    
curl_setopt($chCURLOPT_POST,1); 
    
$post='idkey='.$idkey.'&step=two&filled=yes&iname='.$lname.'&fname='.$fname.'&login='.$mail.'&passwd='.$pass.'&passwd2='.$pass.'&hintq=2&udhintq=&hinta='.$hinta.'&hintasave='.$hinta.'&questnum=2&hintqsave=&email=&phonenumber=&code='.$text.'&agreed=yes&done=%C7%E0%F0%E5%E3%E8%F1%F2%F0%E8%F0%EE%E2%E0%F2%FC'
    
curl_setopt($chCURLOPT_COOKIE,$cookie); 
    
curl_setopt($ch,CURLOPT_POSTFIELDS,$post);
    
$result curl_exec($ch);
    
    if(
preg_match("/Set-Cookie: yandex_login/i",$result))
    { 
    print 
"<strong>Зарегили мыло</strong>: ".$mail."@ya.ru:".$pass."<br><br>";
    }else{
    print 
"Ошибка<br>"; }  
}     
    
  
?>


Запись в файл делайте сами, не маленькие.
 
Ответить с цитированием

  #7  
Старый 10.03.2009, 18:10
alexdrn
Познающий
Регистрация: 22.07.2008
Сообщений: 72
Провел на форуме:
1516800

Репутация: 21
По умолчанию

9b0a71526e забирайте инвайт
 
Ответить с цитированием

  #8  
Старый 10.03.2009, 18:42
Звеpь
Banned
Регистрация: 05.11.2008
Сообщений: 71
Провел на форуме:
560246

Репутация: 265
Отправить сообщение для Звеpь с помощью ICQ Отправить сообщение для Звеpь с помощью MSN
По умолчанию

инвайт d14326078a ещё один
 
Ответить с цитированием

  #9  
Старый 10.03.2009, 22:45
Звеpь
Banned
Регистрация: 05.11.2008
Сообщений: 71
Провел на форуме:
560246

Репутация: 265
Отправить сообщение для Звеpь с помощью ICQ Отправить сообщение для Звеpь с помощью MSN
По умолчанию

ba2c168220
 
Ответить с цитированием

  #10  
Старый 10.03.2009, 22:58
IcEnd
Участник форума
Регистрация: 24.09.2008
Сообщений: 169
Провел на форуме:
1462512

Репутация: 288
Отправить сообщение для IcEnd с помощью ICQ
По умолчанию

Fatal error: Call to undefined function curl_init() in Q:\home\localhost\www\a.php on line 112
 
Ответить с цитированием
Ответ



Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
Обменяю спамер вконтакте на чекер и регер svhost Разное - Покупка, продажа, обмен 3 21.12.2008 02:53
Продам регер фотостраны! sa~ Разное - Покупка, продажа, обмен 5 04.12.2008 18:02
Ввоз авто из Америки. Ser_UFL Болталка 8 03.12.2008 02:30



Здесь присутствуют: 1 (пользователей: 0 , гостей: 1)
 


Быстрый переход




ANTICHAT.XYZ