Jump to content
Team Avolition
Sign in to follow this  
silv3rbullet

[Tool] AccountChecker

Recommended Posts

silv3rbullet    84

I quickly threw this together as a way to check if any of my alts still worked.

 

The input file must be in the following format!

username:pass
username2:pass2
username3:pass3
etc...

 

The file you specify to the program must be in the same directory as the program.

 

Source (Java): http://dl.dropbox.com/u/28841222/src.rar

Class files: http://dl.dropbox.com/u/28841222/bin.rar

  • Upvote 1

Share this post


Link to post
djcool    2

Or you could use this (bash):

 

while read i; do U=`echo $i|awk -F':' '{print $1}'`; P=`echo $i|awk -F':' '{print $2}'`; echo -n "$U: "; curl -d version=13 -d user=$U -d password=$P https://login.minecraft.net 2>/dev/null | grep -qi $U && echo works || echo doesn\'t work; done < accounts

 

"accounts" is the file with usernames and passwords.

  • Upvote 2

Share this post


Link to post
ajvpot    204

Or you could use this (bash):

 

while read i; do U=`echo $i|awk -F':' '{print $1}'`; P=`echo $i|awk -F':' '{print $2}'`; echo -n "$U: "; curl -d version=13 -d user=$U -d password=$P https://login.minecraft.net 2>/dev/null | grep -qi $U && echo works || echo doesn\'t work; done < accounts

 

"accounts" is the file with usernames and passwords.

 

I fucking love you.

Also, PHP

<?php
function getData($where)
{  
return file_get_contents("http://50.16.200.224/game/$where"); // Send request to the server
}
function mcauthenticate($mcusername,$mcpassword, $version){
/*
Authenticates account with minecraft.net
*/
$mcusername = trim($mcusername);
$mcpassword = trim($mcpassword);
$mcresponse = getData("getversion.jsp?user=$mcusername&password=$mcpassword&version=$version");
$sessionkey = "";
$pos = strrpos($mcresponse, ":");
if ($pos === false){//does not contain :
 echo "<font color=\"red\"><b>Fail!</b> $mcusername is inactive ($mcresponse)</font><br />";
}else{
 $accountinfo = explode(":",$mcresponse);
 $sessionkey = $accountinfo[3];
 echo "<font color=\"green\"><b>OK!</b> $mcusername is active ($mcresponse)</font><br />";
}
return $mcresponse;
}
if (!isset($_REQUEST['accs'])){
?>
<!-- Mass import form -->
Enter accounts in the format of username:password<br />
<form action="" method="post">
<textarea name="accs"></textarea><br /><input type="checkbox" name="debug"/> Debug<br /><input type="submit" value="Check accounts">
</form>
<!-- Halfass yeah! -->
Thanks to SomKen for getting me started on all this authentication stuff. You can check out his alternate minecraft login system at <a href="http://somken.com/blog/">somken.com</a>
<br />Created by MasterFagdick
<?php }else{
$text = trim($_REQUEST['accs']);//Remove Excess whitespace
$textAr = explode("\n", $text);//Make array from textarea
$textAr = array_filter($textAr, 'trim');//Remove excess charaters
if(isset($_REQUEST["debug"])){
 print_r($textAr);// echo array
}
foreach ($textAr as $line) {
 $pos = strrpos($line, ":");
 if ($pos === false){//does not contain :, quick and dirty sanity check
  echo "<font color=\"red\"><b>Error!</b> Malformed username/password ($line)</font><br />";
 }else{
  $userinfo = explode(":", $line);
$mcusername = $userinfo[0];
$mcpassword = $userinfo[1];
  mcauthenticate($mcusername, $mcpassword, "999");//Dont bother changing the version
 }
}
echo "<font color=\"green\"><b>Done!</b></font><br />";
}
?>

Note: if you dont like

    return file_get_contents("http://50.16.200.224/game/$where"); // Send request to the server

get the ip address for www.minecraft.net and replace it. 50.16.200.224 is one of those ip addresses.

Share this post


Link to post
silv3rbullet    84

Or you could use this (bash):

 

while read i; do U=`echo $i|awk -F':' '{print $1}'`; P=`echo $i|awk -F':' '{print $2}'`; echo -n "$U: "; curl -d version=13 -d user=$U -d password=$P https://login.minecraft.net 2>/dev/null | grep -qi $U && echo works || echo doesn\'t work; done < accounts

 

"accounts" is the file with usernames and passwords.

 

I fucking love you.

Also, PHP

