如何在 Visual Studio 2008 中编辑值?
我正在制作一个 Visual Basic 2008 应用程序,并且希望能够更改特定内存地址处的值。例如,我想将内存地址0xB7CE50
处的值更改为100000
。有什么简单的方法可以做到这一点吗?
I am making a Visual Basic 2008 application, and want to be able to change the value at a particular memory address. For example, I want to change the value at Memory Address 0xB7CE50
to 100000
. Is there any easy way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我相信 Cody Beer 正在运行一个游戏,并正在寻找一个程序,例如 HxD 或类似的程序,这将允许他编辑主内存,以便他可以将游戏中的金钱数量更改为最大金额。 VS 是错误的工具。
I believe Cody Beer is running a game and looking for a program such as HxD or something similar which will allow him to edit the main memory so he can change the amount of money he has in-game to the maximum amount. VS is the wrong tool for this.
您通常只需使用调试器,并将要更改的变量放置在“监视”窗口中,然后只需键入新值。
看来您希望 .NET 程序能够修改另一个程序的特定内存地址。
据我所知,在 .NET 中没有办法做到这一点,而且在 .NET 之外也几乎没有办法做到这一点。正如我所建议的,您可以使用调试器来完成此操作。为了从程序中做到这一点,您的程序必须是一个调试器!
好消息是这是可能的。请参阅 Visual Studio 调试器扩展性。不要因为它似乎需要 Visual Studio 而推迟。您可能不知道的是,可以基于 Visual Studio 创建一个外观和行为完全像独立可执行文件的程序。
我相信还有一些方法可以通过使用 Windows SDK 中描述的 API 来“成为调试器”,但我不知道它们的文档在哪里。
You typically just use the debugger, and place the variable you're looking to change in the Watch window, then just type in the new value.
It appears that you want a way for a .NET program to modify a particular memory address of another program.
There is no way to do this with .NET as far as I know, and there's only barely a way to do this outside of .NET. As I suggested, you could do this with a debugger. In order to do it from a program, your program will have to be a debugger!
The good news is that this is possible. See Visual Studio Debugger Extensibility. Do not be put off by the fact that it seems to require Visual Studio. What you may not know is that it's possible to create a program, based on Visual Studio, that looks and behaves entirely like a stand-alone executable.
I believe there are also ways to "be a debugger" by using APIs described in the Windows SDK, but I don't know where the documentation for them is.
GUI操作很简单。
谢谢。
Its easy by GUI operation.
Thanks.
您将需要一个内存编辑器软件,例如 TSearch 等......
不确定 VS 是否可以实现。
You will need a memory editor software like TSearch etc...
not sure if that is possible with VS.