123456

 

2013年7月5日

windbg学习---a (Assemble)和.dvalloc

摘要: .dvalloc 命令使得Windows在目标进程中分配附加的内存.dvalloc[Options]SizeOptions 可以是任意多个下面的选项:/b BaseAddress 指定内存分配开始的虚拟地址。但只是说在这段分配,不一定为开始地址,如:0:000> .dvalloc /b 0x7eeeeeee 0x400Allocated 10000 bytes starting at 7eee00000:000> !address 0x7eeeeeee ProcessParametrs 002e1c28 in range 002e0000 0037e000 Environment 阅读全文

posted @ 2013-07-05 16:38 hgy413 阅读(551) 评论(0) 推荐(0)

windbg学习--- C++表达式

摘要: C++ 表达式解析器支持所有 C++ 表达式语法形式。包括所有数据类型(包括指针,浮点数,数组)以及 C++ 所有一元和二元运算符。?? 默认是对C++表达式求值C++ 表达式中的数值除非另有说明,C++ 表达式中的数值被当作十进制来解析。添加 0x 前缀指定十六进制整数。添加 0(零)指定八进制整这点比较坑,一定要特别注意,因为大家习惯是用16进制的0:000> ? 1Evaluate expression: 1 = 000000010:000> ?? 1int 10:000> ?? 1ffloat 10:000> ? 1fEvaluate expression: 3 阅读全文

posted @ 2013-07-05 15:47 hgy413 阅读(260) 评论(0) 推荐(0)

替换字符串中指定的字符--随手源码

摘要: void WReplace(wchar_t* pDstOut, wchar_t* pSrcIn, wchar_t* pSrcRpl, wchar_t* pDstRpl){ wchar_t* pi = pSrcIn; wchar_t* po = pDstOut; int nSrcRplLen = wcslen( pSrcRpl ); int nDstRplLen = wcslen( pDstRpl ); wchar_t *p = NULL; int nLen = 0; do { // 找到下一个替换点 p = wcsstr(pi, pSrcRpl); if (p != NUL... 阅读全文

posted @ 2013-07-05 14:46 hgy413 阅读(260) 评论(0) 推荐(0)

导航