jmpews / Dobby

a lightweight, multi-platform, multi-architecture hook framework.
Apache License 2.0
3.93k stars 809 forks source link

No function to unhook #87

Closed ghost closed 3 years ago

ghost commented 4 years ago

I looked in the source and it seems like there no function to unhook, but there's already a InstructionBackupArray in the HookEntry, so a function that overwrite the trampoline with the original instructions and remove the HookEntry might do the work. Will something like this cause problems?