Summery
BloodyAD is an Active Directory exploitation/administration tool. It interacts with AD over LDAP to abuse permissions, modify objects, change ownership, manage groups, and manipulate ACLs. In pentesting, it is mainly used to exploit AD misconfigurations for privilege escalation.
Commands
Common
bloodyAD --host '<DC FQDN OR IP>' -d '<DOMAIN>' -u '<USER>' -p '<PASS>' add user '<NEW USER>' '<NEW PASS>' - Create a new user.
bloodyAD --host '<DC FQDN OR IP>' -d '<DOMAIN>' -u '<USER>' -p '<PASS>' add groupMember '<GROUP NAME>' '<TARGET USER>' - Add a user to a group.
bloodyAD --host '<DC FQDN OR IP>' -d '<DOMAIN>' -u '<USER>' -p '<PASS>' membership USERNAME - Show the groups that the specified user belongs to.
bloodyAD --host '<DC FQDN OR IP>' -d '<DOMAIN>' -u '<USER>' -p '<PASS>' set owner '<TARGET OBJECT>' '<TARGET USER>' - Make a user an object owner.
bloodyAD --host '<DC FQDN OR IP>' -d '<DOMAIN>' -u '<USER>' -p '<PASS>' add genericAll '<TARGET OBJECT>' '<TARGET USER>' - Give a user GenericAll over an object.
bloodyAD --host '<DC FQDN OR IP>' -d '<DOMAIN>' -u '<USER>' -p '<PASS>' get object '<TARGET NAME>' - Get information about a user or a group.
bloodyAD --host '<DC FQDN OR IP>' -d '<DOMAIN>' -u '<USER>' -p '<PASS>' get object '<GPO DN OR GUID>' - Get information about a GPO.
Situational
bloodyAD --host '<DC FQDN OR IP>' -d '<DOMAIN>' -u '<USER>' -p '<PASS>' get writable - Search for objects your current account has permissions to modify.
bloodyAD --host '<DC FQDN OR IP>' -d '<DOMAIN>' -u '<USER>' -p '<PASS>' dcsync TARGETUSER - Grant the specified principal rights needed to perform DCSync.
bloodyAD --host '<DC FQDN OR IP>' -d '<DOMAIN>' -u '<USER>' -p '<PASS>' get children TARGET - List AD objects contained directly under TARGET.
bloodyAD --host '<DC FQDN OR IP>' -d '<DOMAIN>' -u '<USER>' -p '<PASS>' add rbcd TARGETCOMPUTER SERVICEACCOUNT - configures Resource-Based Constrained Delegation so SERVICEACCOUNT is allowed to impersonate users to services on TARGETCOMPUTER.
bloodyAD --host '<DC FQDN OR IP>' -d '<DOMAIN>' -u '<USER>' -p '<PASS>' add shadowCredentials TARGETUSER - Add a Key Credential to the target account, enabling authentication using a corresponding private key rather than its password.
bloodyAD --host '<DC FQDN OR IP>' -d '<DOMAIN>' -u '<USER>' -p '<PASS>' add uac TARGET ACCOUNTDISABLE - Add the ACCOUNTDISABLE flag to the target user’s userAccountControl attribute, disabling the account. This is an AD account-status modification, not a group/permission change.
References
Used in: Sweep
Impacket has some similar capabilities in areas like GPOs.