Skip to content

simple error with function "detour_skip_jmp" by Hook System function on Windows x64 #87

Open
@JohnWins

Description

hi,
function "detour_skip_jmp" does work for x86 api hook routine, but not ok for x64.
detours will not detect the inner function is a import vector or something after a long jmp.
So it does fail when hook a x64 function on that condition.

But also come up with a small patch for detour_skip_jmp.
https://cdn1.imggmi.com/uploads/2019/10/24/8a2798e183931867e343354ff3c746bd-full.png

x86_asm_code:
https://cdn1.imggmi.com/uploads/2019/10/24/7dfbcfd5408c4a327b871648f9cc3709-full.png

x64_asm_code:
https://cdn1.imggmi.com/uploads/2019/10/24/c8d92586582d0bc4b45e107f769ff9a6-full.png

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp-wantedThis issue / or pull request is up for grabs for anyone in the community to help.needs-author-feedbackThis issue / or pull request requires author feedback before more action can be taken.status-no recent activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions