Execute an exe from memory

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • muquaddim
    New Member
    • Jun 2007
    • 11

    Execute an exe from memory

    Hi,
    I have some exe files. those are not .net assembly. just portable executable.
    Now I want to load those exes to memory. then i'll run it by C++.
    Also I want to load some dll files not .net assembly dll files to memrory and call methods/entry points from my C++ host application.
    My target is to distribute those portable exes encrypted. and I'll run it from memory after decrypting.
    many people told me about using C#.NET but mines are not assembly. AFAIK C# cant run portable executable. those are classic portable executable. Not the version 2.0.

    Please give me a suggestion.
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    I would suggest posting in the correct place in the future - I'll move this over to the Forum (from the Articles section) for you.

    Comment

    • muquaddim
      New Member
      • Jun 2007
      • 11

      #3
      Originally posted by sicarie
      I would suggest posting in the correct place in the future - I'll move this over to the Forum (from the Articles section) for you.
      oops! sorry.
      the article and forum menu are same. so i did the mistake.

      Comment

      • weaknessforcats
        Recognized Expert Expert
        • Mar 2007
        • 9214

        #4
        I think you have to use managed C++ and call CreateProcess() to run your .exe files and LoadLibrary to load up your dlls.

        Comment

        • muquaddim
          New Member
          • Jun 2007
          • 11

          #5
          Originally posted by weaknessforcats
          I think you have to use managed C++ and call CreateProcess() to run your .exe files and LoadLibrary to load up your dlls.
          Actually I want to execute a byte[]
          CreateProcess() does not support that.

          Comment

          • weaknessforcats
            Recognized Expert Expert
            • Mar 2007
            • 9214

            #6
            Originally posted by muquaddim
            Actually I want to execute a byte[]
            What is that? An array? You do not execute arrays. Please explain your intent further.

            Comment

            Working...