2 ms·
In games obscurity isn't really a thing. They are prime targets for memory scanning and getting extremely accurate results. Here's how to build a simple "bot"
by maldev 4y ago
In games obscurity isn't really a thing. They are prime targets for memory scanning and getting extremely accurate results.
Here's how to build a simple "bot" for any game in about 30 seconds.
Step 1, Scan memory for Hp using a tool like cheat engine.
Step 2. Since you know simple C programming, you know HP is kept in a structure, most likely the player structure. Look at surrounding memory and you'll have something like this.
struct LocalPlayer
{
INT32 CurHP;
INT32 MaxHp;
INT32 CurMana;
INT32 MaxMana;
Position Pos;
}
Step 3. Now you have a basic structure, how do you find what uses it? Well, you know what a getter setter is from your CS 101 class. So you set a HW breakpoint on Read for the hp, and a HW Breakpoint on Write for the hp. Now you have GetHp(); And SetHp();
Step 4. You also remember how linkers work from your Compilers class, so knowing this, just like the structure has similar variables in memory, the binary will also have similar functions next to eachother(Or you can use class/variable passing from your struct.). So Right below GetHp, is 99 % of the time going to be GetMana.
Step 5. Now you have your structures, and know what functions use it, so find the global variable or scrape how these functions get the address to update.
Step 6. Repeat for other players using exact same steps, congrats, you now have all you need for a wallhack, bot, or whatever you want.
So as we can see, no code is needed, no big brain hacks are needed. A cs 101 student can do this(And alot do, this is why cheats are filled with skids). And it's all done through super simple dynamic analysis. Games are different, since in a regular application, you won't be able to memory scan as easily.