473,480 Members | 1,523 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how to load and execcute program in C

4 New Member
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.exe") 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..
Apr 5 '10 #1
5 2698
donbock
2,426 Recognized Expert Top Contributor
What is the purpose of this project?
Apr 5 '10 #2
chinkaara
4 New Member
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
Apr 6 '10 #3
newb16
687 Contributor
take a look at executable packers like upx.
Apr 6 '10 #4
chinkaara
4 New Member
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
Apr 6 '10 #5
Banfa
9,065 Recognized Expert Moderator Expert
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?
Apr 6 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
13856
by: Trevor Fairchild | last post by:
I am making a program that categorizes pictures. The picture paths are stored in an Access Database, vb6 connects using adodc controls. This program works specifically with .jpg files. It will be...
3
4683
by: Arti Potnis | last post by:
Hi, I am trying to execute the DB2 load utility from a C program. lPid = fork(); execl(csExePath, csExeName,csCmd, NULL); the contents of the parameter variables are as follows:-
3
1644
by: Tomomichi Amano | last post by:
NEWBIE : I am making a program (pretty small). BUt somehow, it takes about 5 seconds to load the program. I wonder what kinds of objects or codes make program to load slowly.
5
3187
by: Jibu George | last post by:
Hi I'm developing a deployment package using Visual Studio.Net. I have a custom user interface with a text box. How can I load the text box with some data at run time. Thanks & Regards, JIB
1
1457
by: Jerry Bujas | last post by:
Can someone explain, please, why it takes for a vc++ project (form application) comprising three forms about four miniutes to load at 100% CPU usage? When it finally loads and I want to run the...
0
1862
by: Ryan Albarelli | last post by:
Here's one I've spent the last 6 hours trying to figure out... I have a CListCtrl derived class. The first time I click an item in the list to select it, I see a lot of multimedia dll's being...
2
1746
by: wsdcent | last post by:
Hi every one. I'm trying to read a xml file dynamically from mysql database . There is my actual code: It only works if the file is a local file or if is an absolute path. Whenever i try to load...
2
6547
by: David Thielen | last post by:
So we have moved our app from .NET version 2.X in IIS6 to a Windows 2008 Server running IIS7. We have copied all files to the Windwardreports\apps directory and that apps directory has been...
5
3365
seraieis
by: seraieis | last post by:
Good afternoon experts! I'm having trouble getting a dll to properly load. It loads on my machine, and even though the users who will be using the library have it on their machine, the program...
8
7772
by: martinsmith160 | last post by:
Hi everyone I am trying to create a simple wpf program that allows a user to select an image from a combo box and then where they click on th screen draw that image at the mouse co-ordinates. The...
0
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7044
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5337
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4779
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4481
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2984
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
181
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.