Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi,

I was wondering how to make this program that i downloaded...

an injector.exe(GUI) that will attach to a specified process then after attaching itself it can send input to that process.

It's like an injector and a dll in one.

Please can you give me idea how to make this?


Thank You very much
Posted
Updated 18-Aug-12 20:23pm
v2
Comments
Richard MacCutchan 19-Aug-12 5:22am    
You could try asking at the site that you downloaded it from. Without a lot more information about the code it is impossible to guess what the problem is.
pasztorpisti 19-Aug-12 6:02am    
First, I dont really understand why do you want to remote control an app without an injected DLL. Its possible but then you have to write at least the injectable part of the exe in offset independent assembly (well, the latter is not 100% true because it can be a DLL written in high level language and embedded into your exe and loaded "manually" to the target process but I havent seen anyone doing that elsewhere). So its possible to do that.
Second, you can not send input to a process, you can send input only to a window of a specified process, more accurately you can put an input event into the message queue of the thread that created the specified window. This task is pretty much beyond your knowledge and I'm afraid noone wants to work/code for you to solve this because its a very time consuming task. If you really want to do that you either learn everything starting from the basics and write it for yourself, or search for a ready-made solution - but chances are good you wont find one on the internet. Good luck! Or have fun if you start learning the howtos to do the job!
Ronni2013 19-Aug-12 12:59pm    
sorry i should have mention this, what i am talking about is a trainer for a game
its has a DLL (i forgot to mention)..its really an injector, if you replace the dll
with another dll.. it will inject that new DLL..but at same time it's a trainer it
can send whatever value you put in it(input box), it will send it to that process/game
i wish i explain a lot better but my english not that good and im still learning more about c
Thanks for the info i really appreaciate it

1 solution

You need the source code of injector.exe.
You have to compile it with relocations.
You have to modify the entry point function and add code to detect if you are loaded with LoadLibrary or launched using CreateProcess.

You could also study PE-COFF file format from Microsoft, create tools that will modify PE-COFF files, learn assembler, add a new section with code, relocations, etc and generate a new file. It can be done, but it will take you almost an year.

If you don't have the source code, the quick answer is NO.
 
Share this answer
 
Comments
pasztorpisti 19-Aug-12 6:12am    
Learning the stuff is very time consuming but fun. If you learn assembler then knowing the PE-COFF fileformat is needless, you just allocate memory in the target process and you write your offset independent code into that and you persuade a thread in the target process to execute your injected code. The injectable offset independent assembly can be written in C/C++ if you know how to load a DLL "manually" from your process to the target (without loadlibrary of course). One of my tips contains code for a similar task, but the code in that tip loads the dll to the current process from a file. Its straightforward to write one that loads DLL to a target process (if it uses only the kernel/user dlls) from memory and not from file, so you can write a DLL and embed it into your exe as data for later injection.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900