Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | RE: Loading EXE files directly from memory? |
|---|---|
| Date: | Tue, 05 Dec 2006 09:43:40 -0600 |
True, but in Microsoft Windows this is a harder task since the O.S. requires explicitly that the executable file is located on hard disk for it to be executed (i.e. processing the file headers to prepare the memory and load any external functions is done only from files stored on disk; a filename is a required parameter). But as usual, there are ways to overcome this restriction. For example, this article discusses 3 techniques that allows you to execute a program from memory without using Windows API functions (at least with Windows versions previous to Vista): http://www.codeproject.com/threads/winspy.asp Some wrapper programs like eliteWrap (also used to deploy trojans and other pieces of malware) will usually dump the binary to disk before executing it. The problem is that the executable will reside on disk and you won't be able to delete it while it is being executed (if you used the functions provided by the MS API). Cheers, Omar Herrera
-----Original Message----- From: listbounce@securityfocus.com [mailto:listbounce@securityfocus.com] On Behalf Of Peter Parker Sent: Monday, December 04, 2006 6:21 AM To: Jeroen; pen-test@securityfocus.com Subject: Re: Loading EXE files directly from memory? I had some similar problem in one of my previous unix requirement... What I did was to write a small code that would decrypt a binary directly onto a pipe which is further redirected to a shell. To give a command line analogy.. cat <file> | sh hth, On Mon, 4 Dec 2006 00:26:02 +0100, "Jeroen" <jeroen@isvet.nl> said:Hi there, I want to load an EXE file directly from memory, without writing it to disk first. Are there some good tutorials on the web about this? Or other interesting links/tips/hints? Thanks, Jeroen ------------------------------------------------------------------------ This List Sponsored by: Cenzic Need to secure your web apps? Cenzic Hailstorm finds vulnerabilities fast. Click the link to buy it, try it or download Hailstorm for FREE.http://www.cenzic.com/products_services/download_hailstorm.php?camp=701600 000008bOW-------------------------------------------------------------------------- peter peterparker@fastmail.fm -- http://www.fastmail.fm - Or how I learned to stop worrying and love email again ------------------------------------------------------------------------ This List Sponsored by: Cenzic Need to secure your web apps? Cenzic Hailstorm finds vulnerabilities fast. Click the link to buy it, try it or download Hailstorm for FREE. http://www.cenzic.com/products_services/download_hailstorm.php?camp=701600 000008bOW ------------------------------------------------------------------------
------------------------------------------------------------------------ This List Sponsored by: Cenzic Need to secure your web apps? Cenzic Hailstorm finds vulnerabilities fast. Click the link to buy it, try it or download Hailstorm for FREE. http://www.cenzic.com/products_services/download_hailstorm.php?camp=701600000008bOW ------------------------------------------------------------------------
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Re[2]: Generating awareness amongst IT staff, nick leachman |
|---|---|
| Next by Date: | Re: Loading EXE files directly from memory?, Esteban Lucena |
| Previous by Thread: | Re: Loading EXE files directly from memory?, Peter Parker |
| Next by Thread: | Re: Loading EXE files directly from memory?, Justin Ferguson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |