Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to remove hook #57

Closed
ghost opened this issue Mar 7, 2020 · 0 comments
Closed

Error when trying to remove hook #57

ghost opened this issue Mar 7, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 7, 2020

Hi, i was trying out this library and for hooking it works really well, but it crash when i try to unhook, i tried to use this funtion from interceptor.cc
void Interceptor::RemoveHook(int id);
but it crash at the following instruction:
entry->StopHook()
i called it like this:
whale::Interceptor::Instance()->RemoveHook(id)
where the id is the index of the hook in the list
to create the hook i used
void WInlineHookFunction(void *address, void *replace, void **backup)
i tried to put log messages inside
void ArmInlineHook::StopHook()
but they weren't executed.
I tried to look the crash address in the library using ida pro, and it crash on the function call without even reaching the function.
This is the function call pseudocode:
(int *)(*(int (**)(void))(**(_DWORD **)v5 + 20))();
This is the assembly:

LDR             R0, [R4]
LDR             R1, [R0]
LDR             R1, [R1,#0x14]
BLX             R1
@ghost ghost closed this as completed Mar 13, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants