Exetools

Exetools (https://forum.exetools.com/index.php)
-   Community Tools (https://forum.exetools.com/forumdisplay.php?f=47)
-   -   LHook: Local Api Hooker coded in MASM! (https://forum.exetools.com/showthread.php?t=19116)

CodeCracker 01-31-2019 01:10

LHook: Local Api Hooker coded in MASM!
 
1 Attachment(s)
LHook:
Local Api Hooker coded in MASM!

LHook.asm start contains all examples you will need on the wild:

start:
invoke Hook, ADDR UserModuleName, ADDR MsgBoxApiName, ADDR MessageBoxTypeChange
; hook MessageBoxA api, ADDR MessageBoxTypeChange is the address called

invoke UnHook, ADDR UserModuleName, ADDR MsgBoxApiName
; unhook MessageBoxA api

CodeCracker 02-27-2019 15:59

Version 3 out
 
1 Attachment(s)
In version 2:
- Now you can hook an Api multiple times;
- Fixed jump/call instructions

Version 3 out:
- Now converts long jumps back to short jumps when possible
I opted for instructions fix-ups not backups.
Hopefully this is the final version if everything works like it should.

hp3 03-02-2019 01:18

external link
 
possible we have this in a external link
thank you

CodeCracker 03-06-2019 00:21

Alternatively you can get the source code from:
https://gitlab.com/CodeCracker/lhook
https://github.com/CodeCrackerSND/LHook
https://bitbucket.org/CodeCrackerSND/lhook/src


All times are GMT +8. The time now is 23:55.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX