wineye is a native-Windows, WinDbg-style memory inspector: it looks at a Windows target from its memory alone — a kernel crash dump, a raw memory image, or a live Hyper-V VM — with no debug transport in the guest and the target unaware it is being inspected. It drives MemProcFS's vmm.dll directly through ctypes, or reads Windows kernel crash dumps itself: one Python file, no WSL, no pip package, no Python extension.
It is also a crash-dump debugger: !analyze -v, call stacks from kernel mode down into user mode, trap frames and context records, processors, disassembly, source lines and local variables with private PDBs, and user-mode minidump extraction (.dump /u) — with its own PDB reader, x64 and x86 (WoW64) stack unwinders and x86-64 / x86 disassembler.
It can also run as an MCP server (for AI/agent clients), a gdbserver or a Debug Adapter Protocol server.
🌐 Website: https://egkrb.github.io/wineye/ · 🇫🇷 Lire en français · ⬇ Latest release
wineye> ps
PID PPID EPROCESS PEB Name
----------------------------------------------------------------------
4 0 0xffffb00012340004 0x0000000000000000 System
7480 6312 0xffffb00012347480 0x0000007ff0000000 notepad.exe
wineye> .pid 7480
wineye> lm
wineye> x nt!PsInitialSystemProcess
wineye> dq nt!PsInitialSystemProcess L4
wineye> !thread ffffc00c518a4080
THREAD 0xffffc00c518a4080 Cid 0xb20.0xb24 Teb 0x942000 processus explorer.exe (pid 2848)
Child-SP RetAddr Site d'appel
fffff40c99aeeeb0 fffff803f2ae5d76 nt!KiSwapContext+0x76
...
fffff40c99aef480 fffff803f2c3ef13 win32kfull!NtUserWaitMessage+0x42
fffff40c99aef4c0 00007ffab2a71204 nt!KiSystemServiceCopyEnd+0x13
--- passage en mode utilisateur ---
00000000006ef6c8 00007ffab4478b8d win32u!ZwUserWaitMessage+0x14
00000000006ef6d0 00007ffab4743356 SHELL32!CDesktopBrowser::_MessageLoop+0x311
...
00000000006efc90 0000000000000000 ntdll!RtlUserThreadStart+0x21
(wineye's messages are in French.)
- Python 3.10+ (standard library only).
- Download
wineye.py(or the release zip). - For raw images, LeechCore devices and live VMs:
vmm.dllfrom a MemProcFS release (x64), withleechcore.dllnext to it. Kernel crash dumps (.dmp) also open without MemProcFS, with the native engine.
python wineye.py --dump C:\dumps\MEMORY.DMP # native engine
python wineye.py --vmm C:\Tools\MemProcFS\vmm.dll --dump C:\dumps\MEMORY.DMP # MemProcFS| Option | Effect |
|---|---|
--engine auto|vmm|native |
vmm = MemProcFS; native = wineye's own reader of Windows x64 kernel dumps (full, bitmap, kernel, kernel + user, complete, live kernel); auto (default) = vmm.dll, else native for a .dmp |
--sympath <dir;dir> |
folders of private PDBs, and of module images (repeatable; also WINEYE_SYMPATH) |
--no-symbol-download |
stay offline (otherwise Microsoft PDBs, and module images missing from the dump, are downloaded into ~/.wineye/symbols) |
Instead of --vmm, a config.json next to wineye.py can point to MemProcFS ("memprocfs_exe" or "leechcore_dll"; vmm.dll is looked up in the same folder) — this is the file HvKdFusion writes with hvkdfusion.py setup.
| Option | Target |
|---|---|
--dump <file> |
kernel crash dump (.dmp), user-mode minidump (.dmp, MDMP: WinDbg .dump, Task Manager, MiniDumpWriteDump, wineye's .dump /u), or raw memory image (.raw, .mem, .vmem) |
--device <dev> |
any LeechCore device (fpga, pmem, hvmm, ...) |
--live |
live Hyper-V VM (LeechCore hvmm device, from LiveCloudKd) |
--from-vm <N> |
linear dump of Hyper-V VM N, then analysis (needs HvKdFusion) |
--vm <N> |
adds the hvlib control channel on live VM N: freeze, resume/g, r (registers) |
Live VMs and --from-vm / --vm need administrator rights, Hyper-V and the components that HvKdFusion sets up (hvkdfusion.py next to wineye.py). Dumps and images need only vmm.dll.
| Command | Effect |
|---|---|
ps |
processes |
!process [pid] |
process details (default: current context) |
.pid <n|-1> |
process context (-1 = physical memory) |
lm [pid] |
modules |
x <mod>!<sym> |
resolve a symbol through the PDB (x nt!PsInitialSystemProcess) |
db|dw|dd|dq <addr> [L<n>] |
hex dump (bytes / words / dwords / qwords) |
dt <mod>!<type> [field] [addr] |
type size, field offset (and its value at addr) |
!vad [pid], !handle [pid] |
VADs, handles |
s <addr> <len> <hex> |
byte pattern search |
.ctl <N>, freeze, resume/g, r [reg...] |
control channel on a live VM |
info, help, q |
summary, help, quit |
Addresses are expressions, hexadecimal by default as in WinDbg (fffff807 + backtick + 50001000, 0x.. too; 0n for decimal), with registers of the current context (rsp, @rip), module!symbol, + and -. Counts (L<n>) are decimal, or 0x...
On crash dumps, images and live VMs — with Microsoft's symbols (downloaded) or your private PDBs (--sympath):
| Command | Effect |
|---|---|
!analyze [-v] |
bugcheck analysis: stop code, name and arguments, faulting context (trap frame / context record taken from the arguments), faulting instruction, module / driver, symbol, stack. On a dump that is not a crash: the current processor's context |
k [n], kb [n] |
call stack of the current context, kernel then user mode across the system call (and interrupts / machine frames), 32-bit code of WoW64 processes included, with or without PDBs; source lines with a private PDB; kb adds the 4 parameter home slots ("Args to Child"; x86: the first 3 stack parameters) |
~, ~<n> |
processors (current thread, process, rip); switch to processor n. A processor whose context the source did not save (raw image, live target) gets its running thread's user registers from the trap frame at the top of its kernel stack. On a user-mode minidump: its threads |
!thread [ethread] |
thread details and stack (waiting threads are unwound from their switch frame) |
.thread <ethread> |
switch the context to a thread |
.cxr [addr] |
context from a CONTEXT record (no argument: back to the dump's context) |
.trap <addr> |
context from a KTRAP_FRAME |
r [reg...] |
registers of the current context / selected frame |
u [addr] [L<n>], uf <func> |
disassembly (WinDbg syntax, symbolized targets); uf follows the whole function, split chunks included |
ln <addr> |
nearest symbol and source line |
.frame [n], dv |
select a frame; its parameters and locals with their values (private PDB: structures field by field, strings behind char *). Without a private PDB: the parameter home slots, marked as unreliable |
!process <pid> 7 |
a process with its threads and their stacks |
.dump /u [pid] <file> |
write a user-mode minidump of a process (threads with their user-mode registers, modules, every resident page), readable by WinDbg / Visual Studio — and by wineye |
.sympath [p;p], .reload |
private PDB path; reload symbols |
wineye> !analyze -v
SYSTEM_SERVICE_EXCEPTION (3b)
Arg1: 00000000c0000005, code d'exception (violation d'accès)
Arg3: fffff803f1e9a370, enregistrement de contexte (CONTEXT)
...
CONTEXTE : .cxr 0xfffff803f1e9a370
FAULTING_IP : nt!DebugService2+0x6
STACK_TEXT : ...
MODULE_NAME : vmbus
IMAGE_NAME : vmbus.sys
SYMBOL_NAME : vmbus!XPartEnlightenedIsr
FAILURE_BUCKET_ID : SYSTEM_SERVICE_EXCEPTION_vmbus!XPartEnlightenedIsr
wineye> .dump /u 2848 C:\dumps\explorer.dmp
[+] C:\dumps\explorer.dmp : 90 threads, 202 modules, 1679 plages, 24.5 Mo de mémoire
A kernel dump (and a live kernel dump) holds no user-mode page. wineye recovers what the kernel still knows:
- modules of each process, rebuilt from its VADs: file name, base, SizeOfImage, CheckSum, file size and — from Windows 10 2004 — the TimeDateStamp, enough to fetch the image and its PDB from Microsoft's symbol server (
lmsays when the list was rebuilt). On older builds, the image is recognized locally by SizeOfImage + CheckSum + file size (in--sympath, the symbol cache, or at the same path on the analysis machine); - for each thread, the user-mode frame where it entered the kernel (from its trap frame), symbolized:
win32u!ZwUserWaitMessage+0x14,ntdll!ZwWaitForWorkViaWorkerFactory+0x14... The rest of the user stack is not in the dump, andksays so; .dump /uwrites a minidump without memory: threads with their user-mode registers, modules with TimeDateStamp / SizeOfImage / CheckSum.
For full user-mode stacks, use a kernel + user, complete or full dump, a live VM, or a user-mode minidump of the process.
dv shows the names, types and values of parameters and locals from a private PDB (your own builds: /Zi). Microsoft's public PDBs do not contain them — WinDbg cannot show them either — so dv then shows the 4 parameter home slots, where code built with /Od (and often the prologue of optimized code) stores RCX / RDX / R8 / R9.
wineye> dv (user-mode minidump of a crash, private PDB)
inner (frame 00)
param int depth = 0n7 (0x7)
param _POINT3 * pt = 0x000000eeb034f928
param const char * tag = 0x00007ff786da4000 'wineye'
local char [32] buffer = 'wineye'
local int local_counter = 0n28 (0x1c)
wineye> .frame 1
wineye> dv
outer (frame 01)
param int seed = 0n7 (0x7)
local _POINT3 p = {x=7 y=8 z=0x1122334455667788}
The 32-bit code of WoW64 processes is unwound too. A WoW64 thread stopped in its 64-bit layer (system call, wait...) gets its x86 frames where they belong, between the wow64cpu entry and the CPU simulation loop, from the 32-bit context wow64cpu saved in the thread's TEB; a thread running 32-bit code is unwound from its own registers. As WinDbg does, x86 frames come from the FPO / FrameData records of the module's PDB (program strings). Without a PDB, wineye reads the code: it follows the pushes, pops, sub esp, ebp frame and calls (with their ret N) of the function from its start to the current instruction, so it knows where its return address is even in code compiled without frame pointers (/Oy). The function start comes from the symbols, from a return address on the stack whose call targets it — accepted only if the layout lands exactly on that slot — or from the int 3 padding before it; the ebp chain bounds the result and is the fallback. On real dumps, stacks without any PDB are identical to those with PDBs:
wineye> k (64-bit minidump of a 32-bit program, thread in Sleep)
# Child-SP RetAddr Site d'appel
00 000000000102ee78 0000000077221e60 wow64cpu!CpupSyscallStub+0x13
01 000000000102ee80 00000000772a869c wow64cpu!Thunk2ArgNSpNSpReloadState+0xc
--- code 32 bits (WoW64) ---
02 000000000112fbd4 00000000772c3a89 ntdll!ZwDelayExecution+0xc
03 000000000112fbd8 00000000759dbb50 ntdll!RtlDelayExecution+0xe9
04 000000000112fbf8 00000000759dbaef KERNELBASE!SleepEx+0x50
05 000000000112fc60 0000000000a773e8 KERNELBASE!Sleep+0xf
06 000000000112fc70 0000000000a7740b app!sleeper_inner+0x8 [app.c @ 24]
07 000000000112fc78 0000000000a773cc app!sleeper_mid+0xb [app.c @ 30]
08 000000000112fc80 0000000076325d49 app!sleeper+0xc [app.c @ 34]
09 000000000112fc8c 000000007729c88b kernel32!BaseThreadInitThunk+0x19
0a 000000000112fc9c 000000007729c811 ntdll!__RtlUserThreadStart+0x2b
0b 000000000112fcf4 0000000077221789 ntdll!_RtlUserThreadStart+0x1b
--- couche WoW64 (code 64 bits) ---
0c 000000000102ef30 00007fff0a34282d wow64cpu!BTCpuSimulate+0x9
0d 000000000102ef70 00007fff0a341ff2 wow64!RunCpuSimulation+0xd
...
On x86 frames, kb shows the stack parameters, dv the variables (ebp-relative in /Od code, relative to the function entry in FPO code), r the 32-bit registers, and u / uf disassemble 32-bit code. x86 minidumps (written by a 32-bit tool) open too, and the native engine lists the 32-bit modules of WoW64 processes (PEB32). Modules whose loader strings or header are paged out are completed from the VADs (name, TimeDateStamp, CheckSum), with the native engine and with MemProcFS. The 32-bit stack has to be in the source: a small 64-bit minidump of a WoW64 process only holds the 64-bit stacks, which k says where the 32-bit frames would be; take a full minidump (or .dump /u from a kernel dump, which keeps the TEBs and 32-bit stacks). A frame found only by scanning the stack is marked as uncertain.
Scripting: -c "ps;lm" runs commands (repeatable), --batch quits afterwards, --json prints structured output:
python wineye.py --dump vm0.raw -c "ps;lm 4" --batch --jsonFrom Python, import it and use the Vmm class:
import wineye
vmm = wineye.Vmm(r"C:\Tools\MemProcFS\vmm.dll", ["-device", r"C:\dumps\vm0.raw", "-waitinitialize"])
for pid in vmm.pids():
print(vmm.process(pid)["name"])
vmm.close()Instead of the REPL, wineye can serve the same target to other tools. All modes are read-only passive memory (VP registers only on a live VM with --vm N), with no breakpoints or stepping.
| Mode | Command | Use |
|---|---|---|
| MCP | wineye.py --dump d.raw --serve mcp |
MCP server (JSON-RPC 2.0 over stdio) for an AI/agent client. Tools: list_processes, process_info, list_modules, list_handles, list_vads, read_memory, resolve_symbol, registers, stack, analyze, disassemble. |
| gdbserver | wineye.py --dump d.raw --serve gdb [--listen 127.0.0.1:2159] |
GDB Remote Serial Protocol over TCP: target remote 127.0.0.1:2159, then x/16xg <addr> and, on a live VM, info registers. |
| DAP | wineye.py --dump d.raw --serve dap [--listen 127.0.0.1:4711] |
Debug Adapter Protocol (stdio, or TCP with --listen) for an IDE: modules, stackTrace (real frames), readMemory, evaluate module!symbol. |
Register wineye as an MCP server, for example in an MCP client configuration:
{ "command": "python",
"args": ["C:\\Tools\\wineye\\wineye.py", "--vmm", "C:\\Tools\\MemProcFS\\vmm.dll",
"--dump", "C:\\dumps\\vm0.raw", "--serve", "mcp"] }In every server mode the startup banner goes to stderr, so stdout carries only the protocol.
Passive memory gives no run control: no breakpoints, no single-stepping, no register writes (the same limits as ntoseye's memory backend). The live-VM control channel adds freeze/resume and register reads, but hvlib delivers no trap events. For run control, use WinDbg/kd (hvkdfusion.py debug in HvKdFusion).
python tests\test_servers.py
python tests\test_debugger.pytest_servers.py: protocol-level tests of the MCP, DAP and gdbserver modes against a fakeVmm.test_debugger.py: disassembler vectors,CONTEXTrecords, the PDB reader on a small private PDB (tests/data/fixture.pdb, built fromfixture.c: lines, parameters, locals, types), x64 unwinding andk/dv/.frame/u/ufon a synthetic process, the crash-dump reader on a syntheticPAGEDU64dump, modules rebuilt from the VADs of a kernel dump, local image identification,kb/dvwithout a PDB, the user-mode minidump engine on a syntheticMDMP(~,!analyze -v,k,dv), and x86 / WoW64: FPO program strings,tests/data/fixture32.pdb(FrameData, built fromfixture32.c), x86 unwinding through FPO and ebp frames, with and without PDB (stack layout from the code), a WoW64 thread (32-bit context in its TEB),kb/dv/r/u/ufon x86 frames, an x86 minidump, the PEB32 module list, modules completed from the VADs,vmm.dll's zero-filled pages.
No vmm.dll and no target needed, so they run anywhere (on every push in GitHub Actions, on Windows and Linux).
wineye ships with HvKdFusion (Hyper-V kernel debugging and memory forensics) and Fathom (reverse-engineering toolkit built on x64dbg), where the wineye command and .init MEMORY.DMP open it from the debugger. This repository is its standalone home.
GPL-3.0-or-later — see LICENSE. wineye loads MemProcFS / LeechCore (AGPL-3.0) at run time; they are not included. Symbols and module images come from Microsoft's public symbol server at run time and are not included either.