如何搜索字符串在内存中,而调试? [英] how to search for a string in memory while debugging?

查看:350
本文介绍了如何搜索字符串在内存中,而调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在一个程序中,我使用Visual Studio调试的记忆,搜索字符串2010年我尝试使用即时窗口要做到这一点,但每当我试图
(.S -A为0x400000 0x400200MyString的),它给我的错误
CXX0014:错误:缺少操作数,我不知道为什么它或如何解决它。任何帮助将不胜感激。

I am trying to search for a string in the memory of a program I am debugging with visual studio 2010. I am trying to use the Immediate Window to do this but whenever I try (.S -A 0x400000 0x400200 "MyString") It gives me the error "CXX0014: Error: missing operand" and I am not sure why it does or how to fix it. Any help would be greatly appreciated.

推荐答案

如果我正确理解你正在寻找一个字符串值(假设某些运行值),在运行过程中在你的程序中所有可用值之中。如果是这样,我不认为它甚至有可能,而不是我所知道的,从的Visual Studio 。总是有黑客解决方案,像转储进程内存,读取组装,但即使在那里你能遇到的问题,如果(只是一个例子)程序(在这一点上我想这是不是你写的)的值存储在 SecureString的

If I right understood you are searching for a string value (suppose some runtime value) among all values available in your program during the run. If so, I don't think it's even possible, not that I'm aware of, from Visual Studio. There are always hacking solution for that, like dump process memory, read assembly, but even there you can met problems, if (just an example) the program (at this point I suppose it wasn't written by you) store the values in SecureString.

如果这不是你的本意,请澄清。

If this is not your intention, please clarify.

这篇关于如何搜索字符串在内存中,而调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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