在 C# 中的另一个进程内存中搜索特定字符串(或字节数组)的快速方法?
请发布一个工作源代码示例(或链接),说明如何在另一个进程内存中搜索字符串并获取匹配的偏移量(如果找到)。 游戏作弊工具的做法类似,它使用 ReadProcessMemory 在游戏内存中搜索值。
Please post a working source code example (or link) of how to search string in another process memory and getting offset of match if found. The similar way its done in game cheating utils which search for values in game memory using ReadProcessMemory.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
维基百科上的字符串搜索算法。
String searching algorithm on Wikipedia.
您可能需要研究内存映射文件作为在不同进程之间共享内存的方法。 您需要使用 Win32 P/Invokes 在 C# 中实现此功能,请参阅此 代码项目 链接,获取您可以改编的示例。
You may want to look into Memory Mapped Files as a way to share memory between separate processes. You'll need to use Win32 P/Invokes to implement this in C#, see this Code Project link for an example that you may be able to adapt.