作弊引擎如何确定内存地址是否是静态的?(以编程方式)

时间:2016-01-15 14:47:37

标签: c++ windows memory

我已经做过一些关于确定地址是否是静态的研究。 StackOverflow的某人建议我可以通过监视所有内存分配来实现。但我想这不是Cheat Engine的原因,因为CE不需要在游戏之前启动。静态地址是内部内容在程序的不同运行中不会更改的地址。 EX。如果地址0x400000在游戏中存储角色的健康状况且该地址是静态的,则即使重新启动游戏,健康值也始终存储在该地址中。维基百科的定义:

 "Static memory allocation is the allocation of memory at compile-time before the associated program is executed,"

通常,函数的地址是静态的以及全局变量。另一篇帖子中有人说:

 ".data section, in which the .exe stores the address offset for the section so Cheat Engine just checks if the variable is in this address range (from this section to the next one)."

该方法可能能够检查全局变量。但是代码部分呢?

ps:任何内存分配函数(如VirtualAlloc)返回的地址都是动态的。另一个静态地址的例子是黑客游戏时的“基地址”。

0 个答案:

没有答案