Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 03:22

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Understanding TCP Packets

Discussion on Understanding TCP Packets within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2011
Posts: 7
Received Thanks: 0
Understanding TCP Packets

Good evening, I wondered if someone would be able to help with a few TCP packets I'm trying to decipher. In this case, as an example, it is swapping boots within a MMO;

When equipping boots #1 (three times);
Code:
04 00 A6 00 AA FE 44 67 
04 00 A6 00 C9 23 BF 82 
04 00 A6 00 0F B3 6F 56
When equipping boots #2 (three times);
Code:
04 00 1A 01 A5 D2 6D A9 
04 00 1A 01 96 B7 2B CC 
04 00 1A 01 F0 47 D5 9F
I believe the first value is the packet length (or similar) with values 2-4 being the "header"?;
Code:
04 00 1A 01 [B]A5 D2 6D A9[/B]
And the 3rd and 4th values related to the actual item being equipped;
Code:
04 00 [B]1A 01[/B] A5 D2 6D A9
However if I use WPE to modify the packet to equip boots #1 when boots #2 are clicked. e.g.

Code:
SEARCH:04 00 A6 00
MODIFY:04 00 1A 01
The packet is modified correctly, but the same boots are equipped so I think I am missing something within the last four values.

Could anyone offer some suggestions as to where I am going wrong, or what I need to do?

Thank you in advanced

From looking into the packets further it appears the first 4 values are "header" information. With the first value being the actual size of the "useful data". For instance, if a navigate my character with the left arrow key I get;

Code:
02 00 35 00 E5 42 
02 00 35 00 D5 99
The first four values are the same, and the latter two (the size of the "useful" information) are random, they appear to be some way encrypted, perhaps?

If I navigate right using the right arrow key;

Code:
02 00 31 00 D6 69 
02 00 31 00 EE C7
Any guidance would be awesome

As an update -

I'm told the packets are encrypt which leads me to believe the first four digits are indeed the header with the remaining the encrypted "important information". Could the 3rd digit be some kind of encryption key?
jayc89 is offline  
Old 09/12/2013, 23:33   #2
 
Saedelaere*'s Avatar
 
elite*gold: 1
Join Date: Mar 2011
Posts: 828
Received Thanks: 1,395
My guess:
Byte 1-2: length (without header)
Byte 3-4: opcode (command)
Saedelaere* is offline  
Old 09/13/2013, 09:12   #3
 
elite*gold: 0
Join Date: Feb 2011
Posts: 7
Received Thanks: 0
Quote:
Originally Posted by Saedelaere* View Post
My guess:
Byte 1-2: length (without header)
Byte 3-4: opcode (command)
Thanks Saedelaere, that would look about right to me.

The problem I'm having is the "interesting" part of the packet appears to be totally random (running the same command multiple time, produces different outputs) so it looks like it could be encrypted perhaps on timestamp?

A regular packet is transmitted back to the server which I thought was just a keep alive, but maybe the client regularly generates a new encryption key and this is sending it back to the server, or similar?
jayc89 is offline  
Old 09/13/2013, 12:01   #4
 
elite*gold: 1000
Join Date: Apr 2012
Posts: 1,003
Received Thanks: 208
Seems to be encrypted.
qkuh is offline  
Reply


Similar Threads Similar Threads
Understanding of packets
03/10/2013 - SRO Coding Corner - 3 Replies
Hello guys, Where can I find a documentation about the packet structure, and some info about it and the opcodes?
[Release] +5500 Packets structure , client/packets constants
10/07/2012 - CO2 PServer Guides & Releases - 10 Replies
edit : if u know nothing about packets go to this post first explaining what is packets , and explaining a packet with details and everything http://www.elitepvpers.com/forum/co2-pserver-disc ussions-questions/2162344-packets-packets-packets. html#post19074533 i start making my very own packet structure to use them on my new proxy but i thought of ripping them from the source so yeah the following packets is ripped of trinity base source right now im just providing the packets structure...
[Packets] Wie änder ich flyff packets?
07/16/2011 - Flyff Private Server - 19 Replies
HeyHo, Ich würde sehr gerne wissen wie man die Flyff Packets ändert... ich denke mal Zahlen ändern werden nicht ausreichen oder?
Understanding Packets with Dekaron.
03/16/2011 - Dekaron Private Server - 0 Replies
Hmk guys my name is devphoenix21, for those of you that don't know me i do freelanced development and do programming for fortune 500 companies for a living but beyond that point i would like to explain packets(in layman terms) Packets is a piece of data transfered between something and something. Examples of this in dekaron development would be moving killing a monster and boom DC. When this happens to you you're probably about to yank your hair out and cuss out your computer but with some...
Help understanding some ASM
01/18/2006 - General Coding - 0 Replies
I've collected the next batch of stupid questions i hope someone could help me shed some light on. Basicly im trying to enterpret some very helloworld'ish basic code written in c++ code(vs2005, console app). http://www.geocities.com/iamasciiart/hellow.JPG Truth be told, im fiddling with some codeinjection, evaluating different approaches, but i figure i'd get a little better at reading asm first. The idea of this statement "cout<<"address :"<<IAmMethodOne<<endl;" was to print the...



All times are GMT +1. The time now is 03:22.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.