-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement better DLL injection methods #113
Comments
So if I understand correctly, we want a function in RemoteInjector.cs that starts a specified process and then manually maps a specified DLL into the process? |
We want to implement a function to load a DLL into the process. There is an interface for a Module Injector which is used to call the actual injection method. The Module Injector Implementation here: https://github.com/unknownv2/CoreHook/blob/master/src/CoreHook.BinaryInjection/Loader/ModuleInjector.cs The Assembly loading code is accessed through the AssemblyLoader class here: Here is an example of a module being injected using it's filepath: The actual process we start is wrapped in a ManagedProcess handle: https://github.com/unknownv2/CoreHook/blob/master/src/CoreHook.Memory/ManagedProcess.cs#L7 The current injection method is implemented here: So I think that would be the best place to implement the actual injection code, because then we don't have to change anything as far as function calls. The .NET C# Process class is wrapped and passed to the ProcessManager here in the RemoteInjector: https://github.com/unknownv2/CoreHook/blob/master/src/CoreHook.BinaryInjection/RemoteInjection/RemoteInjector.cs#L34 You can modify the process creation code here if necessary: https://github.com/unknownv2/CoreHook/blob/master/src/CoreHook.BinaryInjection/RemoteInjection/RemoteInjector.cs#L85 |
If that's confusing, I understand as well... I really appreciate the help so I can answer any questions and I am very open to suggestions on how to better document everything or maybe how to better structure the code and projects to make it easier to understand. Thank you again! |
Once we get this DLL injection working I could definitely help you structure the codebase of this project better as well as help you with the documentation of the functions. |
We will use this issue for a discussion on implementing different injection methods for our libraries.
The text was updated successfully, but these errors were encountered: