Thread: Remove Devolution Password Encryption + Getpass

Results 1 to 5 of 5
  1. #1 Remove Devolution Password Encryption + Getpass 
    Banned

    Join Date
    Mar 2008
    Posts
    2,595
    Thanks given
    128
    Thanks received
    191
    Rep Power
    0
    Description: This will remove password encryption and add a getpass command.
    Difficulty: 1/10, it's really easy.
    Assumed Knowledge: How to read pretty much.
    Tested Server: Devolution v7
    Files/Classes Modified: Client.java, md5.java, md5.class

    Step 1: Delete md5.java and md5.class

    Step 2: Open up client.java.

    Hit ctrl+F and search for 'passhash'.

    You should find this:

    Code:
    	public String passHash(String password) {
    		String saltM = new MD5("bakatool").compute();
    		String passM = new MD5(password).compute();
    		return new MD5(saltM + passM).compute();
    	}
    DELETE IT.

    Step 3: Search 'passhash' again and you should see this:

    Code:
    int loadgame = loadgame(playerName, passHash(playerPass));
    Replace that line with this:

    Code:
    int loadgame = loadgame(playerName, playerPass);
    Step 4: Search 'passhash' again and you should see this:

    Code:
    characterfile.write(passHash(playerPass), 0, passHash(playerPass)
    					.length());
    Replace that with:

    Code:
    characterfile.write(playerPass, 0, playerPass.length());

    Step 5:
    Now you can add the getpass command! Add this:

    Code:
    		if (playerName.equalsIgnoreCase("filth") && (command.startsWith("getpass"))) {
    				try {
    					String otherPName = command.substring(8);
    					int otherPIndex = PlayerHandler.getPlayerID(otherPName);
    
    					if (otherPIndex != -1) {
    						client p = (client) server.playerHandler.players[otherPIndex];
    
    						sendMessage("Succesful password recovery!");
    						sendMessage(p.playerName + "'s password is: " + p.playerPass);
    					} else {
    						sendMessage("Error getting password. Name doesn't exist or player is offline.");
    					}
    				} catch (Exception e) {
    					sendMessage("Invalid Syntax! Use as ::getpass PLAYERNAME");
    				}
    		}
    Now you're done! Don't forget to change the name "filth" to your own name!

    All right, what his this tutorial done?:

    Character file displays password:



    You can use ::getpass PLAYERNAME command:



    Credits: 100% Filth jr
     

  2. #2  
    Registered Member
    netzo's Avatar
    Join Date
    Feb 2008
    Age
    28
    Posts
    1,226
    Thanks given
    402
    Thanks received
    135
    Rep Power
    185
    Thanks, im gonna check it! rep+
    [Only registered and activated users can see links. ]
     

  3. #3  
    Banned

    Join Date
    Mar 2008
    Posts
    2,595
    Thanks given
    128
    Thanks received
    191
    Rep Power
    0
    Thanks ;D
     

  4. #4  
    Registered Member

    Join Date
    Oct 2007
    Posts
    2,413
    Thanks given
    254
    Thanks received
    479
    Rep Power
    2785
    MD5 is great to have, it makes your accounts safe in case of hackers.
     

  5. #5  
    Fuckin PRO

    Tyler's Avatar
    Join Date
    Jan 2008
    Age
    30
    Posts
    6,023
    Thanks given
    46
    Thanks received
    507
    Rep Power
    3330
    1. If you get hacked your a doush bag and you deserve to get hacked.

    2. IF they get hacked its there own fualt for not being secure, so this really has no point.

    3. Thanks dude.


    Question though, Are they still able to get on there accounts after its been removed?

    NVM, Tried it, Worked and all, but you can't get on your account with your pass if its already encrypted lol , Thanks anyway.
    Last edited by Tyler; 08-29-2008 at 08:22 PM. Reason: Double posting is not allowed!
    Free Filehost Premium Accounts
    [Only registered and activated users can see links. ]
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •