How itm4n/printspoofer works
PrintSpoofer is a Windows privilege-escalation command-line tool: given SeImpersonatePrivilege, it uses the Print Spooler named-pipe/RPC path to obtain an impersonated SYSTEM token, then launches a requested command interactively, detached, or on a selected session desktop. The main workflow and generated RPC interface are represented; the RPC server stub is included as a substantial core module. Source excerpts omit portions of the main control flow, so only documented or excerpt-visible relationships are connected.
Main entry points: PrintSpoofer.cpp CLI and workflow · ms-rprn_c.c RPC client stubs · ms-rprn_h.h Spooler RPC interface
Components 15
Command workflow
- CLI and workflow
PrintSpoofer/PrintSpoofer.cpp - Privilege check
PrintSpoofer/PrintSpoofer.cpp
Spooler IPC
- Named pipe setup
PrintSpoofer/PrintSpoofer.cpp - Spooler trigger
PrintSpoofer/PrintSpoofer.cpp - RPC binding
PrintSpoofer/PrintSpoofer.cpp - RPC client stubs
PrintSpoofer/ms-rprn_c.c - Spooler RPC interface
PrintSpoofer/ms-rprn_h.h - RPC server stubs
PrintSpoofer/ms-rprn_s.c
SYSTEM execution
- Pipe impersonation
PrintSpoofer/PrintSpoofer.cpp - SYSTEM token
PrintSpoofer/PrintSpoofer.cpp - Command launch
PrintSpoofer/PrintSpoofer.cpp
Other components
- Tool operator
- Windows Print Spooler
- Interactive console
- Session desktop
Connections 13
- Tool operator → CLI and workflow: runs command
README.md - CLI and workflow → Privilege check: checks privilege
PrintSpoofer/PrintSpoofer.cpp - CLI and workflow → Named pipe setup: sets up pipe
PrintSpoofer/PrintSpoofer.cpp - CLI and workflow → Spooler trigger: starts trigger
PrintSpoofer/PrintSpoofer.cpp - Spooler trigger → RPC binding: binds RPC
PrintSpoofer/PrintSpoofer.cpp - RPC binding → RPC client stubs: calls stubs
PrintSpoofer/PrintSpoofer.cpp - RPC client stubs → Windows Print Spooler: contacts service
README.md - RPC client stubs → Spooler RPC interface: uses definitions
PrintSpoofer/ms-rprn_c.c - Named pipe setup → Pipe impersonation: accepts client
PrintSpoofer/PrintSpoofer.cpp - Pipe impersonation → SYSTEM token: duplicates token
PrintSpoofer/PrintSpoofer.cpp - SYSTEM token → Command launch: launches process
README.md - Command launch → Interactive console: interacts with
README.md - Command launch → Session desktop: targets session
README.md