> ## Documentation Index
> Fetch the complete documentation index at: https://docs.specterops.io/llms.txt
> Use this file to discover all available pages before exploring further.

# LDAP Enumeration (find)

> Query LDAP for SCCM infrastructure through schema extension checks, Management Point discovery, and keyword searches.

The `find` module performs comprehensive LDAP enumeration to identify SCCM-related infrastructure in Active Directory environments. This is typically the first step in any SCCM assessment.

<Info>
  The find module uses multiple discovery techniques to build a complete picture of SCCM infrastructure without requiring elevated privileges.
</Info>

## Discovery Methods

The find module queries LDAP using four distinct approaches to identify SCCM assets:

<Accordion title="1. Schema Extension Discovery">
  **DACL Analysis of System Management Container**

  Checks the Discretionary Access Control List (DACL) for the 'System Management' container that is manually created during the AD schema extension process. This container is a key indicator of SCCM deployment.
</Accordion>

<Accordion title="2. Management Point Resolution">
  **Published Management Point Discovery**

  Resolves any published Management Points that clients use to query for policy and content. These are critical infrastructure components that handle client communications.
</Accordion>

<Accordion title="3. Distribution Point Detection">
  **PXE-Enabled Distribution Points**

  Identifies PXE-enabled Distribution Points that utilize Windows Deployment Services (WDS) for operating system deployment. These can be leveraged for network access account extraction.
</Accordion>

<Accordion title="4. Naming Convention Search">
  **Keyword-Based Discovery**

  Searches for "SCCM" and "MECM" keywords throughout the entire directory based on commonly observed naming convention habits in enterprise environments.

  <Warning>
    Nested group resolution is disabled by default. Use the `-resolve` flag cautiously as it can be slow and inefficient in large environments.
  </Warning>
</Accordion>

## Prerequisites

<Card title="Requirements" icon="checklist">
  * Valid Active Directory credentials (any domain user)
  * Network access to domain controller
  * LDAP/LDAPS connectivity (ports 389/636)
</Card>

## Command Syntax

<CodeGroup>
  ```bash Command Format theme={null}
  python3 sccmhunter.py find [OPTIONS]
  ```

  ```bash Basic Example theme={null}
  python3 sccmhunter.py find -u 'lowpriv' -p 'P@ssw0rd' -d internal.lab -dc-ip 10.10.100.100
  ```

  ```bash With Debug Output theme={null}
  python3 sccmhunter.py find -u 'lowpriv' -p 'P@ssw0rd' -d internal.lab -dc-ip 10.10.100.100 -debug
  ```
</CodeGroup>

### Parameters

<Accordion title="Required Parameters">
  | Parameter | Description                  | Example         |
  | --------- | ---------------------------- | --------------- |
  | `-d`      | Target domain name           | `internal.lab`  |
  | `-dc-ip`  | Domain controller IP or FQDN | `10.10.100.100` |
</Accordion>

<Accordion title="Authentication Options">
  | Parameter  | Description                                | Example                                             |
  | ---------- | ------------------------------------------ | --------------------------------------------------- |
  | `-u`       | Username for authentication                | `lowpriv`                                           |
  | `-p`       | Password for authentication                | `P@ssw0rd`                                          |
  | `-hashes`  | NT:LM hash for authentication              | `aad3b435b51404ee:5fbc3d5fec8206a30f4b6c473d68ae76` |
  | `-k`       | Use Kerberos authentication                |                                                     |
  | `-no-pass` | Don't prompt for password (useful with -k) |                                                     |
  | `-aes`     | AES key for Kerberos (128 or 256 bits)     |                                                     |
</Accordion>

<Accordion title="Advanced Options">
  | Parameter  | Description                          | Example        |
  | ---------- | ------------------------------------ | -------------- |
  | `-t`       | Target domain (for cross-trust auth) | `external.lab` |
  | `-resolve` | Resolve nested group members         |                |
  | `-ldaps`   | Use LDAPS instead of LDAP            |                |
  | `-debug`   | Enable verbose logging               |                |
</Accordion>

<Warning>
  Use the `-resolve` flag cautiously as it can be slow and resource-intensive in large environments with deeply nested groups.
