~ruther/csharp-dll-injector

ref: e50413122ffccc9a61f7f524bf7eb773084a41a6 csharp-dll-injector/README.md -rw-r--r-- 968 bytes
e5041312 — Rutherther Update README.md 2 years ago

I would advise to use https://github.com/Reloaded-Project/Reloaded.Injector/ instead of this.

#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