If you’ve got a game that’s going to be a Kong Challenge, here’s something I recommend doing–Block RAM edits.
Programs like (-removed-) can search for values stored in your computer’s RAM, and edit them. So basically, if I know my score is 50, I could change it to 50,000.
First, here’s how RAM edits work.
Your RAM has millions of values stored at all times, so manually flipping through them is not exactly an option. Instead you search for the values stored. You can’t look for a variable’s name, either. So instead of searching for “score,” the hacker would search for “50.”
Even then, there would usually be lots of variables stored in any program that happen to have the same value as what you’re looking for. The hacker searches for values that are 50, and then after increasing the score to, say, 55, searches again, and sees what value has both of those matching. Bingo, the hacker can change that value to whatever they want.
So, how do you stop that?
Obfuscation! (Good word!)
It means, more or less, encryption. The goal is to store a copy of your important variables, but to store this copy as an obfuscated version of the “real” variable.
For instance, you could have a function like this:
obfuscate=function(v) {
return(v*10-5);
}
And you would use it like this:
if (touchdown==true) {
score+=7;
obScore=obfuscate(score);
}
And then every frame (or every few frames), check:
if (obfuscate(score)!=obScore) {
//OMG TEH HAX0R
}
And there you go. It works because the hacker doesn’t know what to look for to find the obfuscated value, so he can’t change both of them.
Loading