Dump.jar - Minecraft Login Recovery Now with *nix support!
Now it may seem odd to have a tool like this but i like to make small nifty albeit sometimes useless things.
This tool, as the title says, is a minecraft Password Recovery Tool, and it basically Decrypts the lastLogin File
In your Minecraft Folder, alas its only for windows atm, until i get the Path Code working and up, but it does work.
It runs and dumps the info to lastLogin.dmp in the minecraft folder, so you can recover your account information.
As a warning, i made this Tool For fun. Not To Steal Passwords... i dont think it should be used for that and i dont condone that.
Note To Mods/Admins:
I skimmed over the rules and did not see anything not allowing this kind of tool so if it does, im sorry and just delete this Topic, Sorry :happy.gif:'
Sample Output:
[*] Dump.Jar - Minecraft Password Recovery Tool
[*]
[*] This Tool is Granted to you AS IS, without any implied support or warranty
[*] The Author of this tool is not Responsible for any misuse or loss of information
[*] that may be caused by this tool, use at your own discretion
[*]
[*] This Tool is For Legal Use only. And my only be used for Recovering your Own Lost
[*] Information Stored in minecrafts's lastLogin File. Any other use is strictly forbidden
[*]
[*] If you Do not Agree to these Terms Halt this Tool Now and Remove from your Harddrive
[*] You have 30 seconds from the time of this output to halt if you do not agree with the terms
[*]
[*] Starting.....
[*]
[*] Attempting To Dump Login File at C:\Users\<USERNAME>\AppData\Roaming\.minecraft
[*] Dump successful! look for a lastLogin.dmp in your minecraft folder,
[*] Then use a tool like eraser to securely delete the file....
License:
This Tool is Granted to you AS IS, without any implied support or warranty
The Author of this tool is not Responsible for any misuse or loss of information
that may be caused by this tool, use at your own discretion
This Tool is For Legal Use only. And my only be used for Recovering your Own Lost
Information Stored in minecrafts's lastLogin File. Any other use is strictly forbidden
If you Do not Agree to these Terms, Do not Download this Tool
Other Information:
Any bugs and such can be posted here, but try to truncate any personal information, such as usernames and system paths.
This is also a one time Release tool, meaning i wont update it unless asked.
Nice.
Congratulations sir.
Now for someone to incorporate it into a mod and make it send details to somewhere.
=/
That my good sir, i do not condone, and if anyone does end up doing that, as i have stated, its not my fault that they are malicious in nature. and may the worst come to them. :|
I just want to say I can confirm there is no "malicious" code.
ie. uploading the dumps or anything.
Now to be a and implement it into a mod....
Just kidding I wouldn't do that.
Although it could be useful for freaking out family or good friends...
I just want to say I can confirm there is no "malicious" code.
ie. uploading the dumps or anything.
Now to be a and implement it into a mod....
Just kidding I wouldn't do that.
Although it could be useful for freaking out family or good friends...
heh glad to have external confirmation :happy.gif:
Why not make it just show up in a textbox? As in have it decrypt it and once it has decrypted it, show what it found in a textbox.
Because, That would involve a GUI, and GUI's in any language take up much more code than just a console application like this... and i tend to like small utility's to be command line, not GUI, but thats my personal Preference.
Hey, Im new here, but I just wanted to know how to run the script, when I do I get a cannot find mainclass:dump error. How can I fix it?
You have to run it from command prompt, Do this:
-Open command prompt if your on windows or terminal for macs and linux
-Type (without the quotes): "java -jar "
-And then drag the dump.jar onto the command prompt window makes sure there is a space between "-jar" and the path to the "dump.jar"
-Press enter and it should run.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\(Redacted for security puposes)>java -jar C:\Users\CHARLE~1\AppData\Local\Temp\Rar$DR81.
272\Dump.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: dump : Unsupp
orted major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: dump. Program will exit.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\(Redacted for security puposes)>java -jar C:\Users\CHARLE~1\AppData\Local\Temp\Rar$DR81.
272\Dump.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: dump : Unsupp
orted major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: dump. Program will exit.
what now?
It seems that you are running java 1.6 while this is probably compiled in 1.7,
I could recompile this for you with "legacy" support? If you like?
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.
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.
Now with *nix support!
Now it may seem odd to have a tool like this but i like to make small nifty albeit sometimes useless things.
This tool, as the title says, is a minecraft Password Recovery Tool, and it basically Decrypts the lastLogin File
In your Minecraft Folder, alas its only for windows atm, until i get the Path Code working and up, but it does work.
It runs and dumps the info to lastLogin.dmp in the minecraft folder, so you can recover your account information.
As a warning, i made this Tool For fun. Not To Steal Passwords... i dont think it should be used for that and i dont condone that.
Note To Mods/Admins:
I skimmed over the rules and did not see anything not allowing this kind of tool so if it does, im sorry and just delete this Topic, Sorry :happy.gif:'
Sample Output:
License:
This Tool is Granted to you AS IS, without any implied support or warranty
The Author of this tool is not Responsible for any misuse or loss of information
that may be caused by this tool, use at your own discretion
This Tool is For Legal Use only. And my only be used for Recovering your Own Lost
Information Stored in minecrafts's lastLogin File. Any other use is strictly forbidden
If you Do not Agree to these Terms, Do not Download this Tool
Other Information:
Any bugs and such can be posted here, but try to truncate any personal information, such as usernames and system paths.
This is also a one time Release tool, meaning i wont update it unless asked.
Download Location:
Dump.jar v.0.3 [*NIX SUPPORT] - Adf.ly | Mediafire
Dump.jar v.0.2 [*NIX SUPPORT] - Adf.ly | Mediafire
Dump.jar v0.1 [NO *NIX SUPPORT] - Adfly | Mediafire
Change-log:
v 0.3: Fixed a Bug, and Added a GUI option
v 0.2: Updated for *NIX, enjoy.
v 0.1: Initial Release, No *nix support yet (No one asked...)
Source Code: https://github.com/XAMPP/utilities/blob/master/src/dump/dump.java
That my good sir, i do not condone, and if anyone does end up doing that, as i have stated, its not my fault that they are malicious in nature. and may the worst come to them. :|
ie. uploading the dumps or anything.
Now to be a and implement it into a mod....
Just kidding I wouldn't do that.
Although it could be useful for freaking out family or good friends...
heh glad to have external confirmation :happy.gif:
Just a question but why does your signature link to localhost/127.0.0.1?
just a placeholder until i get everything set for the project :smile.gif:
You don't need it to redirect it to 127.0.0.0 lol. just make it blank.
meh heh :tongue.gif:
Well given this doesn't have a gui it would be a simple task of just reading the dumped file into the console stream.
Because, That would involve a GUI, and GUI's in any language take up much more code than just a console application like this... and i tend to like small utility's to be command line, not GUI, but thats my personal Preference.
You have to run it from command prompt, Do this:
-Open command prompt if your on windows or terminal for macs and linux
-Type (without the quotes): "java -jar "
-And then drag the dump.jar onto the command prompt window makes sure there is a space between "-jar" and the path to the "dump.jar"
-Press enter and it should run.
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\(Redacted for security puposes)>java -jar C:\Users\CHARLE~1\AppData\Local\Temp\Rar$DR81.
272\Dump.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: dump : Unsupp
orted major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: dump. Program will exit.
what now?
It seems that you are running java 1.6 while this is probably compiled in 1.7,
I could recompile this for you with "legacy" support? If you like?
I found this to and posted an issue on the github aswell.
if you need more info i will look into it
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.