setakeownershipprivilege
Exploiting SeTakeOwnershipPrivilege
Overview
Approach
1. Verify Privileges
whoami /priv # Check for SeTakeOwnershipPrivilege2. Enable Privilege (if required)
3. Identify Target Files/Folders
Get-ChildItem -Path <directory> -Recurse # Enumerate files
cmd /c dir /q # Check file owner4. Take Ownership of Target File
5. Modify ACLs to Gain Access
6. Access Data
7. Revert Changes
Get information about the target file
Checking file ownership
Take ownership of a file (takeown)
Some interesting files to check
Tools & Techniques
Commands Used:
Tools:
Techniques:
Notes
Last updated