.. / windows-setakeownershipprivilege-file-takeover
Star

This guide demonstrates how to enumerate and abuse the SeTakeOwnershipPrivilege on Windows to take ownership of files and read sensitive data. It covers enabling the privilege, identifying target files, taking ownership, modifying ACLs, and reading protected files. This is useful for privilege escalation and accessing restricted information.

Command Reference:

Target: Local Windows machine with SeTakeOwnershipPrivilege
Command: Copy Extra code: Copy References:

https://www.hacktricks.xyz/windows-hardening/windows-local-privilege-escalation/token-privileges

https://raw.githubusercontent.com/fashionproof/EnableAllTokenPrivs/master/EnableAllTokenPrivs.ps1