flat assembler
Message board for the users of flat assembler.
Index
> Windows > saving settings |
Author |
|
veach1 19 Nov 2004, 07:32
I`m curious about saving settings not in the .ini but in the executable itself. Is there any possibility?
_________________ dream of mind creates a monster |
|||
19 Nov 2004, 07:32 |
|
Matrix 19 Nov 2004, 07:44
of course, but some anti viruses will track your code down. |
|||
19 Nov 2004, 07:44 |
|
Matrix 19 Nov 2004, 09:35
yeah, anti viruse used to track executables with crc32 or some hashing.
just reserve a variable, and then you might calculate the offset in your file, or you can simply modify unexecuted data after exe end, seek there, read/write, its a nice way to set up variables but be aware that some viruses do similar things even modifying itself entirely, so it will be hart to detect. |
|||
19 Nov 2004, 09:35 |
|
Reverend 19 Nov 2004, 20:26
Quote: I`m curious about saving settings not in the .ini but in the executable itself. Is there any possibility? If you meant saving in the executable currently run, so it's impossible. Windows won't let you open file for writing when it's put in memory, read-only mode is then activated. Although there are ways of fooling Windows in such situations, but these are meant only to be put in viruses You can always check some sources from 29A virii group |
|||
19 Nov 2004, 20:26 |
|
veach1 20 Nov 2004, 07:41
I saw some sources of selfdeleting executables. The way I think is to copy .exe at startup (for example with .exx extension), work out, save settings in the .exx file, before exiting delete the original and rename .exx into .exe. Or to make little supporting (controlling) program that`ll handle all the operation I described above.
|
|||
20 Nov 2004, 07:41 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.