Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 11:41

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Minecraft
PostPosted: 22 Feb 2011 03:45 

Joined: 16 Aug 2007 06:25
Posts: 367
Any chance of looking in to a Minecraft password recovery?

Looks like the username & password are encrypted in the C:\Users\user\AppData\Roaming\.minecraft\lastlogin file, but the password is sent to the server as clear text so it's gotta be decrypted on the client side.

Client is free to download here: http://www.minecraft.net/download.jsp


Top
 Profile  
 
 
 Post subject: Re: Minecraft
PostPosted: 22 Feb 2011 10:35 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
being a java client would be easier to write a java password recovery with a copy&paste of the original code.
for example the following should be the core of the code that does the job:
Code:
  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;
  }
  ...
      Cipher cipher = getCipher(2, "passwordfile");
      DataInputStream dis;
      dis = new DataInputStream(new CipherInputStream(new FileInputStream(lastLogin), cipher));
am I wrong or no login with minecraft.net today?


Top
 Profile  
 
 Post subject: Re: Minecraft
PostPosted: 22 Feb 2011 15:42 

Joined: 16 Aug 2007 06:25
Posts: 367
It's been up and down for the past month or so. I think they are working on moving their servers.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: