954,499 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

creating exe from program

i have created an exe which shows a message
but the problem is i want to create another program
from which a person can enter his name, choose destination
and click create
after clicking create a new exe if made in the location he chose which has the name he entered for eg the program axcrypt create exe in which u enter the password the if decrypts it self i want something like that. A program that can modify, create and execute an exe

aksshe10
Light Poster
29 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

sorry buddy, but i cannot understand a word you are saying.

from this bit:
exe in which u enter the password the if decrypts it self i want something like that. A program that can modify, create and execute an exe
i think you mean a program which packs and encrypts another executable. is this right?i have created an exe which shows a message
but the problem is i want to create another program
um wtf?

shea279
Light Poster
43 posts since Mar 2009
Reputation Points: 10
Solved Threads: 1
 

Ok, so you want to create, modify and execute a BINARY FILE inside a program? That's a hard job...

Make yourself more clear...

If you want to execute other programs from a main problem, consider using Windows or Linux system calls for that. You can also use a script that will call the executable files.

GDICommander
Posting Whiz in Training
211 posts since Jun 2008
Reputation Points: 72
Solved Threads: 26
 

hey it is something like a sfx
i want a program to modfy another exe after adding custom data to it
like i have a program which says "hello world!" and another program which has an input field where i can enter "earth" and this(the second program) extracts and modify the first program to say "hello earth".

aksshe10
Light Poster
29 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

ahh i got your point!
First of all you need to create an exe which says hello world.
And than you should create another program that injects a dll into the first program which will add "hello earth".
The injection of the dll is pretty hard work...

laconstantine
Junior Poster in Training
70 posts since May 2007
Reputation Points: 10
Solved Threads: 1
 

thank god u got it right now please help me
thankx....

aksshe10
Light Poster
29 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 
shea279
Light Poster
43 posts since Mar 2009
Reputation Points: 10
Solved Threads: 1
 

thankx shea279 it was very useful
daniweb never disappoints......

aksshe10
Light Poster
29 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

i understood how to modfy data but how to add and extract data from it....

aksshe10
Light Poster
29 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

while it is running, or if it just a .exe file sitting on your computer?

shea279
Light Poster
43 posts since Mar 2009
Reputation Points: 10
Solved Threads: 1
 

Lets just simplify this to three methods:

One, create a resource file which the program will load. This is easily modifiable by external programs.

Two, use pipes and send something telling the program to use the following alternative data.

Three, open the executable, find the initialized data and overwrite it.

The first one is easy, but has to be done before execution; Second one may complicate things, if you do not think it through and design it as simple as possible; Third one is very involved and can drive you insane with things as simple as off-by-one errors.

MosaicFuneral
Posting Virtuoso
1,691 posts since Nov 2008
Reputation Points: 888
Solved Threads: 116
 

the file runs modifies data(the other exe) stored in itself the extracts it
or
the file runs extracts data(exe) then modifies the exe(extracted)

aksshe10
Light Poster
29 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

the file to be modified must be first extracted from the running exe the editing the extracted file while it is sitting

aksshe10
Light Poster
29 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

i hav t extract data from the exe while it is running....

aksshe10
Light Poster
29 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

Lets just simplify this to three methods:

Two, use pipes and send something telling the program to use the following alternative data.

Three, open the executable, find the initialized data and overwrite it.

The first one is easy, but has to be done before execution; Second one may complicate things, if you do not think it through and design it as simple as possible; Third one is very involved and can drive you insane with things as simple as off-by-one errors.

i want to know more about the second & third method....
thankx

aksshe10
Light Poster
29 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You