(I asked this question in Gaming, but it was closed, and ppl suggested I ask about Stackoverflow. If this does not fit, please suggest a better place before closing it. Thank you.)
One common way to cheat in a game is to use a memory scan tool to track the value you want to change. However, another common way to cheat is to modify the binary.
For example, in the game you get +5 exp when you kill the enemy, and by changing 5-50 stored in binary format, you can get +50 exp. As far as I know, many cheats for iPhone work in a way that requires fixing the binary or using the HEX editor.
I am wondering how these hackers determine settings. What is a common method / tool to find out in which binary a particular value is located, and the corresponding offset? If it's a very unique ascii number or string, like 3219 or google.com , you can just find the HEX value, but what if it's a common value like 1?
source share