</Warning>

## Usage Examples

<Accordion title="Basic LDAP Query">
  **Run a standard enumeration against the domain**

  ```
  └─# python3 sccmhunter.py find -u 'lowpriv' -p 'P@ssw0rd' -d internal.lab -dc-ip 10.10.100.100

                                                                                            (
                                      888                         d8                         \
   dP"Y  e88'888  e88'888 888 888 8e  888 ee  8888 8888 888 8e   d88    ,e e,  888,8,        )
  C88b  d888  '8 d888  '8 888 888 88b 888 88b 8888 8888 888 88b d88888 d88 88b 888 "    ##-------->
   Y88D Y888   , Y888   , 888 888 888 888 888 Y888 888P 888 888  888   888   , 888           )
  d,dP   "88,e8'  "88,e8' 888 888 888 888 888  "88 88"  888 888  888    "YeeP" 888          /
                                                                                           (
                                                                   v0.0.2                   
                                                                   @garrfoster                    
      
      
      
  [21:15:03] INFO     [*] Checking for System Management Container.                                                                                                                                     
  [21:15:03] INFO     [+] Found System Management Container. Parsing DACL.                                                                                                                              
  [21:15:03] INFO     [+] Found 3 computers with Full Control ACE                                                                                                                                       
  [21:15:03] INFO     [*] Querying LDAP for published Sites and Management Points                                                                                                                       
  [21:15:03] INFO     [+] Found 3 Management Points in LDAP.                                                                                                                                            
  [21:15:03] INFO     [*] Searching LDAP for anything containing the strings 'SCCM' or 'MECM'                                                                                                           
  [21:15:03] INFO     [+] Found 5 principals that contain the string 'SCCM' or 'MECM'.                                                                                                                  
                                                                                       
  ```

  <Tip>
    The basic query provides a quick overview of SCCM infrastructure without detailed information. Use the debug flag for comprehensive details.
  </Tip>
</Accordion>

