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.
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
The Meaning of Life, the Universe, and Everything.
Join Date:
7/17/2010
Posts:
39
Member Details
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.
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.
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:)
The Meaning of Life, the Universe, and Everything.
Join Date:
5/28/2012
Posts:
59
Member Details
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!!
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
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.
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.
Heh thanks, ill add something to the new Release that has this In it, (as an option :wink.gif:)
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),
Download:
MCPwdRecovery.jar
Source:
GitHub
Remember if you want to be completely safe you should shutdown your computer to flush the RAM
BTW i am using a mac
PS it also downloads as a folder when i open zip