Skip to content

Injection of managed code into non-managed Windows applications

Notifications You must be signed in to change notification settings

deadfoxwang/native-dotnet-code-injection

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

native-dotnet-code-injection

Injection of managed code into non-managed Windows applications.

Injects a native bootstrap DLL into the target process by calling LoadLibrary as a remote thread and then calls the initialization method of the .NET runtime (hosting API). After that, a .NET assembly is loaded into the default application domain and executed.

Projects

  • Injector: A native console application that performs the actual injection task.
  • Bootstrapper: The injected native DLL that provides the runtime initialization functionality.
  • CodeInject: A managed assembly written in C# that provides the code to be executed in the native application.

Test Projects

  • HostingTest: A native console application that starts the .NET runtime and directly executes the CodeInject assembly code.

About

Injection of managed code into non-managed Windows applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 80.9%
  • C# 13.5%
  • C 5.6%