Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

[Tool] Dump.jar - Minecraft Login Recovery.


  • Please log in to reply
39 replies to this topic

#21

Xtansia
    Xtansia

    Iron Miner

  • Members
  • 335 posts
  • Location: Everywhere, Yet Nowhere.
  • Minecraft: tomass1996

Posted 19 January 2012 - 09:55 PM

View PostSlay3R?, on 19 January 2012 - 01:31 PM, said:

Nice program :)
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.

Register or log in to remove.

#22

dedit8
    dedit8

    Stone Miner

  • Members
  • 92 posts

Posted 19 January 2012 - 10:16 PM

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

flying sheep
  • Minecraft: flying-sheep

Posted 19 January 2012 - 10:30 PM

bah, i wrote this tool way before you! :)

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.
Posted Image

#24

Trickster2212

Posted 19 January 2012 - 11:50 PM

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.

#25

Xtansia
    Xtansia

    Iron Miner

  • Members
  • 335 posts
  • Location: Everywhere, Yet Nowhere.
  • Minecraft: tomass1996

Posted 20 January 2012 - 12:32 AM

View PostTrickster2212, on 19 January 2012 - 11:50 PM, said:

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

bob_twinkles
    bob_twinkles

    The Meaning of Life, the Universe, and Everything...

  • Members
  • 42 posts

Posted 20 January 2012 - 01:31 AM

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.
Mah city generator. Check it out!

#27

XAMPP
    XAMPP

    Carpenter

  • Members
  • 44 posts
  • Location: 0xDeadBeef
  • Minecraft: XAMPP

Posted 20 January 2012 - 02:21 AM

View PostSlay3R?, on 19 January 2012 - 01:31 PM, said:

Nice program :)
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.

View Postbob_twinkles, on 20 January 2012 - 01:31 AM, said:

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 ;))
Posted Image

#28

XAMPP
    XAMPP

    Carpenter

  • Members
  • 44 posts
  • Location: 0xDeadBeef
  • Minecraft: XAMPP

Posted 20 January 2012 - 02:43 AM

Fixed the bug and added the GUI option -g or --gui, and released V3, check the main post.
Posted Image

#29

Trickster2212

Posted 24 January 2012 - 01:43 AM

Ty it worked, thanks alot

#30

XENiXON
    XENiXON

    The Meaning of Life, the Universe, and Everything...

  • Members
  • 42 posts

Posted 10 April 2012 - 07:25 AM

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.
Posted Image

An  a day keeps Windows away!


#31

XENiXON
    XENiXON

    The Meaning of Life, the Universe, and Everything...

  • Members
  • 42 posts

Posted 10 April 2012 - 07:31 AM

Java gives me the error "Could not find the main class: dump. Program will exit." Help?
Posted Image

An  a day keeps Windows away!


#32

Xtansia
    Xtansia

    Iron Miner

  • Members
  • 335 posts
  • Location: Everywhere, Yet Nowhere.
  • Minecraft: tomass1996

Posted 12 April 2012 - 08:06 AM

Hey,
I've >remade< this to be just a gui,
I don't claim all of the code to be my own,
Some was taken from this but that is all(The Cipher code),
Posted Image
Download:
MCPwdRecovery.jar
Source:
GitHub

Remember if you want to be completely safe you should shutdown your computer to flush the RAM

#33

debook454

Posted 27 November 2012 - 10:12 PM

Can someone put up step by step directions on how to use this?

#34

tclay
    tclay

    Out of the Water

  • Members
  • 2 posts

Posted 13 February 2013 - 08:07 PM

how do you run the file? all I get is .jar that I can view in WinRar

#35

_Hobohunter657_

Posted 02 March 2013 - 07:48 AM

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

ikin5050
    ikin5050

    Newly Spawned

  • Members
  • 1 posts

Posted 17 April 2013 - 11:18 AM

Dear sir, i am on mac

Therefore i am wondering, when is this tool coming out for mac?

#37

pokechat8978
    pokechat8978

    The Meaning of Life, the Universe, and Everything...

  • Members
  • 42 posts

Posted 18 April 2013 - 09:24 PM

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

iSniped
    iSniped

    Out of the Water

  • Members
  • 3 posts

Posted 03 July 2013 - 08:16 PM

I am not a coder, but I kinda would need help with this as this kinda stuff confuses me. :P

#39

luke3636
    luke3636

    Tree Puncher

  • Members
  • 30 posts

Posted 07 November 2013 - 12:30 AM

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
Posted Image

#40

joeybab3
    joeybab3

    Tree Puncher

  • Members
  • 25 posts
  • Minecraft: ARGRYPICKEL123

Posted 06 December 2013 - 12:30 AM

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)