Mac 主机上的 windows 内核调试(使用 VirtualBox)

逆向工程 视窗 调试 风袋
2021-07-03 23:26:48

我在 MacOS Sierra(版本 10.12.4)上运行。我在 Virtualbox(版本 5.1.22)上创建了两个虚拟机。

1- 主机:Windows 10 Pro x64(我安装了 Windows Driver kit 10)

2- 目标机器:Windows 7 Pro x64

现在我正在尝试使用第一台机器来调试第二台机器。我为两台机器配置了相同的主机管道。

  • Host机的串口配置(Target机也一样)在此处输入图片说明

  • 在调试器(主机)机器中,我使用此设置启动 windbg

在此处输入图片说明

  • 我在被调试者(目标)机器上启用了调试模式

C:\Windows\system32>bcdedit/dbgsettings

调试类型 串行

调试端口 1

波特率 115200

但是当我尝试连接时,他们似乎并不认识彼此。

怎么了?

1个回答
  1. 首先启动调试器VM。

    WinDbg: com:port=com1,baud=115200
    
  2. 第二次启动Debuggee VM,并启用内核调试模式

    C:\Windows\system32>bcdedit /copy {current} /d "Windows Kernel Exploitation"   
    .... {bee4606e-51f1-11e8-97a8-decf25840cbf}
    
    C:\Windows\system32>bcdedit /debug {bee4606e-51f1-11e8-97a8-decf25840cbf} on   
    
    C:\Windows\system32>bcdedit /dbgsettings  
    debugtype               Serial   
    debugport               1  
    baudrate                115200
    

被调试者

Windows 内核调试器

调试器

Windows 内核调试器

Windows 内核 WinDbg 输出