Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 11.08.2006, 09:16   #4
Mayii
Архивный участник
 
Join Date: Aug 2005
Posts: 113
Default

fairly easy.
you send packets assembled like the standard L2 Format.
open cached in OllyDbg, search for referenced strings, and you'll have everything you need.
gonna give you a short example:
You get this referenced string:
0040FDCA . 68 40805000 PUSH Cached4p.00508040 ; UNICODE "static bool SendHomePacket(CAdminSocket* pSocket, const unsigned char* packet)"

now you scroll down a bit until you get to a call to the disassemble function,
0040FE73 . E8 D8F50200 CALL Cached4p.0043F450

now you look a bit up and find the formatter (it's the second argument to the function),
0040FE6D . 68 645C5000 PUSH Cached4p.00505C64 ; ASCII "dS"

packet formatter 'd' are 4 bytes, assembled to a 32 byte SIGNED integer.
packet formatter 'S' is a sort of PASCAL string. first 2 bytes (or 1 byte, don't remember now...) are the LENGTH (not the size as it is unicode!) of the string, the following bytes are the UNICODE string itself WITHOUT the typical c-string NULL end.

Edit: woop, forgot to say that the complete packet format is not only for example dS, but cdS, c being the packet ID.
Mayii is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:57.