Windows kernel debugger for Linux hosts running Windows under KVM/QEMU.
- Command line interface
- WinDbg style commands
- Kernel debugging
- PDB fetching
- Breakpointing
- Plugin API (C)
ntoseye
currently only supports Windows 10 and 11 guests.
ntoseye
will ask you if you wish to download symbols (defaults to exports if user declines). It will only download symbols from Microsoft's official symbol server. All files which will be read/written to will be located in $XDG_CONFIG_HOME/ntoseye
.
Name | Version |
---|---|
CMake | 3.15+ |
libreadline | Latest |
Zydis | Latest |
LLVM | 15+ |
curl | Latest |
Important
A compiler with C++23 support is required. GDB is also required for control flow capabilities (e.g. breakpoints).
git clone https://github.com/dmaivel/ntoseye.git
cd ntoseye
cmake -B build
cmake --build build --config Release
ntoseye
takes in no arguments to launch. It is recommended that you run the following command before running ntoseye
or a VM:
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
Note that you may need to run ntoseye
with sudo
aswell.
Although it is not required, many features depend on gdbstub
being enabled.
Append -s -S
to qemu command.
Add the following to the XML configuration:
<domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
...
<qemu:commandline>
<qemu:arg value="-s"/>
<qemu:arg value="-S"/>
</qemu:commandline>
</domain>
Key(s) | Description |
---|---|
tab | Tab completion. Either lists all available commands or attempts to complete the currently typed out command. |
ctrl+C | Attempt a breakpoint. Will terminate the debugger if in the middle of a download or hang. |
Command | Description |
---|---|
!pte [VirtualAddress/Symbol] |
Display the page table entries of a given virtual address. |
!process 0 0 |
Display a list of the current active processes. |
.process [/p /r] OR [AddressOfEPROCESS] |
Set the current process context. |
break |
Breakpoint. |
db [VirtualAddress/Symbol] [EndAddress/L<Count>] |
Display bytes at address. |
g |
Continue from breakpoint. |
lm |
List current modules. |
n [10 OR 16] |
Set radix. 16 by default. |
q |
Quit. |
r OR r [Register names] |
Display registers. |
reload_lua |
Reload lua scripts. |
u [VirtualAddress/Symbol] [EndAddress/L<Count>] |
Display disassembly at address. |
uf [VirtualAddress/Symbol] [EndAddress/L<Count>] |
Alias for u command. |
x [Module!Function] |
Display symbols matching the string. Accepts wildcard. |
~ OR ~ [ProcessorNumber] |
Display current processor number or set current processor. |
:[CallbackName] <Args> |
Call to Lua callback. |
For plugins to be visible to ntoseye
, they need to be stored in $XDG_CONFIG_HOME/ntoseye/plugins/
. This folder is created automatically when you run ntoseye
for the first time.
For functionality, look at examples in examples/
or the public header include/ntoseye/ntoseye.h
.
Functionality regarding initialization of guest information was written with the help of the following sources: