Comments (2)
A few ways to approach this.
One that doesn't involve modifying the target folder whatsoever is as follows:
- Launch the Process Suspended (
CreateProcessW
+CREATE_SUSPENDED
). - Inject your DLLs.
- Resume the primary thread to start the process. (
procInfo.hThread
).
Only problem is this approach deadlocks during one of the initialisation steps with this specific library, so I wound up creating a simpler injector for another project that needed this sort of behaviour.
Was something related to grabbing the address of kernel32 IIRC.
from reloaded.injector.
I tried creating the process suspended and indeed ran into the deadlocking issues mentioned.
Rather than having to create another injector library, for my use case specifically I can probably 'inject' my CLR loader as a Vulkan layer and just pass in pfnNextGetInstanceProcAddr
to the entry point, then do hooking as usual. Theoretically I think that should work though I haven't tried it out yet. Just a bit disappointing that I can't do it the same way as the other graphics APIs.
from reloaded.injector.
Related Issues (13)
- Process.GetProcessByName() Inject Error HOT 1
- System.MissingMethodException: Method not found on injector initialisation HOT 3
- Allow to set bigger size for circular buffer HOT 1
- Injecting into.Net 6.0 HOT 1
- Error when injecting into CREATE_SUSPENDED process HOT 5
- What about run x64 code in the x86 process?
- Unable to find any other assemblies after injection
- [Suggestion] Provide Docs on Injecting DLLs HOT 9
- Feature: Add injection from embed resource (or from bytes) HOT 1
- Shellcode is imploding on wine/lutris. HOT 6
- WaitHandleCannotBeOpenedException "No handle of the given name exists"
- Eject doesn't unload injected dll from target process.
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 reloaded.injector.