Thread: Softscape 667 WHY Write Any Password IS WORKING ACCOUNT HELP !!!

Results 1 to 7 of 7
  1. #1 Softscape 667 WHY Write Any Password IS WORKING ACCOUNT HELP !!! 
    Registered Member
    Join Date
    Oct 2016
    Posts
    18
    Thanks given
    0
    Thanks received
    0
    Rep Power
    36
    Can someone help me i try to login at any accounts with any password is working lol afihsafhsdahjsd is working to login
    Reply With Quote  
     

  2. #2  
    Cywir NXT - Coming soon

    Scythe's Avatar
    Join Date
    Apr 2019
    Posts
    325
    Thanks given
    133
    Thanks received
    163
    Discord
    View profile
    Rep Power
    1148
    yeah same

    Reply With Quote  
     

  3. #3  
    Be the change you wanna see!

    Nozemi's Avatar
    Join Date
    Jul 2010
    Posts
    399
    Thanks given
    186
    Thanks received
    195
    Discord
    View profile
    Rep Power
    943
    Quote Originally Posted by ragraxmotofilm View Post
    Can someone help me i try to login at any accounts with any password is working lol afihsafhsdahjsd is working to login
    Kinda hard to tell what is what here. Your grammar makes it very harder to interpret.

    Though regardless of what you mean, you should check the code where it verifies the password... Shouldn't be hard to find honestly.

    Most servers let you login with any account, without requiring any registration. Though after first login, you usually have to provide the same password again.
    Unless there is no code checking the existing password before logging you in.

    Though, an honest opinion. This shouldn't matter much to you at the moment. If you don't know how to solve this, you have A LOT of work to do before you can consider hosting a server.


    Working on a custom OSRS base for Dodian. I've chosen to keep it open source.
    Click Signature to Check it Out


    Dodian is where my RSPS passion started, so I intend to keep it alive, even considering how dead it is.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Oct 2016
    Posts
    18
    Thanks given
    0
    Thanks received
    0
    Rep Power
    36
    @Nozemi I Don't Know Do it can u help me ?
    Reply With Quote  
     

  5. #5  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,657
    Thanks given
    687
    Thanks received
    668
    Discord
    View profile
    Rep Power
    487
    Quote Originally Posted by Nozemi View Post
    Kinda hard to tell what is what here. Your grammar makes it very harder to interpret.

    Though regardless of what you mean, you should check the code where it verifies the password... Shouldn't be hard to find honestly.

    Most servers let you login with any account, without requiring any registration. Though after first login, you usually have to provide the same password again.
    Unless there is no code checking the existing password before logging you in.

    Though, an honest opinion. This shouldn't matter much to you at the moment. If you don't know how to solve this, you have A LOT of work to do before you can consider hosting a server.
    His grammar is good enough to understand what he's saying. Don't be a dick.

    Quote Originally Posted by ragraxmotofilm View Post
    @Nozemi I Don't Know Do it can u help me ?
    Not sure if the source is matrix-based, do you have a file called LoginPacketsDecoder? That's where the password is usually read and validated. If you have one, can you post the code?
    Project thread
    Reply With Quote  
     

  6. #6  
    Registered Member
    Stugger's Avatar
    Join Date
    Apr 2016
    Posts
    188
    Thanks given
    116
    Thanks received
    262
    Rep Power
    299
    In your LoginServiceTask.java

    replace this:
    Code:
    if (!Saving.containsPlayer(username)) {
    	player = new Player(password);
    	newPlayer = true;
    } else {
    	try {
    		player = Saving.loadPlayer(username);
    		if (player == null) {
    			session.getLoginPackets().sendClientPacket(ReturnCode.NULLED_ACCOUNT);
    			return;
    		}
    	} catch (Exception e) {
    		e.printStackTrace();
    		session.getLoginPackets().sendClientPacket(ReturnCode.NULLED_ACCOUNT);
    		return;
    	}
    }
    with this:
    Code:
    if (!Saving.containsPlayer(username)) {
    	player = new Player(password);
    	newPlayer = true;
    } else {
    	try {
    		player = Saving.loadPlayer(username);
    		if (player == null) {
    			session.getLoginPackets().sendClientPacket(ReturnCode.NULLED_ACCOUNT);
    			return;
    		}
    		if (!player.getPassword().equals(password)) {
    			session.getLoginPackets().sendClientPacket(ReturnCode.INVALID_USERNAME_OR_PASSWORD);
    			return;
    		}
    	} catch (Exception e) {
    		e.printStackTrace();
    		session.getLoginPackets().sendClientPacket(ReturnCode.NULLED_ACCOUNT);
    		return;
    	}
    }
    that should do it..
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Oct 2016
    Posts
    18
    Thanks given
    0
    Thanks received
    0
    Rep Power
    36
    Quote Originally Posted by Stugger View Post
    In your LoginServiceTask.java

    replace this:
    Code:
    if (!Saving.containsPlayer(username)) {
    	player = new Player(password);
    	newPlayer = true;
    } else {
    	try {
    		player = Saving.loadPlayer(username);
    		if (player == null) {
    			session.getLoginPackets().sendClientPacket(ReturnCode.NULLED_ACCOUNT);
    			return;
    		}
    	} catch (Exception e) {
    		e.printStackTrace();
    		session.getLoginPackets().sendClientPacket(ReturnCode.NULLED_ACCOUNT);
    		return;
    	}
    }
    with this:
    Code:
    if (!Saving.containsPlayer(username)) {
    	player = new Player(password);
    	newPlayer = true;
    } else {
    	try {
    		player = Saving.loadPlayer(username);
    		if (player == null) {
    			session.getLoginPackets().sendClientPacket(ReturnCode.NULLED_ACCOUNT);
    			return;
    		}
    		if (!player.getPassword().equals(password)) {
    			session.getLoginPackets().sendClientPacket(ReturnCode.INVALID_USERNAME_OR_PASSWORD);
    			return;
    		}
    	} catch (Exception e) {
    		e.printStackTrace();
    		session.getLoginPackets().sendClientPacket(ReturnCode.NULLED_ACCOUNT);
    		return;
    	}
    }
    that should do it..
    Your is the best my friend thank you so much
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Login with any password and it WORKS?
    By Ace Hood in forum Help
    Replies: 6
    Last Post: 10-10-2013, 03:35 AM
  2. [667] Why won't this work!
    By Rune Sage in forum Help
    Replies: 8
    Last Post: 08-01-2013, 10:32 AM
  3. Replies: 7
    Last Post: 10-05-2010, 05:12 AM
  4. Replies: 8
    Last Post: 02-21-2010, 09:49 PM
  5. Replies: 1
    Last Post: 12-23-2009, 10:27 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •