Reloaded-Project / Reloaded.Injector

C# DLL Injection Library capable of injecting x86 DLLs to x86 process from x64 processes.
GNU Lesser General Public License v3.0
159 stars 32 forks source link

System.MissingMethodException: Method not found on injector initialisation #10

Closed Nickert1337 closed 2 years ago

Nickert1337 commented 2 years ago

Reloaded.Hooks 4.0.1 Reloaded.Injector 1.2.4 .NET version = .net5-windows

Project using: Omega.zip

I'm trying to inject a .NET library into a unmanaged process (x86) and spawn a console. Everything including DllExport should be setup correctly but when I try to construct the injector:

var p = Process.Start(@"C:\Development\Tools\PE-bear_0.5.5.2_x86_win_vs17\PE-bear.exe"); var inject = new Injector(p);

An error occures:

System.MissingMethodException: Method not found: 'Reloaded.Memory.Buffers.PrivateMemoryBuffer Reloaded.Memory.Buffers.MemoryBufferHelper.CreatePrivateMemoryBuffer(Int32, Int64, Int64, Int32)'. at Reloaded.Injector.Shellcode..ctor(Process targetProcess) at Reloaded.Injector.Injector..ctor(Process process) at <Program>$.<Main>$(String[] args) in *****:line 19

When I'm using version 3.0.0 it does inject...

Sewer56 commented 2 years ago

This is probably related to the fact I recently refactored Reloaded.Memory.Buffers to use unsigned addresses throughout the entire API which broke libraries which depend on the existing APIs.

i.e. Reloaded.Hooks 4.0.1 is pulling a more recent version of Memory.Buffers with the new API.

Lemme quickly update the library to bump the dependency version and fix up any compilation issues.

Sewer56 commented 2 years ago

I fixed it, give it a bit (10-15 mins) for the build to go through CI/CD and then be validated on NuGet.

Please note that I don't actively develop this library. I originally wrote it for Reloaded-II, the approach and functionality are cool, but it doesn't work for suspended processes, which kinda sucks, so I replaced it with something simpler.

I think DLL injection without spawning separate temporary processes is cool, so I kept this library as it was originally around.

Nickert1337 commented 2 years ago

It suits my needs and works perfectly. Thanks for looking at it and fixing it. You can close this issue!