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 Linux Kernel Prints Text on Screen
12:46
Nir Lichtman
Рет қаралды 71 М.
WORLD BEST MAGIC SECRETS
00:50
MasomkaMagic
Рет қаралды 54 МЛН
Шок. Никокадо Авокадо похудел на 110 кг
00:44
Ozoda - Lada (Official Music Video)
06:07
Ozoda
Рет қаралды 12 МЛН
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 81 М.
How Windows Kernel Draws Graphics
10:59
Nir Lichtman
Рет қаралды 46 М.
Linux vs Windows Round 0: A Microsoft Dev Builds the Linux Kernel
13:49
The Importance of Error Handling in C
8:18
Nir Lichtman
Рет қаралды 30 М.
Read a bluescreen using WinDBG
16:39
High Voice Computing
Рет қаралды 13 М.
What is the Smallest Possible .EXE?
17:04
Inkbox
Рет қаралды 397 М.
Quick Look at OpenBSD
10:00
Nir Lichtman
Рет қаралды 7 М.
What happens if you connect Windows XP to the Internet in 2024?
20:35
Покупка бюджетного ПК на Wildberries? 🤬
0:59
Вэйми
Рет қаралды 3,6 МЛН
Самый дорогой iPHONE 16 PRO MAX #shorts
0:58
Арсений Петров
Рет қаралды 941 М.