How to decode lastlogin file
#1
Posted 01 September 2011 - 08:59 PM
Thanks
#2
Posted 01 September 2011 - 09:25 PM
2: If it were possible to get usernames and passwords that easy, then every account would be stolen already.
The only way you can play minecraft again, is remembering your password, sending an email to the help adress, or simply buy it again on a new account.
#3
Posted 04 March 2012 - 03:32 AM
import java.io.*;
import javax.crypto.*;
import java.util.*;
import javax.crypto.spec.*;
public class test
{
public static void main(String[] args)
{
new test();
}
public String user = "";
public String pass = "";
public test()
{
readUsername();
System.out.println(user+" "+pass);
}
private void readUsername() {
try {
//File lastLogin = new File(Util.getWorkingDirectory(), "lastlogin");
File lastLogin = new File("./lastlogin");
Cipher cipher = getCipher(2, "passwordfile");
DataInputStream dis;
if (cipher != null)
dis = new DataInputStream(new CipherInputStream(new FileInputStream(lastLogin), cipher));
else {
dis = new DataInputStream(new FileInputStream(lastLogin));
}
user = dis.readUTF();
pass = dis.readUTF();
dis.close();
} catch (Exception e) {
e.printStackTrace();
}
}
private Cipher getCipher(int mode, String password) throws Exception {
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(password.toCharArray()));
Cipher cipher = Cipher.getInstance("PBEWithMD5AndDES");
cipher.init(mode, pbeKey, pbeParamSpec);
return cipher;
}
}
#5
Posted 15 September 2012 - 03:42 PM
JoeShoe2, on 04 March 2012 - 03:32 AM, said:
import java.io.*;
import javax.crypto.*;
import java.util.*;
import javax.crypto.spec.*;
public class test
{
public static void main(String[] args)
{
new test();
}
public String user = "";
public String pass = "";
public test()
{
readUsername();
System.out.println(user+" "+pass);
}
private void readUsername() {
try {
//File lastLogin = new File(Util.getWorkingDirectory(), "lastlogin");
File lastLogin = new File("./lastlogin");
Cipher cipher = getCipher(2, "passwordfile");
DataInputStream dis;
if (cipher != null)
dis = new DataInputStream(new CipherInputStream(new FileInputStream(lastLogin), cipher));
else {
dis = new DataInputStream(new FileInputStream(lastLogin));
}
user = dis.readUTF();
pass = dis.readUTF();
dis.close();
} catch (Exception e) {
e.printStackTrace();
}
}
private Cipher getCipher(int mode, String password) throws Exception {
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(password.toCharArray()));
Cipher cipher = Cipher.getInstance("PBEWithMD5AndDES");
cipher.init(mode, pbeKey, pbeParamSpec);
return cipher;
}
}
it would be nice if some people would stop posting this type of spam...
TheSoVeryEpicSURGE










