双机调试

VirtualKD

不要使用 VirtualKD-3.0 ,我在官网上下载了,结果会出现 RPC Table 相关的错误。在 GitHub 找到一个项目:

https://github.com/4d61726b/VirtualKD-Redux

下载这个,将 Target 文件夹放到要被调试的虚拟机中,运行 Install 。我的是 Win 7,因此没有选择 Replace kdcom.dll 。

跟着步骤走,就可以了。装完之后,需要关闭 “禁止驱动签名强制”。在本机打开 VmmOn.exe 并选择自己对应的 Debugger ,会自动弹出 debugger。在调试器中调试即可。

亦或者使用 IDA pro 的双机调试,网上一搜一大堆。

 

Windbg Preview

在 Windbg 设置中找到 com 口的调试,配置 pipe :一般格式为 \\.\pipe\xxxxx (不要和其它使用的重复即可)

要调试的 VM 虚拟机先关机,然后增加串口,自定义串口中填写名字

Win7  及以上:管理员 cmd 输入 bcdedit /bootdebug on ,加上 bcdedit /debug on 。重启即可连接上调试。

WinXp pro Sp3 :cmd  输入 msconfig 中到 boot.ini 中设置或者直接改  C:\boot.ini ,系统名字保留为自己的最好,以免发生未知错误

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect /debug /debugport=com1 /baudrate=115200

重启计算机 Windbg Preview 若勾选了 Break On Connection 即可上线连接并断住。

 

posted @ 2020-12-09 16:30  Rev_omi  阅读(322)  评论(0编辑  收藏  举报