WinDbg Kernel
Kernel exploration
CheatSheet
Symbols and types
Command | Usage | Examples | Description |
---|---|---|---|
|
| Displays all or the specified loaded modules. | |
|
| Displays the symbols in the specified module. | |
|
| Displays the symbol(s) at or near the specified address. | |
|
| Displays information about a local variable, global variable or data type. | |
|
| C printf-like function. |
Memory exploration
Command | Usage | Examples | Description |
---|---|---|---|
|
| Displays the contents of memory in the given range.
The | |
| Display a | ||
|
| Displays an assembly translation of the code at the specified memory address or range. | |
|
| Displays an assembly translation of the function at the specified memory address. | |
|
| Displays information on the module to which the specified address belong (module name, path and base start / end ADDRESSs). | |
[dx advised] !process |
|
| Displays information about all or the specified processes, including the |
[dx advised] !thread |
|
| Displays summary information about a thread, including the |
| Displays the contents of an | ||
| Dereference pointer |
Display Debugger Object Model Expression (dx)
Execution control flow
Command | Usage | Examples | Description |
---|---|---|---|
Userland process crashdump / dump analysis
Command | Description |
---|---|
| Provides an overview of the dump: process name, error code, stack trace, etc. More useful for crashdump, limited use for voluntarily taken process dump. |
| Parses the |
| Lists the loaded |
| Prints verbose information (as mentioned on |
| Lists the address pages and associated information:
- Page type ( |
| Filters memory pages based on the specified filter. All filters in the list are AND-combined. |
References
Microsoft Windows Debugging Tools official documentation
https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/
"Modern Debugging with WinDbg Preview" DEFCON 27 workshop by hugsy and 0vercl0k"
https://github.com/hugsy/defcon_27_windbg_workshop
"WinDbg — the Fun Way: Part 1 / 2" by Yarden Shafir
https://medium.com/@yardenshafir2/windbg-the-fun-way-part-1-2e4978791f9b
https://medium.com/@yardenshafir2/windbg-the-fun-way-part-2-7a904cba5435
Last updated