02-06-2012, 11:37 AM
A Hook is a dll, that you write somewhere in the .exe files to load an dll. In another place of the code will will load the functions or mehods from the dll.
For example the server will receive some packets.
Implementing a Hook is simple just learn how to use LoadLibrary function.
//at initialization
push "my.dll"
call Kernel32.LoadLibrary
Using the dll will be:
switch(packet){
case 10:
do something;
...
default:
launch your function
}
; my.myfunction is an address(the packet will be process by the function)
push packet_size
push packet_offset
call my.myfunction
More info about the load library:
2

