~ruther/csharp-dll-injector

ref: f606b7433c934d799b2c94bf8caf1a6f3bd38c13 csharp-dll-injector/README.md -rw-r--r-- 872 bytes
f606b743 — František Boháček chore: add license 4 years ago

#Important

Only one function parameter can be passed. x64 processes aren't currently supported. (maybe just the dlls I tried to inject were the problem)

#C-Sharp dll injector

This is a simple C# dll injector. It can inject dll into remote process and execute functions of it.

#Examples

  • /examples/csharp-dllexport

    • Injection of C# library using DllExport
  • /examples/cpp

    • Injection of cpp dynamic library

#Getting started

  • To inject dll use Injector class, the Inject method will return InjectedModule with ExecuteFunction method
InjectedModule injectedModule = Injector.Inject("RemoteProcess", "MyDynamicLibrary.dll");
FunctionResult result = injectedModule.ExecuteFunction("Main");

int integerResult = result.To<int>(); // Primitive types are casted from IntPtr, Reference types are Read from pointer
  • See examples for more
Do not follow this link