<?php
function getData($where)
{  
return file_get_contents("http://50.16.200.224/game/$where"); // Send request to the server
}
function mcauthenticate($mcusername,$mcpassword, $version){
/*
Authenticates account with minecraft.net
*/
$mcusername = trim($mcusername);
$mcpassword = trim($mcpassword);
$mcresponse = getData("getversion.jsp?user=$mcusername&password=$mcpassword&version=$version");
$sessionkey = "";
$pos = strrpos($mcresponse, ":");
if ($pos === false){//does not contain :
 echo "<font color=\"red\"><b>Fail!</b> $mcusername is inactive ($mcresponse)</font><br />";
}else{
 $accountinfo = explode(":",$mcresponse);
 $sessionkey = $accountinfo[3];
 echo "<font color=\"green\"><b>OK!</b> $mcusername is active ($mcresponse)</font><br />";
}
return $mcresponse;
}
if (!isset($_REQUEST['accs'])){
?>
<!-- Mass import form -->
Enter accounts in the format of username:password<br />
<form action="" method="post">
<textarea name="accs"></textarea><br /><input type="checkbox" name="debug"/> Debug<br /><input type="submit" value="Check accounts">
</form>
<!-- Halfass yeah! -->
Thanks to SomKen for getting me started on all this authentication stuff. You can check out his alternate minecraft login system at <a href="http://somken.com/blog/">somken.com</a>
<br />Created by MasterFagdick
<?php }else{
$text = trim($_REQUEST['accs']);//Remove Excess whitespace
$textAr = explode("\n", $text);//Make array from textarea
$textAr = array_filter($textAr, 'trim');//Remove excess charaters
if(isset($_REQUEST["debug"])){
 print_r($textAr);// echo array
}
foreach ($textAr as $line) {
 $pos = strrpos($line, ":");
 if ($pos === false){//does not contain :, quick and dirty sanity check
  echo "<font color=\"red\"><b>Error!</b> Malformed username/password ($line)</font><br />";
 }else{
  $userinfo = explode(":", $line);
$mcusername = $userinfo[0];
$mcpassword = $userinfo[1];
  mcauthenticate($mcusername, $mcpassword, "999");//Dont bother changing the version
 }
}
echo "<font color=\"green\"><b>Done!</b></font><br />";
}
?>

Note: if you dont like

	return file_get_contents("http://50.16.200.224/game/$where"); // Send request to the server

get the ip address for www.minecraft.net and replace it. 50.16.200.224 is one of those ip addresses.

 

THE COLORS!!!

MY EYES!!!

  • Upvote 1

Share this post


Link to post
ajvpot    204

Or you could use this (bash):

 

while read i; do U=`echo $i|awk -F':' '{print $1}'`; P=`echo $i|awk -F':' '{print $2}'`; echo -n "$U: "; curl -d version=13 -d user=$U -d password=$P https://login.minecraft.net 2>/dev/null | grep -qi $U && echo works || echo doesn\'t work; done < accounts

 

"accounts" is the file with usernames and passwords.

 

I fucking love you.

Also, PHP

<?php
function getData($where)
{  
return file_get_contents("http://50.16.200.224/game/$where"); // Send request to the server
}
function mcauthenticate($mcusername,$mcpassword, $version){
/*
Authenticates account with minecraft.net
*/
$mcusername = trim($mcusername);
$mcpassword = trim($mcpassword);
$mcresponse = getData("getversion.jsp?user=$mcusername&password=$mcpassword&version=$version");
$sessionkey = "";
$pos = strrpos($mcresponse, ":");
if ($pos === false){//does not contain :
 echo "<font color=\"red\"><b>Fail!</b> $mcusername is inactive ($mcresponse)</font><br />";
}else{
 $accountinfo = explode(":",$mcresponse);
 $sessionkey = $accountinfo[3];
 echo "<font color=\"green\"><b>OK!</b> $mcusername is active ($mcresponse)</font><br />";
}
return $mcresponse;
}
if (!isset($_REQUEST['accs'])){
?>
<!-- Mass import form -->
Enter accounts in the format of username:password<br />
<form action="" method="post">
<textarea name="accs"></textarea><br /><input type="checkbox" name="debug"/> Debug<br /><input type="submit" value="Check accounts">
</form>
<!-- Halfass yeah! -->
Thanks to SomKen for getting me started on all this authentication stuff. You can check out his alternate minecraft login system at <a href="http://somken.com/blog/">somken.com</a>
<br />Created by MasterFagdick
<?php }else{
$text = trim($_REQUEST['accs']);//Remove Excess whitespace
$textAr = explode("\n", $text);//Make array from textarea
$textAr = array_filter($textAr, 'trim');//Remove excess charaters
if(isset($_REQUEST["debug"])){
 print_r($textAr);// echo array
}
foreach ($textAr as $line) {
 $pos = strrpos($line, ":");
 if ($pos === false){//does not contain :, quick and dirty sanity check
  echo "<font color=\"red\"><b>Error!</b> Malformed username/password ($line)</font><br />";
 }else{
  $userinfo = explode(":", $line);
$mcusername = $userinfo[0];
$mcpassword = $userinfo[1];
  mcauthenticate($mcusername, $mcpassword, "999");//Dont bother changing the version
 }
}
echo "<font color=\"green\"><b>Done!</b></font><br />";
}
?>

Note: if you dont like

	return file_get_contents("http://50.16.200.224/game/$where"); // Send request to the server

get the ip address for www.minecraft.net and replace it. 50.16.200.224 is one of those ip addresses.

 

THE COLORS!!!

MY EYES!!!

Default syntax highlighting. sorry.

Share this post


Link to post
Gawd60    22

What does this do Sorry if i'm asking a stupid question just woke up from a nap.

  • Downvote 2

Share this post


Link to post
ajvpot    204

What does this do Sorry if i'm asking a stupid question just woke up from a nap.

list of accounts and passwords -> program -> list of working accounts and passwords

Share this post


Link to post
WhoopiGoldberg    1184

What does this do Sorry if i'm asking a stupid question just woke up from a nap.

A nap has nothing to do with it.. Read the thread & you'll be able to work out what these scripts do.

  • Upvote 2

Share this post


Link to post
KDcreeper    5

How the hell do we use it ... ( Im not into coding so this might be a very

stupid question )

Share this post


Link to post
Amallah    226

i cant get it to work some one tell me

Check the OP and post date...

  • Upvote 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×