Is it possible for a program to alter it's own .exe? I would like to have some strings in the .data section but change them later and store them in the .exe so when it starts up the next time it will have the new strings already. I can do it using an .ini file but I don't like the fact that someone can delete the file and the program would not be able to access the strings which could render it useless.
Posted on 2001-10-06 14:10:42 by brewmanchu
Hi brewmanchu

Why dont you use read / write to registry?

It is not much more complicated than a .ini

Posted on 2001-10-06 16:33:13 by KetilO
I thought of that but the entries may get rather large and I am under the impression not to store large amounts of data in the registry. The strings may get rather large. Is there a limit to the amount of data stored in the registry?

BTW I really like RadAsm. Thanks for releasing it.
Posted on 2001-10-06 20:37:18 by brewmanchu
What size are we talking? M$ says "No more than 4kb", I'd say 256
bytes and we're talking configuration files. Not being able to read
files and such being uselse... well... that's how life is :). If you *REALLY*
want to modify your exe, you will have to mess with tricky shit
(create dummy exe with parameters, run it with special parm to
copy itself to "real" exe, and then run "real" exe with speciel parms
to delete "dummy" exe). Or even better, think of someway else :)
Posted on 2001-10-06 20:42:00 by f0dder
Hi brewmanchu, wizzard of beers..
If you're into virii then you beter search for the VDAT virii tutorials database. It's the best virii knowledge compendium known to man.
Don't have an url right now, but google around and you'll find it.


PS:If you lack the 'key.dll' just BPX loadlibrarya, f12 a couple of times and then RFLZ. :)
Posted on 2001-10-07 03:30:32 by latigo