2. C++ anti-cheating against actual combat (advanced - 15. How to fight against OpenGL-type perspective cheaters)

  In the previous chapters, the principle and code snippets of the OpenGL32 type cheater have been analyzed, and here we will introduce how to deal with some of them.


1. Inline hook hook filtering

  Usually we need to HOOK those key OpenGL API functions, because these functions are not allowed to be called anywhere except in the game engine. The previous chapter also described how to HOOK, so we won’t say too much here Repeat these code fragments, and review the previous articles "7. Function hook inline Hook and confrontation method" and "10. Cheater principle analysis of OpenGL actual combat perspective, map highlighting, anti-flash bombs, anti-smoke bombs" , "11. Use ebp return address to detect illegal call function calls" and other articles are used for reference. The sample code snippet is as follows:

void new_glBegin(GLenum euMode)
{
	PDWORD	pebp;
	__asm m

Guess you like

Origin blog.csdn.net/wangningyu/article/details/123185017