Comments (2)
The problem is that you have only included EasyLoad32.dll in the directory, you would also need to include at least Easyhook.dll and possibly EasyHook32.dll (might get away without this one as your injected assembly is likely the first that will need it and load from its location).
EasyLoad32.dll will load EasyHook.dll into a new AppDomain within the target process, and then load your injected .NET assembly.
from easyhook.
I think you misunderstand the problem here. The target's folder can even have the full set of binary files of EasyHook and it still throws the exception. When I say target, I mean it's the application I want to hook (not my application). You can try downloading my test project and see it in action. The Sub folder is created to mimic the situation in which there is a target application (TryExitingMe.exe) and an EasyLoad32.dll file (this file is just 0KB in my test project and does not need to be the actual EasyLoad32.dll included with EasyHook).
Now I think this should be fixed and not very little as I said. Think about this situation. The target application (we want to hook) is also an application using EasyHook, so there is a high chance that its main EXE file is in the same folder with EasyLoad32.dll
Now we have another application (used to hook the target) of course also using EasyHook to hook that target. The exception should surely throw then (meaning it cannot hook just because of a file named EasyLoad32.dll existing in the same folder with the target EXE file).
from easyhook.
Related Issues (20)
- -
- Hook stop in some messages HOT 16
- make the hooks permanent by modifying the binary HOT 1
- hook a non windows api function HOT 1
- EasyHook adding the executing dir to the system path HOT 3
- WOW64 barrier causing problem between release and debug builds
- Use EashHook to hook compileMethod of c# JIT, the program will crash HOT 3
- IpcServerChannel memory leak
- create and attatch blender crash
- Compilar Easyhook, code::block y dev-c++
- Injection DLL has exited, but EasyHook.dll is never released HOT 3
- Void hook skips original function causing crash HOT 3
- Hooking IDirect3DDevice9::CreateTexture fails HOT 2
- Add EasyHook as an embedded resource
- I don't understand how to send messages back in the tutorial HOT 3
- Error when loading a self-contained DLL
- i cant take target directx versions HOT 1
- App is cant taking without directx HOT 4
- Not Supported .NET Core delegate*
- Easyhook Native NuGet package dosn't work with newer build tools
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 easyhook.