Solved

VB Serious Problem

Posted on 2003-11-18
5
261 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?

751 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