[Tool] Dump.jar - Minecraft Login Recovery.

  • #21
    Quote from Slay3R?

    Nice program :smile.gif:
    I couldn't run the jar however as I'm using JRE 1.6
    I copied the code into Eclipse. When I tried to run the code however I got the following exception:

    Attempting To Dump Login File at C:\Users\xxx\.minecraft
    java.io.FileNotFoundException: C:\Users\xxx\.minecraft\lastlogin (The system cannot find the path specified)
    [*] Dump failed! No idea why, check the trace. 	at java.io.FileInputStream.open(Native Method)
    	at java.io.FileInputStream.<init>(Unknown Source)
    	at dump.DumpContents(dump.java:63)
    	at dump.main(dump.java:48)


    It seems it's looking for the file at path C:\Users\xxx\.minecraft while it should be looking at C:\Users\xxx\AppData\Roaming\.minecraft

    After debugging I found out that the osType.ordinal() call was returning 2 and therefore uses this code

    Directory = new File(userHome, '.' + applicationName + '/');


    The code at case 3 however will return the correct path.
    I edited the code at the case 2 to look like this:

    case 2:
    			//Directory = new File(userHome, '.' + applicationName + '/');
    			String applicationData2 = System.getenv("APPDATA");
    			if (applicationData2 != null)
    				Directory = new File(applicationData2, "." + applicationName + '/');
    			else
    				Directory = new File(userHome, '.' + applicationName + '/');
    			break;


    This will return the correct path and works fine.
    I'm using Windows 7 x64. I haven't tested this at any other OS but you might want to look into this.

    I'm not to familiar with Java, especially with the enum types. But given the documentation popping up within Eclipse on the ordinal() method I might have found a bug.



    It starts with an index of 0, while your code starts at 1 and ends at 4. Shouldn't the case checks start at 0 and end on 3?

    Well I hope this information was in any way useful to you.



    I found this to and posted an issue on the github aswell.
  • #22
    i am using windows vista and it says could not find main class dump?

    if you need more info i will look into it
  • #23
    bah, i wrote this tool way before you! :smile.gif:

    source (compiled)

    reddit

    [br]

    also, your code is pretty much copypasta from the decompiler output:
    switching over the .ordinal() of an enum is something you never do, this is only the kind of code that decompilers produce.
    Last edited by flying_sheep: 1/19/2012 4:39:19 PM
  • #24
    If you could do that thommas that would be awesome, Slayer its not that I am computer illiterate but I have no idea of what you just said.

    Wait I think Flying sheep got it Edit: Never mind, lets just assume for all intents and purposes, that I am indeed Java illiterate and need step by step guidance on how to run your program. is it in Cmd? What do I need to do, or if you want thommas you can make the jar thing.
    Last edited by Trickster2212: 1/19/2012 6:00:05 PM
  • #25
    Quote from Trickster2212

    If you could do that thommas that would be awesome, Slayer its not that I am computer illiterate but I have no idea of what you just said.

    Wait I think Flying sheep got it Edit: Never mind, lets just assume for all intents and purposes, that I am indeed Java illiterate and need step by step guidance on how to run your program. is it in Cmd? What do I need to do, or if you want thommas you can make the jar thing.


    Here this one should work:
    I compiled it to be compatible with java 1.5 and up:
    Link
  • #26
    Patch to add GUI:
          FileWriter fstream = new FileWriter(getDirectory("minecraft", 
            getOS()) + "/lastlogin.dmp");
          BufferedWriter out = new BufferedWriter(fstream);
          String user = DatIS.readUTF();
          String pass = DatIS.readUTF();
          out.write(user + "\n");
          out.write(pass + "\n");
          javax.swing.JOptionPane.showMessageDialog(null, "User: " + user + " \n Pass: " + pass + " \nNow shutdown your computer to prevent evil people from reading your username and password from the ram!", "A CLEVER TITLE TO BE ADDED BY THE AUTHOR", javax.swing.JOptionPane.INFORMATION_MESSAGE);


    Welcome =). You don't have to add it if you don't but, I got bored and decided to write this. Basically, it just creates a message box that will tell the user the username and password. The first two lines are to give some context. It's around line 73 I think.
    Last edited by bob_twinkles: 1/19/2012 7:46:23 PM
    Mah city generator. Check it out!
  • #27
    Quote from Slay3R?

    Nice program :smile.gif:
    I couldn't run the jar however as I'm using JRE 1.6
    I copied the code into Eclipse. When I tried to run the code however I got the following exception:

    Attempting To Dump Login File at C:\Users\xxx\.minecraft
    java.io.FileNotFoundException: C:\Users\xxx\.minecraft\lastlogin (The system cannot find the path specified)
    [*] Dump failed! No idea why, check the trace. 	at java.io.FileInputStream.open(Native Method)
    	at java.io.FileInputStream.<init>(Unknown Source)
    	at dump.DumpContents(dump.java:63)
    	at dump.main(dump.java:48)


    It seems it's looking for the file at path C:\Users\xxx\.minecraft while it should be looking at C:\Users\xxx\AppData\Roaming\.minecraft

    After debugging I found out that the osType.ordinal() call was returning 2 and therefore uses this code

    Directory = new File(userHome, '.' + applicationName + '/');


    The code at case 3 however will return the correct path.
    I edited the code at the case 2 to look like this:

    case 2:
    			//Directory = new File(userHome, '.' + applicationName + '/');
    			String applicationData2 = System.getenv("APPDATA");
    			if (applicationData2 != null)
    				Directory = new File(applicationData2, "." + applicationName + '/');
    			else
    				Directory = new File(userHome, '.' + applicationName + '/');
    			break;


    This will return the correct path and works fine.
    I'm using Windows 7 x64. I haven't tested this at any other OS but you might want to look into this.

    I'm not to familiar with Java, especially with the enum types. But given the documentation popping up within Eclipse on the ordinal() method I might have found a bug.



    It starts with an index of 0, while your code starts at 1 and ends at 4. Shouldn't the case checks start at 0 and end on 3?

    Well I hope this information was in any way useful to you.


    The code in the mos recent release runs fine on my Win7 x64. i need to redo the path code in any case, ill get around to it, vary busy atm but when i get it done ill post a new release.

    As for what @flying sheep said, it was just a tool i made when i was bored, so meh, and the ordinal thing is due to the fact im early "new" to java and never really used Enums, and its not a copy paste, i actuly just referenced the decompiled output and write that from the reference, and i never found a way to make it better as Java is not my native Language.


    And expect a fix for it in a bit. and i just find it odd that its not zero Indexed... but w/e not my issue... and in any case, enjoy the Tool Even if someone else made it first, it never has stopped me before, and it will not stop me now.
    Quote from bob_twinkles

    Patch to add GUI:
          FileWriter fstream = new FileWriter(getDirectory("minecraft", 
            getOS()) + "/lastlogin.dmp");
          BufferedWriter out = new BufferedWriter(fstream);
          String user = DatIS.readUTF();
          String pass = DatIS.readUTF();
          out.write(user + "\n");
          out.write(pass + "\n");
          javax.swing.JOptionPane.showMessageDialog(null, "User: " + user + " \n Pass: " + pass + " \nNow shutdown your computer to prevent evil people from reading your username and password from the ram!", "A CLEVER TITLE TO BE ADDED BY THE AUTHOR", javax.swing.JOptionPane.INFORMATION_MESSAGE);


    Welcome =). You don't have to add it if you don't but, I got bored and decided to write this. Basically, it just creates a message box that will tell the user the username and password. The first two lines are to give some context. It's around line 73 I think.


    Heh thanks, ill add something to the new Release that has this In it, (as an option :wink.gif:)
  • #28
    Fixed the bug and added the GUI option -g or --gui, and released V3, check the main post.
  • #29
    Ty it worked, thanks alot
  • #30
    Help please can you tell me how to "run" the jar file? I really need to recover my login. I forgot it lol! Please help. Thanks.
    An  a day keeps Windows away!
  • #31
    Java gives me the error "Could not find the main class: dump. Program will exit." Help?
    An  a day keeps Windows away!
  • #32
    Hey,
    I've >remade
    I don't claim all of the code to be my own,
    Some was taken from this but that is all(The Cipher code),

    Download:
    MCPwdRecovery.jar
    Source:
    GitHub

    Remember if you want to be completely safe you should shutdown your computer to flush the RAM
  • #33
    Can someone put up step by step directions on how to use this?
  • #34
    how do you run the file? all I get is .jar that I can view in WinRar
  • #35
    when i try to run it it says it is corrupt
    BTW i am using a mac
    PS it also downloads as a folder when i open zip
  • #36
    Dear sir, i am on mac

    Therefore i am wondering, when is this tool coming out for mac?
  • #37
    THANK YOU!! My friend and I got hacked by one of our douchebag friends, and forgot our passwords. Then we found this tool, and got both of our passwords back. THANK YOU SO MUCH!!
  • #38
    I am not a coder, but I kinda would need help with this as this kinda stuff confuses me. :P
  • #39
    ok man Ive tryed this cos I forgot my password and couldnt get it working, but right now Im not botherd about that, whats scaring me is that as soon as Ive done this as soon as I go on something like facebook or twitter, they start to freeze up and not work, youtube is working fine and so is this, but it makes me think this is a keylogger, please let it not be, but Im really scared right now and quite angry
  • #40
    Does not work on mac due to the following error:
    12/5/13 4:27:43 PM [0x0-0x1f21f2].com.apple.JarLauncher[47498] Exception in thread "main"
    12/5/13 4:27:43 PM [0x0-0x1f21f2].com.apple.JarLauncher[47498] java.lang.UnsupportedClassVersionError: dump : Unsupported major.minor version 51.0
    12/5/13 4:27:43 PM [0x0-0x1f21f2].com.apple.JarLauncher[47498]  at java.lang.ClassLoader.defineClass1(Native Method)
    12/5/13 4:27:43 PM [0x0-0x1f21f2].com.apple.JarLauncher[47498]  at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
    12/5/13 4:27:43 PM [0x0-0x1f21f2].com.apple.JarLauncher[47498]  at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
    12/5/13 4:27:43 PM [0x0-0x1f21f2].com.apple.JarLauncher[47498]  at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    12/5/13 4:27:43 PM [0x0-0x1f21f2].com.apple.JarLauncher[47498]  at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    12/5/13 4:27:43 PM [0x0-0x1f21f2].com.apple.JarLauncher[47498]  at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    12/5/13 4:27:43 PM [0x0-0x1f21f2].com.apple.JarLauncher[47498]  at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    12/5/13 4:27:43 PM [0x0-0x1f21f2].com.apple.JarLauncher[47498]  at java.security.AccessController.doPrivileged(Native Method)
    12/5/13 4:27:43 PM [0x0-0x1f21f2].com.apple.JarLauncher[47498]  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    12/5/13 4:27:43 PM [0x0-0x1f21f2].com.apple.JarLauncher[47498]  at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    12/5/13 4:27:43 PM [0x0-0x1f21f2].com.apple.JarLauncher[47498]  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    12/5/13 4:27:43 PM [0x0-0x1f21f2].com.apple.JarLauncher[47498]  at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes