Git Product home page Git Product logo

Comments (6)

sharkitgood avatar sharkitgood commented on June 23, 2024
IsCorrectItem_t g_real_IsCorrectItem = reinterpret_cast<IsCorrectItem_t>(0x005D4A2B);

Are you sure it's an identical executable on both platforms? If not, 0x5D4A2B isn't likely to point anywhere useful; you'd want to either specify the explicit address for each expected binary version, or provide a way to seek the correct address. Note this'll also be the case if the binaries you're detouring are updated at any point in future, if that might be something you want to keep track of.

from detours.

shavitush avatar shavitush commented on June 23, 2024

@sharkitgood It definitely is; considering I am the one supplying the binary to the user running Windows 7.

My procedure is this:

  1. Start the process with CreateProcessA (started suspended).
  2. Call LoadLibraryA inside it by creating a remote thread. The library that is being loaded contains the code I have attached.
  3. Resume the thread retrieved by CreateProcessA.

The address shouldn't ever change. It is an extremely old executable, 12 years old, that does not make use of ASLR.

I have asked a Windows 7 user to attach x32dbg to the process and what's going on. My library also changes memory at certain locations - it calls VirtualProtect to change page protection, then writes to the pointer. That also works on the Windows 7 system. However, the detours just don't work.

from detours.

sylveon avatar sylveon commented on June 23, 2024

Have you checked the return value?

from detours.

shavitush avatar shavitush commented on June 23, 2024

@appleman1232 any suggestions?

from detours.

wineggdrop avatar wineggdrop commented on June 23, 2024

@appleman1232 any suggestions?

try madcodehook,but it's not free

from detours.

dtarditi avatar dtarditi commented on June 23, 2024

There has been no further commentary on this question. Closing.

from detours.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.