๐ Active Directory Enumeration with BloodyAD
Complete LDAP enumeration using BloodyAD โ discover users, computers, containers, DNS, and sensitive attributes.
๐ง About BloodyAD
BloodyAD is an openโsource Python tool that communicates over LDAP(S) and MSโSAMR to read and write Active Directory objects without requiring Windowsโbased utilities. It is ideal for Linuxโbased red team engagements.
Installation:
pip install bloodyad
๐ Basic Connection
bloodyAD --host 192.168.1.11 -d ignite.local -u administrator -p 'Ignite@987'
๐ Enumerating Computer Accounts
bloodyAD --host 192.168.1.11 -d ignite.local -u administrator -p 'Ignite@987' get children --otype computer
This reveals workstations, servers, and service accounts registered as computer objects.
๐ฅ Enumerating All User Accounts
bloodyAD --host 192.168.1.11 -d ignite.local -u administrator -p 'Ignite@987' get children --otype useronly
Lists all user accounts โ default accounts (Administrator, Guest, krbtgt) plus domain users.
๐๏ธ Enumerating Containers and OUs
bloodyAD --host 192.168.1.11 -d ignite.local -u administrator -p 'Ignite@987' get children --otype container
Reveals container structure and where GPOs are applied.
๐ DNS Zone Dump
bloodyAD --host 192.168.1.11 -d ignite.local -u administrator -p 'Ignite@987' get dnsDump
Dumps all DNS records โ reveals additional hosts, services, and infrastructure.
๐ Domain Admins Group Members
bloodyAD --host 192.168.1.11 -d ignite.local -u administrator -p 'Ignite@987' get object "Domain Admins" --attr member
๐ Deep Inspection of a User Object
bloodyAD -d ignite.local -u administrator -p Ignite@987 --host 192.168.1.11 get object aaru
Dumps all LDAP attributes โ often reveals cleartext passwords in userPassword or unixUserPassword attributes.
โ๏ธ Checking Machine Account Quota
bloodyAD --host 192.168.1.11 -d ignite.local -u Administrator -p 'Ignite@987' get object "DC=ignite,DC=local" --attr ms-DS-MachineAccountQuota
By default, regular users can create up to 10 computer accounts โ abuseable for RBCD attacks.
๐ก๏ธ Detection & Hardening
โ Alert on searches for sensitive attributes (userPassword, unixUserPassword)
โ Never store passwords in LDAP description or custom attributes
โ Reduce Machine Account Quota from 10 to 0 for standard users