I'm trying to program a self updating program that would just expand in place. I plan to use modules of code that will consist of instructions or resorces. Modules will be able to point to resource modules (it probably wont work because of compiler optimizations, but I'll worry 'bout that later), etc...but thats another story!
Bottom line, I need to know how to run code from memory.
I have truble describing what I want to do, but the following seems to make sense.
Let's say that I have a virus, a trojan. It waits for some data and than it executes it - load to memory and exec. I would like to know if you can execute .exe programs this way...some general info.
I'm wondering if the following would work (verlflow errors atm)
Mr. Obvious strikes again!:P
Yeah I know how it looks, and sadly its mostly used for that purposes - that's why I used a virus to describe what I need to do.
Please dont make me go postin' on chans:S Sick stuff there!
i dont understand what you are talking.. what data you want to execute??
you can use a couple of things to have a trojan or virus like behavior..
1. key loggers, trapping keys and sending it on network..
2. dll injections which let you control any process on windows.. you can even inject your dll into windows explorer and explorer or any process will get mad..
install services with a different name and they wont come in the task manager.
and the good thing is you don't have to implement them.. microsoft has done all the hard work. ;)
After some more research I came to see that this is not what I've been looking for, I cant do what I want to, not on OS level anyway.
So I ask how would you build a self updating program that could be loaded in parts - should I just use loads of dlls and one small exe? Is there a way I can store a dll in the exe itself?