jmp hooking

Posts 14 of 4 · Page 1 of 1
jmp hooking
Code:
void hook (DWORD from, DWORD to)
{
__asm
{
push 40h
push 1000h
push 4h
push 0
call VirtualAlloc
mov [oldProt], eax
push eax
push 40h
push 5h
push from
call VirtualProtect
push eax
push edx
mov edx, from
mov eax, to
sub eax, edx
sub eax, 5
mov [from], 0E9h
inc from
mov [from], eax
pop edx
pop eax
ret 8
}
}
not working... anyone can help?
What are you trying to hook?
Quote Originally Posted by DeadLinez View Post
What are you trying to hook?
It's a generic hook by the looks of it.
Posts 14 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?