The fish trap exists because of the fish.
Once you've gotten the fish you can forget the trap.
The rabbit snare exists because of the rabbit.
Once you've gotten the rabbit, you can forget the snare.
Words exist because of meaning.
Once you've gotten the meaning, you can forget the words.
Where can I find a man who has forgotten words so I can talk with him?
There are two types of tragedies in life. One is not getting what you want, the other is getting it.
If you wake up at a different time in a different place, could you wake up as a different person?
Jabberwock (08-29-2012)
Yeah MSDN itself doesn't deal overly much with the nitty-gritty of the PE/COFF specification, but to their credit, Microsoft did provide one hell of a document detailing pretty much everything about the PE/COFF specification. Of course, you're likely to need other sources to clarify a few issues and also to dumb-down some of the overwhelming amount of knowledge present in that document (Matt Pietrek is a life saver, basically strips out all the important parts of the PE that you need to know about).
The fish trap exists because of the fish.
Once you've gotten the fish you can forget the trap.
The rabbit snare exists because of the rabbit.
Once you've gotten the rabbit, you can forget the snare.
Words exist because of meaning.
Once you've gotten the meaning, you can forget the words.
Where can I find a man who has forgotten words so I can talk with him?
First, I did like to thank you, I'm really thankful you are helping me.
From my point it isn't simple as you say, although I'm too nooby to say that.
The things I understand now are:
1. With your code I don't need to write the file to the hard disk, that's because I can take the resource and write it to the current process memory, from that point PE Loader will do his work.
I do that with these functions: FindResource, LoadResource, CreateFile, CreateFileMapping, MapViewOfFile. With these to just close: UnmapViewOfFile, CloseHandle.
2. I need to change things in your code to make it write to a remote process cause now it just load the dll to the current process.
------------
I think I got it wrong in 1. Which functions do I actually need to use?
Last edited by Jabberwock; 08-28-2012 at 11:15 AM.
Even familiar landscapes will
reveal a different kind of beauty
if you change your viewpoint.
Where these new encounters
and new bonds will lead you...
Such dazzling golden days.
I, too, look forward to
what I might behold.
There are two types of tragedies in life. One is not getting what you want, the other is getting it.
If you wake up at a different time in a different place, could you wake up as a different person?
Jabberwock (08-29-2012)
Lol, at time you wake up I'm going to sleep... That's sad.
You already writed most of the code, and I only have to change a part of it, but it saddens me that I'm unable to do even that.
The problem is that when I use google to find information it seem irrelevant, and MSDN isn't really user friendly.
What are your main websites you use to search for info?
Last edited by Jabberwock; 08-28-2012 at 04:13 PM.
Even familiar landscapes will
reveal a different kind of beauty
if you change your viewpoint.
Where these new encounters
and new bonds will lead you...
Such dazzling golden days.
I, too, look forward to
what I might behold.
No worries, here is the download to the later version (should work with remote injection from memory, what you need):
https://www.mpgh.net/forum/31-c-c-pro...ule-final.html
Most of my soures are from Peering Inside the PE: A Tour of the Win32 Portable Executable File Format and other articles I found around MSDN. As Jason suggested, you can also refer to the manual.
There are two types of tragedies in life. One is not getting what you want, the other is getting it.
If you wake up at a different time in a different place, could you wake up as a different person?
Jabberwock (08-29-2012)
Works perfectly fine and really well made!
Thanks a bunch. That's really awesome bro.![]()
Last edited by Jabberwock; 08-29-2012 at 07:56 AM.
Even familiar landscapes will
reveal a different kind of beauty
if you change your viewpoint.
Where these new encounters
and new bonds will lead you...
Such dazzling golden days.
I, too, look forward to
what I might behold.