CLR Injector Source

Posts 16–24 of 24 · Page 2 of 2
Not injecting my friend!
I mean when I compile your dll new, on anycpu and add a reference to my vb project which is anycpu too, I get an error, that the file couldnt be found or soemthing :/

EDIT: lol fixed it somehow IDK what wnt wrong, sorry guys
But awesome would be a x64 injector to inject in windows rpocesses like explorer.exe etc
Quote Originally Posted by Ch40zz-C0d3r View Post
Not injecting my friend!
I mean when I compile your dll new, on anycpu and add a reference to my vb project which is anycpu too, I get an error, that the file couldnt be found or soemthing :/

EDIT: lol fixed it somehow IDK what wnt wrong, sorry guys
But awesome would be a x64 injector to inject in windows rpocesses like explorer.exe etc
I said in the post to compile your project as x86. It will run fine on x64 as well, but the code is designed to be compiled as x86
Hmm for some reason it tells me even on a x86 pc that it can't inject
What exactly did it say?
Quote Originally Posted by Jason View Post
What exactly did it say?
Only an Injection Error: Error 0x26 Failed to inject CLR bootstrap
Quote Originally Posted by Traxful View Post
Only an Injection Error: Error 0x26 Failed to inject CLR bootstrap
You have the bootsrap dll inside your injection folder?
Did you link the right bootsrap version and did you compile under x86 to inject into a x86 process?
Quote Originally Posted by Ch40zz-C0d3r View Post
You have the bootsrap dll inside your injection folder?
Did you link the right bootsrap version and did you compile under x86 to inject into a x86 process?
Thats it! I've done everything what you said i compiled it in x86 and put all neccesary file in the same folder
hModule = WinAPI.RunThread(tempHwnd, LLW, pBootStr);
success = hModule > 0 && (pBootstrap = WinAPI.GetProcAddressEx(tempHwnd, hModule, "_BootstrapDll@20")) > 0;

The exit code reached by RunThread ends up being 0. So hModule > 0 fails. Cant get it to create the thread.
Hi, thanks for this.

Everything is working excellent for me, except:

1) When I call Inject it returns false, yet the target process is injected and the bootstrapper runs and loads my injected dll.
2) When i close my injected dll (that runs a winform), the target process stops working (blabla has stopped working).
3) If I inject a dll that doesn't run a winform, Inject returns true, but the injection doesn't seem to happen and the injected dll doesn't get unloaded. The traget process survives though.

Any hints as to what I'm doing wrong? I'm injecting a 32bit process and build for x86
Posts 16–24 of 24 · Page 2 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?