Quote:
Originally Posted by mortu1
i get eror in line 24 "(push * * 0) this instruction can not be compiled" any1 can help me a bit there?
|
I had the same problem.
Use this code for the first code instead to make it work.
Code:
[ENABLE]
alloc(newmem,2048) //2kb should be enough
label(exit)
label(returnhere)
4240EC:
jmp newmem
returnhere:
newmem:
cmp [10046004],ff
je exit
mov [10046000],00
pushad
pushfd
push 00000000
push 10000000
push 10003500
push 02
call SetWindowsHookExA
mov [10046004],ff
popfd
popad
exit:
mov ecx,[ebp-0c]
pop edi
pop esi
jmp returnhere
UnhookWindowsHookEx:
ret 0004
[DISABLE]
4240EC:
mov ecx,[ebp-0c]
pop edi
pop esi
10046000:
nop
UnhookWindowsHookEx:
ret 0004