![]() |
|
|
#4 |
|
Архивный участник
Join Date: Aug 2005
Posts: 113
|
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. |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|