保存地址在C + +黑客游戏代码? [英] Keeping address in C++ hacking game code?

查看:152
本文介绍了保存地址在C + +黑客游戏代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个代码,在游戏中编辑地址以获得无限弹药,什么不是,我发现地址是不同的每个计算机,有时每次重新启动游戏,我将如何管理使这项工作

I have this code that edits addresses in a game to get unlimited ammo and what not, and I found out that the addresses are different for every computer, sometimes every time you restart the game, so how would I manage making this work still even though they change.

推荐答案

如果您得到的是您要查找的地址,然后在内存中搜索该地址找到指向该数据的指针的地址,然后在内存中搜索 地址,以便您可以找到指向它的指针的地址,等等,您可能最终找到一个地址不变。然后,在运行时,您可以使用它作为起点,解除引用以找到您要找的位置。当然,这一切都取决于数据如何在内部布局。它可以变得非常复杂。

If you get the address you're looking for, and then search for that address in memory to find the address of the pointer to that data, and then search for that address in memory so you can find the address of the pointer to it, and so on, you may eventually find an address that does not change. Then, at runtime, you can use that as a starting point and dereference it to find the location you're looking for. Of course, that all depends on how the data is laid out internally. It can get very complicated.

这篇关于保存地址在C + +黑客游戏代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