microsoft / microsoft/Detours

hook c library function return 0, but not work by inject dll.

Open
#255 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
6.4k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

CrashDumpHelper.zip

I hook strcmp function success, and it take effect in app(.exe) code.
But it doesn't work if hook strcmp function in dll while inject the dll to app(.exe)

attachment is my code, could you please answer me? thks

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the attached CrashDumpHelper.zip and the code that hooks strcmp during DLL injection. Compare the injection path with the working hook in the application code, then reproduce the behavior in a minimal Windows test. Done means identifying why the DLL hook has no effect and confirming the corrected behavior in the target application.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
operating-systems, reverse-engineering
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.