Good evening! Is it possible to change the value of some variable to another in an already compiled program without recompilation and save it in the same .exe file?
- I personally do not understand what it means to save in the same .exe file .. <br> Well, yes, the essence of the comment is not in this, the question is different - WHY DO YOU IT? - Zowie
- You just need to complicate the cipher and I want the value of the variable to change to false after 3 attempts, for example, and the program does not start. - LapinioZX
- oneLazy to write a "ballad", I will write shortly - dig in the wrong direction ... - Zowie
- Of course, this approach is not entirely successful, but if we add to it the system configuration? I want to do this as an extra protection for not always persistent algorithms. - LapinioZX
- "save"? What you have described is easily bypassed by creating a copy of a still unlocked version of the program. - Vladimir Gordeev
|
2 answers
If we are talking about a constant that is firmly stitched into a binary, then it can be changed by patching the binary to the desired value, determining the place in the exe-file where it is located.
- Well, it is not constant, but mb is changeable with time. - LapinioZX
|
Yes. For example, the numeric variable is a.
We change it for example through edit:
a:= StrToInt (edit1.text);
And then save this value using the ini file and unload it when you start the program. I hope how to do ini do not need to write. The Internet is full of tutorials.
The goals of such shnyagi can be different - for example, through such variable cartridges I save in my game.
- and where is "in the same .exe file"? :) - Zowie
|