# AD Enumeration

### Enumerating AD Users <a href="#kerberoasting" id="kerberoasting"></a>

Let's use some Impacket scripts to Enumerate users if we have a normal user account access.

```
                                                                                                                                                                       
┌──(kali㉿kali)-[~/Desktop]
└─$ impacket-GetADUsers -all -dc-ip 10.10.10.100 active.htb/SVC_TGS      
Impacket v0.10.0 - Copyright 2022 SecureAuth Corporation

Password:
[*] Querying 10.10.10.100 for information about domain.
Name                  Email                           PasswordLastSet      LastLogon           
--------------------  ------------------------------  -------------------  -------------------
Administrator                                         2018-07-18 15:06:40.351723  2023-07-21 02:36:10.518169 
Guest                                                 <never>              <never>             
krbtgt            
```

### Check if we have local admin access on domain controller

<figure><img src="/files/z3CTlKOyfmyZh2swX7zd" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/OQQrqOpSpwZpktGzRFYI" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://notes.cavementech.com/pentesting-quick-reference/active-directory/ad-enumeration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
