Skip to main content
Impacket provides powerful tools for interacting with Active Directory through LDAP, enabling enumeration, modification, and exploitation of AD objects and permissions.

Enumeration Tools

GetADUsers.py

Enumerate Active Directory user accounts.

Example Output

GetADComputers.py

Enumerate computer accounts in Active Directory.

Permission & ACL Tools

dacledit.py

Read and modify Discretionary Access Control Lists (DACLs) on AD objects.

Example DACL Attack Chain

owneredit.py

Modify object ownership in Active Directory.

Account & Object Manipulation

addcomputer.py

Add or remove computer accounts (covered in Kerberos section, but relevant here).

changepasswd.py

Change user passwords via multiple methods.

Delegation & Privilege Tools

findDelegation.py

Identify delegation configurations (unconstrained, constrained, RBCD).

Example Output

rbcd.py

Configure Resource-Based Constrained Delegation.

Information Gathering

lookupsid.py

Enumerate users and groups by brute-forcing SIDs.

Example Output

netview.py

Enumerate logged-on users and sessions across the domain.

CheckLDAPStatus.py

Check LDAP/LDAPS configuration and signing requirements.

DumpNTLMInfo.py

Dump NTLM authentication information from domain controller.

GPO & SYSVOL Tools

Get-GPPPassword.py

Extract Group Policy Preferences passwords from SYSVOL (covered in credential dumping).

GetLAPSPassword.py

Retrieve LAPS passwords (also covered in credential dumping).

Service & RPC Tools

samrdump.py

Dump user information via SAMR protocol.

rpcdump.py

Enumerate RPC endpoints.

rpcmap.py

Scan and map RPC endpoints.

Attack Scenarios

LDAP Query Examples

Useful LDAP filters for enumeration:

Next Steps

Kerberos Attacks

Exploit delegation and Kerberos configurations

Credential Dumping

Extract credentials after gaining access

Remote Execution

Execute commands on enumerated systems