Windows Kernel Debugging Introduction

  Рет қаралды 8,494

Nir Lichtman

Nir Lichtman

Күн бұрын

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.microsof...
- Unofficial Native API Docs: ntdoc.m417z.com/

Пікірлер: 34
@nirlichtman
@nirlichtman 7 ай бұрын
- 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 7 ай бұрын
Thanks for the great video, but how to obtain a windows to run on a virtual machine ?
@nirlichtman
@nirlichtman 7 ай бұрын
@@marouaniAymen I just installed from a physical installation disk of Windows 7 I have, you can also debug a physical computer
@marouaniAymen
@marouaniAymen 7 ай бұрын
@@nirlichtman Thanks for your answer
@pouf-dk3nq
@pouf-dk3nq 7 ай бұрын
windows has a really good debugger
@nirlichtman
@nirlichtman 7 ай бұрын
Agreed, windbg is very powerful and I like the GUI as well
@anonymouscommentator
@anonymouscommentator 7 ай бұрын
im curious as to why win 7 32bit was used. is it harder/not possible on modern versions?
@n-uv7vg
@n-uv7vg 7 ай бұрын
Same
@jezura777
@jezura777 7 ай бұрын
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 7 ай бұрын
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)
@dono42
@dono42 7 ай бұрын
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.
@uschurch
@uschurch 7 ай бұрын
Wonderful. Hopefully many youtubers learn from you to make concise videos!
@creakffm
@creakffm Ай бұрын
did u know how can i read out my kernel Ntst - baseadress
@Tech69YT
@Tech69YT 7 ай бұрын
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.
@moshixmainframechannel
@moshixmainframechannel 7 ай бұрын
Another great video !!
@markarthur1083
@markarthur1083 Ай бұрын
dds esp-0 esp+(4*2) shows the stack much clearer
@satr14-tech
@satr14-tech 7 ай бұрын
13 hours ago... wow
@haroldcruz8550
@haroldcruz8550 7 ай бұрын
Appreciate the video but it would have been better if it was for Windows 11
@uschurch
@uschurch 7 ай бұрын
It's probably very similar.
@FilthyPitDog
@FilthyPitDog 7 ай бұрын
great content ✌
@ramorix
@ramorix 7 ай бұрын
Great video as always ! Keep going !
@proto9011
@proto9011 3 ай бұрын
On Hyper-V the GUI interface doesn't have an option to configure COM ports. However, you can use the 'Set-VMComPort' PowerShell command from an elevated prompt to do so. Example) Set-VMComPort -Number 1 -Path \\.\pipe\MyDebugPort
@sauvignonblanc5086
@sauvignonblanc5086 7 ай бұрын
Is it possible to debug playstation kernel?
@nirlichtman
@nirlichtman 7 ай бұрын
Which playstation model?
@sauvignonblanc5086
@sauvignonblanc5086 7 ай бұрын
@@nirlichtman PS4
@0xSh1m1
@0xSh1m1 26 күн бұрын
Great video! Where do you recommend learning how to use WinDbg?
@nirlichtman
@nirlichtman 25 күн бұрын
.hh command, learn.microsoft.com has good materials, "Windows Debugging and Troubleshooting" lecture (you can find on YT), "Kernel_Debugging_Tutorial.doc" which is a great kernel debugging guide that comes with Windows SDK.
@nonoroberto8219
@nonoroberto8219 6 ай бұрын
Thanks a lot for those videos about kernel debug!
@nonoroberto8219
@nonoroberto8219 6 ай бұрын
I have a question though, where did you learn that stuff? Alone?
@theSoberSobber
@theSoberSobber 7 ай бұрын
Nice 👍
@JayJay-ly4er
@JayJay-ly4er 6 ай бұрын
thank you.
@TunifyBasic
@TunifyBasic 7 ай бұрын
can we still install windows 7 in 2024? i wan't an iso man.
@nirlichtman
@nirlichtman 7 ай бұрын
I installed from a physical Win7 disk I have
@1kvolt1978
@1kvolt1978 4 ай бұрын
Yes, we can. And we will.
Windows Native API Explained
6:36
Nir Lichtman
Рет қаралды 15 М.
How Windows Kernel Draws Graphics
10:59
Nir Lichtman
Рет қаралды 46 М.
Новый уровень твоей сосиски
00:33
Кушать Хочу
Рет қаралды 4,9 МЛН
БЕЛКА СЬЕЛА КОТЕНКА?#cat
00:13
Лайки Like
Рет қаралды 2,3 МЛН
The joker favorite#joker  #shorts
00:15
Untitled Joker
Рет қаралды 30 МЛН
Making Simple Graphical Linux Distro from Scratch
17:19
Nir Lichtman
Рет қаралды 61 М.
How Linux Kernel Prints Text on Screen
12:46
Nir Lichtman
Рет қаралды 71 М.
What is the Smallest Possible .EXE?
17:04
Inkbox
Рет қаралды 397 М.
Linux vs Windows Round 0: A Microsoft Dev Builds the Linux Kernel
13:49
Reverse Engineering Simple Windows Driver
12:09
Nir Lichtman
Рет қаралды 10 М.
WHY IS THE HEAP SO SLOW?
17:53
Core Dumped
Рет қаралды 226 М.
Fixing A Bootlooping Surface Pro 6
9:36
Jiga Tech
Рет қаралды 42 М.
How Many Versions of WINDOWS Can You DUAL BOOT at ONCE?
20:14
Jiga Tech
Рет қаралды 112 М.
Read a bluescreen using WinDBG
16:39
High Voice Computing
Рет қаралды 13 М.
Новый уровень твоей сосиски
00:33
Кушать Хочу
Рет қаралды 4,9 МЛН