The problem wasn't really about decryption of large packets it was about the IPC sending a packet to exe bigger than it could support causing a crash, I didnt get it, about the recv() thing what do you mean?Originally Posted by jeremic
The problem wasn't really about decryption of large packets it was about the IPC sending a packet to exe bigger than it could support causing a crash, I didnt get it, about the recv() thing what do you mean?Originally Posted by jeremic
i know that but what did u do so you dont debug if you hook before you login?? and in order to modify incommin packets you already have the pointer to the actualy buffer from the recv() hook *buf paramater. You must first return a call to the original recv() function in order to get the number of bytes recived. Then you can change your buffer, and you must return then modify the number of bytes you're going to return from ur hook because you changed your packet.
>> jeremic
no debugs xD, first of all im not sending packets as buf, i've made a ConvertDataToArray function and the len of the array variable is [0..8192] then... no more crash xDi know that but what did u do so you dont debug if you hook before you login??
My hook gets the packet information just like it is, its not changed, when u see a walk packet like 01 00 66(blackd,packet.dll) its not the packet that your TibiaClient will send to gameServer if you send it tibia will crash, the real packet is something like that 08 00 01 00 66 00 00 00 00 00 but for example on packet.dll you will send 01 00 66 and he will handle that and then send to Tibiaand in order to modify incommin packets you already have the pointer to the actualy buffer from the recv() hook *buf paramater. You must first return a call to the original recv() function in order to get the number of bytes recived. Then you can change your buffer, and you must return then modify the number of bytes you're going to return from ur hook because you changed your packet.
you wil find more information about that here:
http://tpforums.org/forum/showthread.php?t=1820
I hope i didnt misunderstand your doubts =S
Hi, who have full hook? Here links are no active.
Please reactive link i very need that.
Thanks in advance.
There's no need to, this thing is very old. Maybe you can find the old attachment in www.tpforums.org/attachmentsOriginally Posted by Piter17
I've find there many networkmessage classes, and projects hooking WinSock.
Only look at attachments of size 100 kb +