【问题标题】:WinDbg kernel mode debugging using ETHERNET not working使用 ETHERNET 的 WinDbg 内核模式调试不起作用
【发布时间】:2016-12-04 21:11:37
【问题描述】:

我正在尝试让 WinDbg 使用手动以太网电缆调试目标机器,如 https://msdn.microsoft.com/en-us/library/windows/hardware/hh439346(v=vs.85).aspx 所述

但是,主机上的 WinDbg 似乎一直卡在等待重新连接...。有什么想法可能是错的吗?

两台机器都运行 Windows 10 Enterprise x64。我还在两台机器上都禁用了防火墙。

我仔细检查了我的主机和目标 NIC,并确保它们都受支持。

目标网卡

Intel(R) 82579LM Gigabit Network Connection
PCI\VEN_8086&DEV_1502&SUBSYS_161C103C&REV_04

主机网卡

Broadcom NetLink(TM) Gigabit Ethernet
PCI\VEN_14E4&DEV_1692&SUBSYS_033D1025&REV_01

bcdedit /dbgsettings 显示

C:\WINDOWS\system32>bcdedit /dbgsettings
key                     1.2.3.4
debugtype               NET
hostip                  192.168.0.104
port                    50000
dhcp                    Yes
The operation completed successfully.

我还确保可以使用 ping 从我的目标计算机访问主机。

ipconfig /all 产生以下结果:

Ethernet adapter Local Area Connection* 1:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Kernel Debug Network Adapter
   Physical Address. . . . . . . . . : XX-XX-XX-XX-XX-XX
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::20dc:c393:bcdb:b26%3(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.0.101(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Sunday, December 4, 2016 11:37:04 AM
   Lease Expires . . . . . . . . . . : Sunday, December 4, 2016 1:37:04 PM
   Default Gateway . . . . . . . . . : 192.168.0.1
   DHCP Server . . . . . . . . . . . : 192.168.0.1
   DHCPv6 IAID . . . . . . . . . . . : 65278299
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-78-0A..XXX
   DNS Servers . . . . . . . . . . . : 192.168.0.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

【问题讨论】:

  • 愚蠢的问题,但是ipconfig /all在哪台机器上?
  • 在目标机器上。
  • 这从网卡的名字——“Microsoft Kernel Debug Network Adapter”就很明显了。这是 Windows 使用的神奇 NIC,因此当 KDNET 拥有一个实际的 NIC 时,网络实际上可以工作。见blogs.msdn.microsoft.com/ndis/2014/03/10/…

标签: debugging windbg kernel-mode


【解决方案1】:

您可以运行 KDNET 实用程序来检查您的 NIC 是否支持内核调试。如果您将 WDK 安装在默认路径中,则 KDNET 应位于以下路径中: C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\kdnet.exe

另外,如果您的 NIC 不受支持,您可以使用虚拟机作为目标 PC,以下是 Microsoft Docs 的说明: Setting Up Kernel-Mode Debugging of a Virtual Machine Manually using a Virtual COM Port

【讨论】:

    猜你喜欢
    • 2012-02-03
    • 1970-01-01
    • 2011-12-19
    • 2011-01-06
    • 1970-01-01
    • 2015-09-26
    • 1970-01-01
    • 1970-01-01
    • 2013-06-13
    相关资源
    最近更新 更多