has anyone completed or worked on injecting .NET application purely from .NET??
has anyone completed or worked on injecting .NET application purely from .NET??
How would you even do that? If the CLR isn't started, you can't get any CIL running inside the process.
[16:15:41] Cypher: caus the CPU is a dick
[16:16:07] kynox: CPU is mad
[16:16:15] Cypher: CPU is all like
[16:16:16] Cypher: whatever, i do what i want
you can check out what I have so far at
DigitalBodyGuard - DotNetasploit
ok how to inject .NET (this can be done to programs that are not running .NET but the focus is on program that are running .NET)
inject (however...)
locate CLR in target from C/C++
hook into it the Runtime from C/C++(different in pre and post .NET v4)
then load your .NET code again from C/C++
*locate CLR in target (or spin one up if none exist) - this is not what I'm working on but easy to do
Aha. I thought you wanted to inject a .NET assembly purely from .NET without the CLR running in the target process and without injecting a native dll. That is impossible AFAIK.
I think you can inject a C++/CLI module into a process and the CLR will be loaded for you if it's not already running. That way you can do everything in a managed way.
[16:15:41] Cypher: caus the CPU is a dick
[16:16:07] kynox: CPU is mad
[16:16:15] Cypher: CPU is all like
[16:16:16] Cypher: whatever, i do what i want
Just a goal in search of a ball
so I have yet to find a end to end .NET injection system so I'm going to try to make one
ok so step one to ask the injecting gods:
I can inject a .NET DLL/EXE into a target process,
I need to activate my injected payload, I would like to do this from C#, I'm thinking crazy COM but I'm open to anyway this can be done
note: in the targets AppDomain not in the DefaultAppDomain
I have slammed my head into a wall for a while on this, its just our of my skill set