mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
GetADUsers.py, impacket-GetADUsers: add page (#15816)
This commit is contained in:
parent
e9af487030
commit
792b8e6adb
2 changed files with 30 additions and 0 deletions
21
pages/common/getadusers.py.md
Normal file
21
pages/common/getadusers.py.md
Normal file
|
@ -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: <https://github.com/fortra/impacket>.
|
||||
|
||||
- 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`
|
9
pages/common/impacket-getadusers.md
Normal file
9
pages/common/impacket-getadusers.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
# impacket-GetADUsers
|
||||
|
||||
> This command is an alias of `GetADUsers.py`.
|
||||
> Part of the Impacket suite.
|
||||
> More information: <https://github.com/fortra/impacket>.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr GetADUsers.py`
|
Loading…
Add table
Reference in a new issue