Modifying exe files

Reply

Join Date: Jan 2007
Posts: 1
Reputation: rshaag is an unknown quantity at this point 
Solved Threads: 0
rshaag rshaag is offline Offline
Newbie Poster

Modifying exe files

 
0
  #1
Jan 1st, 2007
Am a novice so if my question is utter rubbish, I do appologize, but please try to help.

I wrote an application in which I declared a global array and initialized this array with uniquely identifiable data.

The application itsef does not alter the data at all, only reads it (and may print it).

OK. So I've got an exe file which can be run. No problems.

Now: I wrote another application which opens the above mentioned exe file, reads it bytewise and locates the exact offset where the identifiable array is in the exe file.

Once the location of the array is known by the second application, it overwrites the data in the array and closes the first exe file.

When I now try to run the first exe file, Windows does nothing...
(or does do something and does not inform anything)

Any ideas?
Thanks for any.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,273
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 378
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Modifying exe files

 
0
  #2
Jan 1st, 2007
How are you launching the executable?

Oh and by the way, editing an executable is real a pain. If you have access to the source code, it would be better editting it there and then recompiling it.

Other options may include using a hex editor to view the executable but that's not pretty.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Windows NT / 2000 / XP Forum


Views: 1082 | Replies: 1
Thread Tools Search this Thread



Tag cloud for Windows NT / 2000 / XP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC