Thread View: alt.msdos.programmer
3 messages
3 total messages
Started by Erno Csanyi
Sun, 10 Mar 1996 14:25
Writing to a file??
Author: Erno Csanyi
Date: Sun, 10 Mar 1996 14:25
Date: Sun, 10 Mar 1996 14:25
9 lines
813 bytes
813 bytes
Hey, everyone! I was wondering if there is any way to write data to an EXE file (or COM, preferably EXE) and still have the file work. You know, like for copy protection and all. I AM NOT WRITING A VIRUS, for all you concerned people. So if you do know how, or if there is a FAQ, a program, or other type of resource, please tell me. TIA (Thanx In Advance) :) - omega@inforamp.net
Re: Writing to a file??
Author: Alexander J Russell
Date: Sun, 10 Mar 1996 17:30
Date: Sun, 10 Mar 1996 17:30
20 lines
1467 bytes
1467 bytes
In article <4huop2$fif@sam.inforamp.net>, omega@inforamp.net says... > >Hey, everyone! > >I was wondering if there is any way to write data to an EXE file (or COM, >preferably EXE) and still have the file work. You know, like for copy >protection and all. I AM NOT WRITING A VIRUS, for all you concerned people. So >if you do know how, or if there is a FAQ, a program, or other type of >resource, please tell me. TIA (Thanx In Advance) :) > >- omega@inforamp.net Just append the data to the end of the EXE. Dos reads the EXE header to figure out where to load stuff. Appending to the end will do no harm. You can then find where your data starts, by 1] decoding the EE header or baking the last 4 bytes of data you append the length (in a long int) of the original EXE. -- The AnArChIsT! Anarchy! Not Chaos! aka Alex Russell alexad3@iceonline.com
Re: Writing to a file??
Author: n5371200
Date: Fri, 15 Mar 1996 15:22
Date: Fri, 15 Mar 1996 15:22
20 lines
1321 bytes
1321 bytes
In article <4huop2$fif@sam.inforamp.net>, omega@inforamp.net (Erno Csanyi) says: > >Hey, everyone! > >I was wondering if there is any way to write data to an EXE file (or COM, >preferably EXE) and still have the file work. You know, like for copy >protection and all. I AM NOT WRITING A VIRUS, for all you concerned people. So >if you do know how, or if there is a FAQ, a program, or other type of >resource, please tell me. TIA (Thanx In Advance) :) > >- omega@inforamp.net Yes, this is possible as long as you make sure you write code and data to the correct spaces in the file. If you are going to change any code in an already compiled file, I would suggest you use Borland's Turbo Debugger to find out where the code should be inserted, and write down the hex codes for the code you want to insert. Then you can use any disk editor to change the code you want to modify. Dan
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads