Windows NT4 堆栈和堆地址空间

发布于 2024-12-24 03:55:41 字数 281 浏览 4 评论 0原文

我正在尝试在 Windows NT4 的堆栈和堆内存中搜索整数值。该整数被另一个程序使用。

问题是我不知道栈和堆的地址范围,有没有办法找到这个地址空间的范围?

之前我尝试过使用 PSAPI(一个 Windows api)的 EnumProcessModules 函数在代码空间中搜索这个整数值。从这个函数中,我获得了包含程序模块的地址,然后我可以搜索这些地址以查找一些变量。这种技术适用于像扫雷这样的简单程序,但不知何故,它无法在更复杂的程序中找到任何有用的整数或变量。

预先感谢任何可以帮助我的人。

I'm trying to search for an integer value in the stack and heap memory of Windows NT4. This integer is used by another program.

The problem is I don't know the address range of the stack and heap, is there a way to find the range of this address space?

Previously I've tried searching this integer value in the code space by using EnumProcessModules function of PSAPI (a windows api). From this function, I get the addresses containing the modules of the program which I can then search through to find some variables. This technique works for simple programs like Minesweeper, somehow, it fail to find any useful integer or variables in more complex programs.

Thanks in advance to anybody who can help me with this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文