how to load and execcute program in C

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chinkaara
    New Member
    • Apr 2010
    • 4

    #1

    how to load and execcute program in C

    i wrote a utility (name "pro.exe") in turbo C in which user need to enter password to run it. When user enters correct password this program("pro.ex e") extract another exe file ("hidden.exe ") into harddisk and execute hidden.exe. after executing hidden.exe this program delete hidden.exe file.

    my problem is that user can recover "hidden.exe " file through any data recovery software. my requirement is that i want to copy/extract "hidden.exe " file to memory instead of disk in order to prevent it to get it restored by data recovery software.

    I need any useful hint,idea, or a small program code to understand how to load any program into memory and execute through pointers..
  • donbock
    Recognized Expert Top Contributor
    • Mar 2008
    • 2427

    #2
    What is the purpose of this project?

    Comment

    • chinkaara
      New Member
      • Apr 2010
      • 4

      #3
      the purpose if this program is to provide realtime security to any password protected program in which programmer can run file from memory instead of disk. becuase its very easy to recover original program through any data recovery software. in otherwords u can say i want to run it on a dos bootable CD (not floppy) on a PC without harddisk and this CD doesnt have any ramdrive or any virtual drive

      Comment

      • newb16
        Contributor
        • Jul 2008
        • 687

        #4
        take a look at executable packers like upx.

        Comment

        • chinkaara
          New Member
          • Apr 2010
          • 4

          #5
          I shall be very thankful to those genius who try to understand my requirement first before making reply. I want sample program written in "C" to load and execute program from memory

          Comment

          • Banfa
            Recognized Expert Expert
            • Feb 2006
            • 9067

            #6
            Stangely enough everyone here has better things to do that your work for you.

            You have been given some pointers to software that already does the job for you which you can investigate.

            Personally I doubt it is possible to run a program from RAM on a modern PC unless you find some way to create a RAM disk. You might find it easier to extract the data to the hard drive and once finished make it unrecoverable which is likely to be easier in my opinion.

            BTW since you clearly do not want anyone to get there hands on your program exactly how do you plan to stop them reading it directly out of your original unpacker executable?

            Comment

            Working...