Comments (6)
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.
@sharkitgood It definitely is; considering I am the one supplying the binary to the user running Windows 7.
My procedure is this:
- Start the process with
CreateProcessA
(started suspended). - Call
LoadLibraryA
inside it by creating a remote thread. The library that is being loaded contains the code I have attached. - 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.
Have you checked the return value?
from detours.
@appleman1232 any suggestions?
from detours.
@appleman1232 any suggestions?
try madcodehook,but it's not free
from detours.
There has been no further commentary on this question. Closing.
from detours.
Related Issues (20)
- Using Detours if either the .exe or the .dll is within a directory with unicode characters? HOT 12
- Hook on return
- This repo is missing important files HOT 6
- NMAKE failing at the end. HOT 4
- NMAKE failed HOT 1
- Windows 11 ARM64 Processor x86, x64 COM API Hook Crash.
- `detour_skip_jmp` for x64 doesn't support `rex.w` prefix
- Wiki is missing sample tracessl
- `detour_skip_jmp` for arm64 doesn't support unconditional branch HOT 1
- `detour_sign_extend` is implemented incorrectly
- Noting the Optimizations greatly influence the result
- return value of 'main()'
- Calling DetourCreateProcessWithDllsW crashes .NET applications compiled for Any-CPU
- Hook unexported functions HOT 5
- Hooking inline function HOT 1
- Incorrect Behaviour: Arm64 CopyLdrLiteral for non-SIMD inlines Pointer Read
- Incorrect Behaviour: Arm64 CopyLdrLiteral rewrites Prefetch as Memory Read, which can Trash a Potentially Used Register
- <BUG>crash on jmp addr? HOT 1
- contains invalid OMF record, type 0x21 (possibly COFF) HOT 3
- Unable to hook winsock2 recv() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from detours.