This is supposed to be a tutorial how to update packet.dll after a tibia client update.
There is two memory addresses that needs to be updated:
MEMORY_ADDRESS_Send_Pointer
-Use olly and load tibia
-Select: Search For -> All intermodular calls
-Find WS2_32.send
-Double click on the call to see the address we need
MEMORY_ADDRESS_Socket_Pointer
-Use olly and load tibia
-Set a breakpoint on WS2_32.send and run and login tibia until it breaks
-In olly step over the breakpoint to the return call right after and step into it
-Some lines before the current EIP there is a line with MOV ECX,DWORD PTR DS:[ADDRESS]
-The address is what we need
The source is in MASM so the masm compiler is needed (get it for free from: www.masm32.com), I use following command lines to compile it:
Code:
ml /c /coff /Cp c:\masm32\code\packet\packet.asm
PoLink /dll /export:SendPacket /export:XTEA /NOLOGO /MERGE:.data=.text /MERGE:.rdata=.text /MERGE:.reloc=.text /entry:DllEntry packet.obj
When you compile it yourself there are somethings you need to change.
First the path to ml.exe and PoLink.exe (you can use link.exe instead of PoLonk.exe if you wish).
Second is the path to the source.
I have zipped all files needed, including pics, source and examples. Its for an old version, 7.8 I guess.
Dark Pallys: I just disabled smilies in text so it wouldn't be confusing