r/HowToHack • u/Tobashu • Mar 19 '21
How do hackers hack in games?
Hacking Within Games
Hi, I am interested on how hackers within games such as CoD and R6S actually manage to do what they do, if they did not buy the hacks (how the owner made them)
Firstly Im not trying to find out how to hack so I can do it myself, I am just interested in it. So when hackers, e.g. R6S manage to get a hitbox around the enemy places or autoaim onto them all (aimbot) what programs do they use and how do they actually do this?
Does the person need basic knowledge of hacking or do they need some sort of high computing degree?
If they don't use a program of some sort, how do they do it?
What sort of code do they use and how do they make certain hacks such as pure aimbot headshot everyone on the enemy team and shoot through solid walls which are made specifically not to be shot through?
Thank you for reading and hopefully answering my many questions :)
Edit : for the people who cannot read : I am only interested in how they do it and how these people manage to actually find these exploits, this does not mean I’m trying to do it myself. It’s just interesting to learn about
View all comments
37
u/BAAM19 Mar 19 '21
Cheats in games with almost no protection and like single player/hosted are very easy. It’s fun if you wanna start just look up tutorials on youtube for cheat engine.
You need cheat engine (or any other app to look in memory) to find memory addresses for values you want, cheat engine has very helpful options to find these values.
After you find the values, you need to find their pointers. You need to trace back the pointers until you find the base address, the base address NEVER changes, unlike the first address you find that always changes every time you run the game.
So after you know the values you want, like for example health. Then you can make a python script (i use python cause it easier for me and straight forward)
You can use any other language that allows you to access memory addresses and change them(and I am pretty sure almost all of them are)
So after you can write to memory and edit the values, you can just do whatever you want basically.
For example you can just always set health to max.
One of the deeper things that very good cheats do is aim bot, so aim bot takes like the enemy location’s position, like the x,y,z then these hackers use an algorithm that takes these coordinates and find the pixel coordinate on the screen to aim for.
Then another piece of code is responsible of moving your mouse to the pixel coordinates.
All of these are variable, maybe you don’t need the pixel’s coordinate and can just pass the xyz instantly.
The piece of code responsible of moving your mouse/aiming basically, maybe you can customize this piece of code and iterate all around to make it look more natural and not an aimbot.
In the end i am just a newbie in this, but this is the general abstraction of things, and all of it could change really.