<Accordion title="Verbose Debug Query">
  **Run enumeration with detailed debug output for comprehensive analysis**

  ```
  python3 sccmhunter.py find -u 'lowpriv' -p 'P@ssw0rd' -d internal.lab -dc-ip 10.10.100.100 -debug

                                                                                            (
                                      888                         d8                         \
   dP"Y  e88'888  e88'888 888 888 8e  888 ee  8888 8888 888 8e   d88    ,e e,  888,8,        )
  C88b  d888  '8 d888  '8 888 888 88b 888 88b 8888 8888 888 88b d88888 d88 88b 888 "    ##-------->
   Y88D Y888   , Y888   , 888 888 888 888 888 Y888 888P 888 888  888   888   , 888           )
  d,dP   "88,e8'  "88,e8' 888 888 888 888 888  "88 88"  888 888  888    "YeeP" 888          /
                                                                                           (
                                                                   v0.0.2                   
                                                                   @garrfoster                    
      
      
      
  [21:22:46] DEBUG    [*] Database ready.                                                                                                                                                               
  [21:22:46] DEBUG    [+] Bind successful ldap://10.10.100.100:389 - cleartext                                                                                                                          
  [21:22:46] INFO     [*] Checking for System Management Container.                                                                                                                                     
  [21:22:46] INFO     [+] Found System Management Container. Parsing DACL.                                                                                                                              
  [21:22:46] INFO     [+] Found 3 computers with Full Control ACE                                                                                                                                       
  [21:22:46] INFO     [*] Querying LDAP for published Sites and Management Points                                                                                                                       
  [21:22:46] INFO     [+] Found 3 Management Points in LDAP.                                                                                                                                            
  [21:22:46] INFO     [*] Searching LDAP for anything containing the strings 'SCCM' or 'MECM'                                                                                                           
  [21:22:46] INFO     [+] Found 5 principals that contain the string 'SCCM' or 'MECM'.                                                                                                                  
  [21:22:46] INFO     Site Servers Table                                                                                                                                                                
  [21:22:46] INFO     +---------------------+------------+-------+-----------------+--------------+---------------+----------+---------+                                                                
                      | Hostname            | SiteCode   | CAS   | SigningStatus   | SiteServer   | SMSProvider   | Config   | MSSQL   |                                                                
                      +=====================+============+=======+=================+==============+===============+==========+=========+                                                                
                      | active.internal.lab |            |       |                 | True         |               |          |         |                                                                
                      +---------------------+------------+-------+-----------------+--------------+---------------+----------+---------+                                                                
                      | sccm.internal.lab   |            |       |                 | True         |               |          |         |                                                                
                      +---------------------+------------+-------+-----------------+--------------+---------------+----------+---------+                                                                
                      | sccm.internal.lab   |            |       |                 | True         |               |          |         |                                                                
                      +---------------------+------------+-------+-----------------+--------------+---------------+----------+---------+                                                                
  [21:22:46] INFO     Management Points Table                                                                                                                                                           
  [21:22:46] INFO     +---------------------+------------+-----------------+                                                                                                                            
                      | Hostname            | SiteCode   | SigningStatus   |                                                                                                                            
                      +=====================+============+=================+                                                                                                                            
                      | active.internal.lab | ACT        |                 |                                                                                                                            
                      +---------------------+------------+-----------------+                                                                                                                            
                      | mp.internal.lab     | LAB        |                 |                                                                                                                            
                      +---------------------+------------+-----------------+                                                                                                                            
                      | sccm.internal.lab   | LAB        |                 |                                                                                                                            
                      +---------------------+------------+-----------------+                                                                                                                            
  [21:22:46] INFO     Computers Table                                                                                                                                                                   
  [21:22:46] INFO     +-------------------+------------+-----------------+--------------+-------------------+---------------------+---------------+--------+---------+                                  
                      | Hostname          | SiteCode   | SigningStatus   | SiteServer   | ManagementPoint   | DistributionPoint   | SMSProvider   | WSUS   | MSSQL   |                                  
                      +===================+============+=================+==============+===================+=====================+===============+========+=========+                                  
                      | sccm.internal.lab |            |                 |              |                   |                     |               |        |         |                                  
                      +-------------------+------------+-----------------+--------------+-------------------+---------------------+---------------+--------+---------+                                  
  [21:22:46] INFO     Users Table                                                                                                                                                                       
  [21:22:46] INFO     +------+--------+------------------+------------------------+---------------+                                                                                                     
                      | cn   | name   | sAMAAccontName   | servicePrincipalName   | description   |                                                                                                     
                      +======+========+==================+========================+===============+                                                                                                     
                      +------+--------+------------------+------------------------+---------------+                                                                                                     
  [21:22:46] INFO     Groups Table                                                                                                                                                                      
  [21:22:46] INFO     +------------------+------------------+------------------+-------------------------------------------+---------------+
                      | cn               | name             | sAMAAccontName   | member                                    | description   |
                      +==================+==================+==================+===========================================+===============+
                      | SCCM_SiteServers | SCCM_SiteServers | SCCM_SiteServers | CN=ACTIVE,CN=Computers,DC=internal,DC=lab |               |
                      |                  |                  |                  | CN=SCCM,CN=Computers,DC=internal,DC=lab   |               |
                      +------------------+------------------+------------------+-------------------------------------------+---------------+
  ```

  <Info>
    Debug mode provides detailed tables with comprehensive information about discovered SCCM infrastructure including site servers, management points, computers, users, and groups.
  </Info>
</Accordion>

## Interpretation of Results

<Card title="Understanding Output Tables" icon="table">
  The find command returns structured data in several categories:

  * **Site Servers Table**: Core SCCM infrastructure servers with their roles
  * **Management Points Table**: Client-facing communication endpoints
  * **Computers Table**: All discovered SCCM-related systems
  * **Users Table**: Service accounts and SCCM-related users
  * **Groups Table**: Security groups used by SCCM, especially helpful for privilege escalation
</Card>

## Next Steps

<CardGroup cols={2}>
  <Card title="SMB Enumeration" icon="server" href="/sccmhunter-docs/enumeration/smb">
    Profile discovered infrastructure with detailed service enumeration
  </Card>

  <Card title="Show Results" icon="eye" href="/sccmhunter-docs/enumeration/show">
    Display and export enumeration results for further analysis
  </Card>
</CardGroup>
