/MemoryPEInjectorNetFx

A .NET Framework wrapper for [MemoryPEInjector](https://github.com/TishSerg/MemoryPEInjector)

Primary LanguageC++

Memory PE Injector .NET Framework Wrapper

This library wraps MemoryPEInjector C++ class into .NET Framework DLL, so you can use it in your .NET projects.

Usage

Add dependency to your project and use as follows:

byte[] peFile = File.ReadAllBytes(peFilePath);
MemoryPEInjector.PEInjector peInjector = new MemoryPEInjector.PEInjector();
unsafe
{
    fixed (byte* ptr = peFile)
    {
        peInjector.Inject(ptr);
    }
}