![]() |
| ||
| Dll Loader/Injector Hey guys im just wondering if any guys have any clue on building a DLL Injector/Loader As in, in a folder you have Blah.exe and Blah.dll when Blah.exe is run it injects the dll into a specified process (via blah.ini) Now i know i need to use LoadLibrary or CreateRemote Thread but i dont know where to start. Just wondering if you guys could get me started or point me in the direction of some examples. I've been searching on google for a while now and havnt come up with anything that is remotely helpful. Kind Regards FTProtocol |
| ||
| Re: Dll Loader/Injector You mean you want to write a program that injects a DLL into another already running program? As far as I know that can't be done because when the operating system loads a dll it adds the code in the dll to the address space of the program that uses it. Unless you write your own operating system that behavior won't be (easily) possible for you to duplicate. |
| ||
| Re: Dll Loader/Injector its been done in VB so i dont see why it cant be done in c++..... |
| ||
| Re: Dll Loader/Injector Quote:
|
| ||
| Re: Dll Loader/Injector #include <windows.h> Someone gave me this yesterday but it doesnt seem to work? i changed the dll name and process name but it doesnt inject. I dont really want to try and pull apart an example that doesnt work as well it may be all wrong and theres no point in learning something that is wrong. |
| ||
| Re: Dll Loader/Injector Quote:
I gave the code you've tried a test ride and it worked. The code for the .DLL that I injected is below ... BOOL APIENTRY DllMain( HANDLE hModule, Please note that the topic is non-trivial, so everything might not work out of the box. |
| ||
| Re: Dll Loader/Injector my DLL is working and i know that for sure because when i use an already posted and compiled dll injector it works. but heres the code so i definately its not injection the dll correctly or something like this. |
| ||
| Re: Dll Loader/Injector bump? |
| ||
| Re: Dll Loader/Injector Quote:
If not, then again, the example code you've posted, seems to be capable of doing the injection. So, I take that your DLL along with that example code, is doing something that breaks the injection or maybe you are erroneously expecting something to happen in your DLL. Really difficult to say anything more, not knowing a bit of your DLL's code. |
| All times are GMT -4. The time now is 6:01 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC