[C++][OLLY]Generate a function for an address

12/31/2013 20:28 Naworia#1
Hello again, I'm working on packet sending for an online game but it's not easy because the client generating headers every being send packets. So I was searching address where it is being generated from the client so I found it finally. Let's see it on CE Memory Viewer

[Only registered and activated users can see links. Click Here To Register...]

Green marked is header and yellow marked is packet id & size

As you saw, After it sends packets to the server, it is going to be "00 00 00 00"

[Only registered and activated users can see links. Click Here To Register...]

And I found it on OllyDBG:

[Only registered and activated users can see links. Click Here To Register...]

Red Marked is packet headers & id & size
Yellow is data(chat message yoho with unicode)

Problem is how can I recreate this header so how can I find the function that creates headers in the client?

After I found, how will I create function in C/C++ that doing samething with this function :)

Please share if you get any tutorials or tips.
01/02/2014 21:41 Luôô#2
Make a breakpoint there and see which function call it?