D
D
Dilored2020-11-16 22:22:01
Programming
Dilored, 2020-11-16 22:22:01

How to write anti-cheat?

Good day, I wanted to start writing anti-cheats or even cheats (even though I don’t like cheaters, maybe it’s interesting), so I started scouring how best to implement it, how to learn it in general, as a result, after looking through several forums, I realized that I need to learn C++, found a normal book, downloaded the program and started to learn, eventually reading the whole book, I realized that apart from the starting theory for beginners there was nothing there, I decided to google again, what was it like, I looked at opensource cheats, in the end I almost didn’t understand anything in them, there was what kind of work with memory and WINAPI, after googling a little, I didn’t find a single normal guide / book where they normally tell what it is eaten with, so we came to the essence of the issue, can you suggest books / guides
on working with memory and WINAPI? I will be grateful)

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
Mike, 2020-11-28
@Dilored

1) figure out how the cheat works
2) close this opportunity to him
On the example of CS: GO? There are various cheats, for example Wallhack, the ability to see through walls, and Autoaim, homing.
How does the cheat work schematically? Gets in some cunning way access to the memory of another program (CS), is able to find in it a piece that is responsible for the map and the position of the players on it. And modifies this memory so as to draw a line in the right place from the enemy player to yours. Or moves the cursor to the head of an enemy player and clicks (shoots) if he is in sight.
Obviously, for this you need to thoroughly understand the CS code, be able to access memory or modify the CS code. Still, perhaps, you can try to get some bonuses by intercepting and modifying network traffic.
Therefore, the work of anti-cheat comes down to three points: integrity control when, memory access control and traffic integrity control. Plus, the analysis of the player’s actions, for example, if he always hits the head and does it with the same reaction speed, this is a reason to look at him carefully.
Just keeping track of the list of banned programs seems like too much protection for such a popular game.

S
Saboteur, 2020-11-17
@saboteur_kiev

Before you can cheat or defend other people's programs, you should first learn how to write your own.
A cheat or anti-cheat is a program. Therefore, JUST learn how to program first, and then understand more deeply what exactly you want to implement. Because right now you can't even ask the right question.

X
xmoonlight, 2020-11-17
@xmoonlight

Can you suggest books/guides on working with memory and WINAPI?
here

C
CityCat4, 2020-11-17
@CityCat4

there was some work with memory and WINAPI,

This is both cheat and anti-cheat :) Cheat - unauthorized modification of the game state, anti-cheat - detection of this modification. To do this, you need to know how the game works - not from the point of view of the player, but from the point of view of the developer, because writing a cheat is actually looking for an error in the game that allows you to perform this modification (unless, of course, the game is imprisoned for mods).
Well, that is, the plan is this:
- learn to program
- learn to program well
- learn to understand the structures of games, resources, etc.
...
and in the end you can still write your own cheat for minecraft (well, or why are you going to write there - for counter?). That's just not the fact that it will be interesting to you :)
(there is a typical example - the story of the sorcerer in "Ruslan and Lyudmila, the same one who bewitched Naina)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question