Thread: 525 -- how to dump packet and frame ids from client?

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 525 -- how to dump packet and frame ids from client? 
    Registered Member jigar's Avatar
    Join Date
    Aug 2008
    Posts
    723
    Thanks given
    0
    Thanks received
    6
    Rep Power
    15
    ok i would like to know how to get packet ids from a client? please can someone help me out with this. rep++
     

  2. #2  
    Donator

    iZAjz's Avatar
    Join Date
    Mar 2007
    Age
    26
    Posts
    3,675
    Thanks given
    105
    Thanks received
    47
    Rep Power
    1882
    You have to look for the structure's within the specific class file if im right
     

  3. #3  
    Registered Member

    Join Date
    Sep 2008
    Posts
    2,156
    Thanks given
    3
    Thanks received
    2
    Rep Power
    182
    Quote Originally Posted by xGTest View Post
    You have to look for the structure's within the specific class file if im right
    packetparser if I am correct. and you dont dump them. you look at their structure then create a server side structure for it. (usually containing it "talking" to the stream class)
    [Only registered and activated users can see links. ]
     

  4. #4  
    Registered Member jigar's Avatar
    Join Date
    Aug 2008
    Posts
    723
    Thanks given
    0
    Thanks received
    6
    Rep Power
    15
    ok can you show me how to do this by giving me examples lol
     

  5. #5  
    Registered Member Bitlord44's Avatar
    Join Date
    Jul 2008
    Posts
    603
    Thanks given
    20
    Thanks received
    34
    Rep Power
    62
    Quote Originally Posted by jigar View Post
    ok i would like to know how to get packet ids from a client? please can someone help me out with this. rep++
    i need the same help =P
    Remember, there's always an asian out there that can do something better than you.
     

  6. #6  
    Registered Member
    Serenity's Avatar
    Join Date
    Oct 2008
    Age
    32
    Posts
    2,327
    Thanks given
    43
    Thanks received
    43
    Rep Power
    389
    you find a packet clientside and you wanna know what it does right?

    you see it request a Dword and an int

    then create a method that create's a frame

    and that writes a dword and an int.
    ten you see what happens.
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]

     

  7. #7  
    Registered Member
    Kelvin's Avatar
    Join Date
    Jun 2007
    Posts
    1,433
    Thanks given
    48
    Thanks received
    33
    Rep Power
    269
    Quote Originally Posted by Gods army View Post
    packetparser if I am correct. and you dont dump them. you look at their structure then create a server side structure for it. (usually containing it "talking" to the stream class)
    Like

    serverSide > clientSide

    writeLEShortA > readLEShortA

    This is what gods army means with 'talking'

    Code:
    if (Class36.packetOpcode == 177) {
    			int i_166_ = Class94.aClass30_Sub25_Sub1_1546.readByte(i ^ 0x9f);
    			int i_167_ = Class94.aClass30_Sub25_Sub1_1546.readByte(255);
    			int i_168_ = Class94.aClass30_Sub25_Sub1_1546.readShort(false);
    			int i_169_ = Class94.aClass30_Sub25_Sub1_1546.readByte(i + 159);
    			int i_170_ = Class94.aClass30_Sub25_Sub1_1546.readByte(255);
    			Class1.method64(i_168_, i_169_, 100, i_170_, i_166_, true, i_167_);
    			Class36.packetOpcode = -1;
    			return true;
    		}
    You see the readStreams right.?

    Now you use the structures
    and make it like.
    Code:
    public void sendPacket177(int i1, int i2, int i3, int i4, int i5) {
    		player.getSession().write(
    				new StaticPacketBuilder().setId(177).addByte((byte) i1)
    						.addByte((byte) i2).addShort(i3).addByte((byte) i4)
    						.addByte((byte) i5).toPacket());
    Not that hard huh

    If you mean getting id's, client to server packets are easy to get because it will show when a packet send that is not handled.

    to get server to client packets, you have to pick random packets and compare them with 508/other packets.

    Or dump them from RS. but the packet opcodes changes every revision :/
    [Only registered and activated users can see links. ]
     

  8. #8  
    Registered Member jigar's Avatar
    Join Date
    Aug 2008
    Posts
    723
    Thanks given
    0
    Thanks received
    6
    Rep Power
    15
    still dnt get where to locate or convert into server side packet
     

  9. #9  
    Donator

    iZAjz's Avatar
    Join Date
    Mar 2007
    Age
    26
    Posts
    3,675
    Thanks given
    105
    Thanks received
    47
    Rep Power
    1882
    Quote Originally Posted by Bitlord44 View Post
    i need the same help =P
    We dont care you need, just dont post here if your not planning to help.
     

  10. #10  
    Registered Member jigar's Avatar
    Join Date
    Aug 2008
    Posts
    723
    Thanks given
    0
    Thanks received
    6
    Rep Power
    15
    Quote Originally Posted by Kelvin View Post
    Like

    serverSide > clientSide

    writeLEShortA > readLEShortA

    This is what gods army means with 'talking'

    Code:
    if (Class36.packetOpcode == 177) {
    			int i_166_ = Class94.aClass30_Sub25_Sub1_1546.readByte(i ^ 0x9f);
    			int i_167_ = Class94.aClass30_Sub25_Sub1_1546.readByte(255);
    			int i_168_ = Class94.aClass30_Sub25_Sub1_1546.readShort(false);
    			int i_169_ = Class94.aClass30_Sub25_Sub1_1546.readByte(i + 159);
    			int i_170_ = Class94.aClass30_Sub25_Sub1_1546.readByte(255);
    			Class1.method64(i_168_, i_169_, 100, i_170_, i_166_, true, i_167_);
    			Class36.packetOpcode = -1;
    			return true;
    		}
    ok so you have that yes. how do i know what that packet is for?

    and also....how would you change this ?

    Code:
    	if (Class36.anInt626 == 202) {
    	    Class145.anInt2522
    		= Class94.aClass30_Sub25_Sub1_1546.method946(22);
    	    Class137.anInt2430
    		= Class94.aClass30_Sub25_Sub1_1546.method951(false);
    	    for (int i_228_ = Class145.anInt2522;
    		 Class145.anInt2522 + 8 > i_228_; i_228_++) {
    		for (int i_229_ = Class137.anInt2430;
    		     i_229_ < Class137.anInt2430 - -8; i_229_++) {
    		    if ((Class30_Sub6_Sub3.aClass53ArrayArrayArray3859
    			 [Class103.anInt1768][i_228_][i_229_])
    			!= null) {
    			Class30_Sub6_Sub3.aClass53ArrayArrayArray3859
    			    [Class103.anInt1768][i_228_][i_229_]
    			    = null;
    			Class10_Sub1_Sub1.method140(i_229_, i_228_, (byte) 21);
    		    }
     

Page 1 of 2 12 LastLast

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
  •