diff --git a/pages/common/getadusers.py.md b/pages/common/getadusers.py.md new file mode 100644 index 00000000000000..d068fce077f344 --- /dev/null +++ b/pages/common/getadusers.py.md @@ -0,0 +1,21 @@ +# GetADUsers.py + +> Retrieve a list of users from Active Directory, including attributes like last logon timestamp and email. +> Part of the Impacket suite. +> More information: . + +- Enumerate all Active Directory users and their attributes: + +`GetADUsers.py -all -dc-ip {{domain_controller_ip}} {{domain}}/{{username}}:{{password}}` + +- Retrieve information only for a specific user: + +`GetADUsers.py -user {{user}} -dc-ip {{domain_controller_ip}} {{domain}}/{{username}}:{{password}}` + +- Extract user details using pass-the-hash authentication: + +`GetADUsers.py -all -dc-ip {{domain_controller_ip}} -hashes {{LM_Hash}}:{{NT_Hash}} {{domain}}/{{username}}` + +- Save output to a file: + +`GetADUsers.py -all -dc-ip {{domain_controller_ip}} {{domain}}/{{username}}:{{password}} > output.txt` diff --git a/pages/common/impacket-getadusers.md b/pages/common/impacket-getadusers.md new file mode 100644 index 00000000000000..481deaae5a76ec --- /dev/null +++ b/pages/common/impacket-getadusers.md @@ -0,0 +1,9 @@ +# impacket-GetADUsers + +> This command is an alias of `GetADUsers.py`. +> Part of the Impacket suite. +> More information: . + +- View documentation for the original command: + +`tldr GetADUsers.py`