Results 1 to 7 of 7

Thread: Run .EXE from Resource/Memory

  1. #1

    Thread Starter
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    Question Run .EXE from Resource/Memory

    Hi,

    A while ago there was a thread about being able to run a File embedded as a resource from Memory without extracting it to a temp location.

    I can't seem to find that thread... any ideas?

    *Before anyone asks, no it's not a virus, but I need to protect a file from being taken by 3rd party.
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



  2. #2
    Addicted Member
    Join Date
    Jun 2010
    Location
    The Keystone State
    Posts
    131

    Re: Run .EXE from Resource/Memory

    Data can be extracted from memory as well as from a temp file. A google search found some info you are looking for at the stack website.

  3. #3
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Run .EXE from Resource/Memory

    I thought we'd pretty much established that:
    1. Resources are fairly trivial to extract, so they offer little in the way of privacy or security.
    2. Doing this kind of thing is a huge red-flag to antivirus software, making it fail for most users.
    3. Since the primary use of such techniques is injecting malware and there is no significant legitimate reason for doing it we don't discuss such things here.

    I seem to recall some suspicious rationale like "I have to restrict this 3rd party software I'm using so people can't just use it themselves."

    If a vendor sells a software product subject to this kind of restriction they would provide some sort of enforcement mechanism like automated licensing to enforce it. Such a "reason" just leads to more suspicion about the motives behind this request.


    But perhaps you can tell us what you really need to accomplish. We might have more viable alternatives to suggest.

    If this is another "I don't want to use a proper installer" issue I have nothing more to offer. It just isn't worth the trouble to reinvent the wheel.

  4. #4
    Addicted Member
    Join Date
    Jun 2010
    Location
    The Keystone State
    Posts
    131

    Re: Run .EXE from Resource/Memory

    After reading dilettante's post, I'm thinking the original thread the OP asked for is in the trash for the reasons stated. I could not think of a valid reason for what was asked for.

  5. #5

    Thread Starter
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    Re: Run .EXE from Resource/Memory

    I am quite aware of the security issues this may cause with AntiVirus softs etc..

    But the idea here is that I have an App given to me by a 'COMPANY' which encrypts/decrypts things. SO I need to run my side of this through this tool. Yes currently I'm extracting it to a temp and running it through there, but we don't want this to pass to others/3rd partys etc..

    Yes I can hide the window etc.. but anyone smart enough would be able to obtain a copy of this tool etc.. so need to think of a smart way so it becomes un-obtainable.
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



  6. #6
    Cumbrian Milk's Avatar
    Join Date
    Jan 2007
    Location
    0xDEADBEEF
    Posts
    2,448

    Re: Run .EXE from Resource/Memory

    Doing what you are trying to do here is a bad idea for so many reasons. Even if you get it working I (imho) can see it causing problems down the line.

    Does the 'COMPANY' provide a *.dll or some such?

    Can you achieve the same using more trusted methods?
    W o t . S i g

  7. #7

    Thread Starter
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    Re: Run .EXE from Resource/Memory

    Does the 'COMPANY' provide a *.dll or some such?
    It is an .exe with a DOS prompt which accepts commands.
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width