Thread: 718 Fixing QuickChat Packet Exploit

Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 46
  1. #21  
    Registered Member
    Join Date
    Apr 2013
    Posts
    7
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Yes but I'm new to rsps era and barely know java so please tell me if it will make a difference?
    Reply With Quote  
     

  2. #22  
    Registered Member
    Join Date
    Nov 2011
    Posts
    191
    Thanks given
    35
    Thanks received
    14
    Rep Power
    22
    Quote Originally Posted by Reminiscent View Post
    Yes but I'm new to rsps era and barely know java so please tell me if it will make a difference?
    Code:
    if (fileId > 1163) {//bracket open
    return;
    }//end of the if statement condition, bracket closed.
    Reply With Quote  
     

  3. #23  
    Mug Club


    Join Date
    Jul 2011
    Age
    26
    Posts
    1,873
    Thanks given
    509
    Thanks received
    890
    Discord
    View profile
    Rep Power
    332
    Any reason you chose 1163? You know that isn't the limit for quickchat. You are restricting a TON of messages by doing this. Get the real value lol


    My Open Source Projects
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #24  
    Registered Member
    Join Date
    May 2010
    Posts
    220
    Thanks given
    15
    Thanks received
    10
    Rep Power
    7
    Quote Originally Posted by TitanPK View Post
    Any reason you chose 1163? You know that isn't the limit for quickchat. You are restricting a TON of messages by doing this. Get the real value lol
    No, that is the limit.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #25  
    Mug Club


    Join Date
    Jul 2011
    Age
    26
    Posts
    1,873
    Thanks given
    509
    Thanks received
    890
    Discord
    View profile
    Rep Power
    332
    Quote Originally Posted by rangin santa View Post
    No, that is the limit.
    It's not the limit.


    My Open Source Projects
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. #26  
    Banned

    Join Date
    Sep 2009
    Posts
    1,878
    Thanks given
    411
    Thanks received
    1,637
    Rep Power
    0
    Quote Originally Posted by TitanPK View Post
    Any reason you chose 1163? You know that isn't the limit for quickchat. You are restricting a TON of messages by doing this. Get the real value lol
    There are other ways to do it, this won't completely fix it.
    Reply With Quote  
     

  7. Thankful user:


  8. #27  
    Banned

    Join Date
    Dec 2007
    Age
    27
    Posts
    1,987
    Thanks given
    257
    Thanks received
    326
    Rep Power
    0
    Quote Originally Posted by Cjay0091 View Post
    There are other ways to do it, this won't completely fix it.
    Should have the server loading the cache and verifing this crap
    Reply With Quote  
     

  9. #28  
    Lost Redemption Owner & Founder
    Lost Redemption's Avatar
    Join Date
    Jan 2013
    Age
    24
    Posts
    915
    Thanks given
    212
    Thanks received
    60
    Rep Power
    0
    Yes (for him).
    Quote Originally Posted by riksk View Post
    If you open a bracket you gotta close it, right?
    Reply With Quote  
     

  10. #29  
    KNOWLEDGE IS POWER

    OG KingFox's Avatar
    Join Date
    Dec 2006
    Age
    30
    Posts
    1,683
    Thanks given
    628
    Thanks received
    1,055
    Discord
    View profile
    Rep Power
    709
    Code:
    if (fileId > 1163) {
    return;
    }
    That is the same as doing this:

    Code:
    if (fileId > 1163)
    return;
    Results are stull the same regardless, but you won't be able put anything in between the statement and the return without the brackets. Otherwise, you get an unreachable code error on the next line down.

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  11. #30  
    Mug Club


    Join Date
    Jul 2011
    Age
    26
    Posts
    1,873
    Thanks given
    509
    Thanks received
    890
    Discord
    View profile
    Rep Power
    332
    Quote Originally Posted by King J Scape View Post
    could always do this..
    Code:
    		} else if (packetId == SEND_FRIEND_QUICK_CHAT_PACKET) {
    		/**	if (!player.hasStarted())
    				return;
    			String username = stream.readString();
    			int fileId = stream.readUnsignedShort();
    			byte[] data = null;
    			if (length > 3 + username.length()) {
    				data = new byte[length - (3 + username.length())];
    				stream.readBytes(data);
    			}
    			data = Utils.completeQuickMessage(player, fileId, data);
    			Player p2 = World.getPlayerByDisplayName(username);
    			if (p2 == null)
    				return;
    			player.getFriendsIgnores().sendQuickChatMessage(p2,
    					new QuickChatMessage(fileId, data));**/
    		} else if (packetId == PUBLIC_QUICK_CHAT_PACKET) {
    		/**	if (!player.hasStarted())
    				return;
    			if (player.getLastPublicMessage() > Utils.currentTimeMillis())
    				return;
    			player.setLastPublicMessage(Utils.currentTimeMillis() + 300);
    			// just tells you which client script created packet
    			@SuppressWarnings("unused")
    			boolean secondClientScript = stream.readByte() == 1;// script 5059
    			// or 5061
    			int fileId = stream.readUnsignedShort();
    			byte[] data = null;
    			if (length > 3) {
    				data = new byte[length - 3];
    				stream.readBytes(data);
    			}
    			data = Utils.completeQuickMessage(player, fileId, data);
    			if (chatType == 0)
    				player.sendPublicChatMessage(new QuickChatMessage(fileId, data));
    			else if (chatType == 1)
    				player.sendFriendsChannelQuickMessage(new QuickChatMessage(
    						fileId, data));
    			else if (Settings.DEBUG)
    				Logger.log(this, "Unknown chat type: " + chatType);**/
    And this is the cancer that lurks in the Rune-Server community.

    When I found this exploit and used it on servers, only one of them responded with this fix, and I just laughed my ass off with my friends for quite a while. The fact that we were able to make an owner remove an entire feature from the game instead of simply fixing it the way it should be fixed just made me laugh.


    My Open Source Projects
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  12. Thankful user:


Page 3 of 5 FirstFirst 12345 LastLast

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. Replies: 20
    Last Post: 04-22-2013, 12:48 AM
  2. 718 Player Option Packets
    By izaazkothawala in forum Help
    Replies: 4
    Last Post: 09-28-2012, 02:19 AM
  3. Fixing a pi exploit/crash
    By Boosie_ in forum Snippets
    Replies: 12
    Last Post: 01-06-2012, 04:55 PM
  4. Replies: 16
    Last Post: 04-12-2011, 10:10 PM
  5. How do I fix unhandled packets?
    By DallasTGM in forum Help
    Replies: 6
    Last Post: 01-01-2009, 11:11 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
  •