Solved

VB Serious Problem

Posted on 2003-11-18
5
260 Views
Last Modified: 2010-04-17
I want the source code for extracting and running an exe file from memory (ram). Few wrapping app's use this method
0
Comment
Question by:sriharish
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 22

Expert Comment

by:cookre
ID: 9776314
If I understand you correctly, you want to find an exe as it resides in RAM?
0
 
LVL 1

Author Comment

by:sriharish
ID: 9776383
Thats Right
0
 
LVL 9

Accepted Solution

by:
bhagyesht earned 250 total points
ID: 9776404
0
 
LVL 22

Expert Comment

by:cookre
ID: 9776591
If one could freeze RAM at the instant just before a EXE gets control, it MIGHT be possible to reconstruct something similar to the original disk copy of the EXE, but it's unlikely.  It would be possible with a .COM file, since that's an image file, but an EXE is far from an image file.

For example, some memory allocation and initialization is performed by the OS as part of the load process.  Once the loading is complete, you wouldn't be able to tell if a particular address range was originally valued in the EXE of if it was allocated by the OS by virtue of a res.  Shoot, even the starting address doesn't appear in RAM - that's obtained by the OS from the original EXE and control simply passed there after loading is complete.

Now that I've thought about it, I'd say you won't be able to reconstruct an EXE file from what you find in RAM.

0
 
LVL 9

Expert Comment

by:bhagyesht
ID: 9776620
"I'd say you won't be able to reconstruct an EXE file from what you find in RAM" I agree with you cookre. besides in windows it may not be loaded at the one go conideering dlls and other issues
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question