Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-17360

KDNET debugging transport library patched for XP/2003 doesn't work on ReactOS

    XMLWordPrintable

Details

    Description

      This is possible thankfully to this GitHub project: https://github.com/MovAX0xDEAD/KDNET

      How to reproduce:

      1. Configure your VM with Intel E1000 network adapter
      2. Download patched kdnet.dll and kdstub.dll for Intel network adapters
      3. Place both files in %SystemRoot%\system32 directory
      4. Add new entry to the freeldr.ini (or boot.ini in Windows case)

        /DEBUG /DEBUGPORT=NET /HOST_IP=192.168.1.100 /HOST_PORT=50000 /ENCRYPTION_KEY=make.reactos.great.again /W2003 /CPUFREQ=3000
        

      5. Modify HOST_IP with your host machine local IP address
      6. Remove /W2003 parameter in case you are testing on XP
      7. Change CPUFREQ to your CPU MHz value — when doubt, you can take it from registry key HKLM\HARDWARE\DESCRIPTION\System\CentralProcessor\0 value ~MHz
      8. Allow traffic on UDP port 50000 in firewall settings
      9. Start WinDbg kernel debug with NET option (available since version 6.3.9600), it should have port 50000 by default, set the key to make.reactos.great.again accordingly
      10. Reboot the VM and select new boot option

       

      • Expected behavior:
        VM starts and attaches to WinDbg via network (tested with Windows XP SP3 x86)
      • Observed behavior:
        System boots to debug mode, but it doesn't try to access network adapter, so it doesn't attach to WinDbg (tested with ReactOS MSVC build 0.4.15-dev-1249-g1f377076d78)

      Attachments

        1. _DEBUG_DEVICE_DESCRIPTOR.png
          21 kB
          vgal
        2. (kdnet.c)-KdDebuggerInitialize0().png
          13 kB
          vgal
        3. 0.4.15-dev-4679-g74870c1.msvc.kdnet.txt
          45 kB
          Stas'M
        4. freeldr_debug_new.txt
          604 kB
          Stas'M
        5. freeldr_debug.txt
          597 kB
          Stas'M
        6. freeldr_peloader.txt
          298 kB
          Stas'M
        7. github.png
          15 kB
          vgal
        8. kdnet_dll-KdDebuggerInitialize0-test.png
          12 kB
          vgal
        9. livecd.ini.png
          30 kB
          vgal
        10. log.txt
          0.7 kB
          vgal
        11. VirtualBox_w7sp2en3_05_01_2022_20_36_00.png
          32 kB
          vgal
        12. W7_info (VirtualBox 5.2.44).png
          34 kB
          vgal

        Issue Links

          Activity

            People

              walean disean
              binarymaster Stas'M
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: