๐Ÿ‘คEnumerating Users

This guide covers various techniques for enumerating users in Active Directory environments, divided into methods that require credentials and those that don't.

Enumeration Without Credentials

NSrpcenum

NSrpcenum is a modified version of S4vitar's tool, renamed to differentiate it from the original rpcenum tool that supports credentials. This tool allows enumeration of the Domain Controller through the RPC protocol using a Null Session (without providing access credentials). It will only work if we have the appropriate permissions.

Repository: GitHub - s4vitar/rpcenum

NSrpcenum -e DUsers -i 10.10.10.10

rpcclient (No Credentials)

Enumerate users from RID 1000 to 1500 (range can be adjusted as needed). No credentials required.

for i in $(seq 1000 1500); do rpcclient -N -U "" 10.10.10.10 -c "queryuser 0x$(printf '%x\n' $i)" | grep "User Name"; done | awk '{print $NF}'

Kerbrute Username Enumeration

Brute force user enumeration through Kerberos using a dictionary:

# Brute force users through Kerberos with a dictionary
kerbrute userenum --dc 10.10.10.10 -d domain.htb /usr/share/seclists/Usernames/xato-net-10-million-usernames.txt

# Validate if users are valid at domain level with a list of possible users
kerbrute userenum --dc 10.10.10.10 -d domain.htb possible_users.txt

NetExec with Guest User

NetExec Kerberos Enumeration Brute Force

Perform brute force attacks, similar to Kerbrute, to verify if a user is valid in the domain through Kerberos.

  • If the user exists: KDC_ERR_PREAUTH_FAILED message will appear

  • If the user doesn't exist: KDC_ERR_C_PRINCIPAL_UNKNOWN message will appear

ridenum

Repository: GitHub - trustedsec/ridenum

Rid_enum is a null session RID cycle attack for brute forcing domain controllers.

impacket-lookupsid (No Credentials)

Enumeration With Credentials

ldapdomaindump

rpcenum (Modified)

Through the modified rpcenum tool, we can perform complete enumeration of users and other information through the RPC protocol. This tool requires valid credentials.

Repository: GitHub - Gzzcoo/rpcenum-modified

rpcclient (With Credentials)

Enumerate users from RID 1000 to 1500 (range can be adjusted as needed). Valid credentials required.

NetExec (With Credentials)

impacket-lookupsid (With Credentials)

ldapsearch

Last updated