Summary

GetADUsers.py is an Impacket tool for enumerating Active Directory users. It queries a domain controller and retrieves information such as usernames, descriptions, and other user attributes. It is mainly useful during AD enumeration for identifying valid accounts and potentially interesting user information.

Commands

GetADUsers.py DOMAIN/USER:PASSWORD -dc-ip DC-IP - Basic domain users enumeration.
GetADUsers.py DOMAIN/USER:PASSWORD -dc-ip DC-IP -all - Display additional information about users.
GetADUsers.py -hashes :NTHASH DOMAIN/USER@DOMAIN -dc-ip DC-IP - Authenticate using an NTLM hash.
GetADUsers.py DOMAIN/USER:PASSWORD -dc-ip DC-IP -outputfile users.txt - Save the results to a file.