Windows Kernel Debugging Introduction

Поділитися
Вставка
  • Опубліковано 10 лют 2024
  • In this video I will demonstrate how you can debug the Windows Kernel.
    Dependencies:
    - VirtualBox: winget install virtualbox
    - windbg: winget install Microsoft.WinDbg
    Links:
    - Official Guide: learn.microsoft.com/en-us/win...
    - Unofficial Native API Docs: ntdoc.m417z.com/
  • Наука та технологія

КОМЕНТАРІ • 31

  • @nirlichtman
    @nirlichtman  3 місяці тому +10

    - I used Win7 in this video since I just had the disk around, but you can also grab the Win10 iso from the official Microsoft website and the same method from this video will work (I think it also works with Win11 but I haven't tried yet)
    - Notice that after enabling debugging on the Windows boot settings, the machine will wait for a debugger connection each time it boots, you can bring it back to working normally by disabling debugging in bcdedit
    - I recommend making a snapshot before starting - so you can just easily restore it to the beginning state

    • @marouaniAymen
      @marouaniAymen 3 місяці тому

      Thanks for the great video, but how to obtain a windows to run on a virtual machine ?

    • @nirlichtman
      @nirlichtman  3 місяці тому +1

      @@marouaniAymen I just installed from a physical installation disk of Windows 7 I have, you can also debug a physical computer

    • @marouaniAymen
      @marouaniAymen 3 місяці тому

      @@nirlichtman Thanks for your answer

  • @ramorix
    @ramorix 3 місяці тому +4

    Great video as always ! Keep going !

  • @uschurch
    @uschurch 3 місяці тому +1

    Wonderful. Hopefully many youtubers learn from you to make concise videos!

  • @anonymouscommentator
    @anonymouscommentator 3 місяці тому +10

    im curious as to why win 7 32bit was used. is it harder/not possible on modern versions?

    • @n-uv7vg
      @n-uv7vg 3 місяці тому

      Same

    • @jezura777
      @jezura777 3 місяці тому

      I think he mentioned that only because the number that he passed to the function shows as pair of 2 bytes or as 32 bits in the debugger.

    • @nirlichtman
      @nirlichtman  3 місяці тому +13

      Reason I chose Win7 32bit is because that is the newest Windows installation disk I have in my room and also it has low system requirements, but this process should work the same in modern versions as well (modern versions even support additional types of kernel debugging - more info in the official docs)

    • @bendono
      @bendono 3 місяці тому +2

      Arguments are passed differently between 32 and 64-bit processes. It is arguably easier to learn 32-bit first before moving on to 64-bit.

  • @nonoroberto8219
    @nonoroberto8219 2 місяці тому +1

    Thanks a lot for those videos about kernel debug!

    • @nonoroberto8219
      @nonoroberto8219 2 місяці тому

      I have a question though, where did you learn that stuff? Alone?

  • @FilthyPitDog
    @FilthyPitDog 3 місяці тому +5

    great content ✌

  • @pouf-dk3nq
    @pouf-dk3nq 3 місяці тому +3

    windows has a really good debugger

    • @nirlichtman
      @nirlichtman  3 місяці тому +4

      Agreed, windbg is very powerful and I like the GUI as well

  • @moshixmainframechannel
    @moshixmainframechannel 3 місяці тому

    Another great video !!

  • @theSoberSobber
    @theSoberSobber 3 місяці тому +1

    Nice 👍

  • @Tech69YT
    @Tech69YT 3 місяці тому

    mine stuck at debugge not connected.
    i am trying to attach to win2016 server. i get connection established but it stuck at system up time and says debuggee not connected.
    i tried to break but did not work.

  • @JayJay-ly4er
    @JayJay-ly4er 2 місяці тому

    thank you.

  • @sauvignonblanc5086
    @sauvignonblanc5086 3 місяці тому +2

    Is it possible to debug playstation kernel?

  • @TunifyBasic
    @TunifyBasic 3 місяці тому

    can we still install windows 7 in 2024? i wan't an iso man.

    • @nirlichtman
      @nirlichtman  3 місяці тому

      I installed from a physical Win7 disk I have

    • @1kvolt1978
      @1kvolt1978 23 дні тому

      Yes, we can. And we will.

  • @satr14-tech
    @satr14-tech 3 місяці тому

    13 hours ago... wow

  • @ZEROxDEADDEAD
    @ZEROxDEADDEAD 14 днів тому

    Last time I used windbg it offloaded the dump onto an innaccessible directory despite admin privelages. Lmao

    • @R.B.
      @R.B. 13 днів тому

      It's all accessible when you know how. You may have to use something like Sysinternals PS tools to run a command prompt as system, but you probably only needed to take ownership and add read permissions.

  • @haroldcruz8550
    @haroldcruz8550 3 місяці тому

    Appreciate the video but it would have been better if it was for Windows 11

    • @uschurch
      @uschurch 3 місяці тому +1

      It's probably very similar.