> For the complete documentation index, see [llms.txt](https://viperone.gitbook.io/pentest-everything/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://viperone.gitbook.io/pentest-everything/everything/everything-active-directory/sccm-mecm/recon.md).

# Recon

**Common SCCM Ports**

{% embed url="<https://learn.microsoft.com/en-us/mem/configmgr/core/plan-design/hierarchy/ports>" %}

<table><thead><tr><th width="118">Protocol</th><th width="144">Port(s)</th><th>Service</th></tr></thead><tbody><tr><td>TCP</td><td>8530, 8531,</td><td>Site Server, Management Point</td></tr><tr><td></td><td>10123</td><td></td></tr><tr><td>TCP</td><td>49152-49159</td><td>Distribution Point</td></tr><tr><td>UDP</td><td>4011</td><td>Operating System Deployment (OSD)</td></tr></tbody></table>

Nmap

```
# SCCM search
nmap -p 80,443,445,1433,10123,8530,8531 -sV [IP]

# search PXE
nmap -p 67,68,69,4011,547 -sV -sU [IP]
```

### PowerShell

```
([ADSISearcher]("objectClass=mSSMSManagementPoint")).FindAll() | % {$_.Properties}
```

## Configuration Manager

<div align="center" data-full-width="true"><figure><img src="/files/rmgPYRgwOn2jAmBz1nWU" alt=""><figcaption></figcaption></figure></div>

## Linux Recon

* sccmhunter: <https://github.com/garrettfoster13/sccmhunter>

```python
python3 sccmhunter.py find -u <user> -p <password> -d <domain> -dc-ip <ip> -debug

# Review collected information
python3 sccmhunter.py show -all 
```

Discovery through SMB

```python
smbmap -u <user> -p <password> -d <domain> -H <ip> 
```

<figure><img src="/files/4UskoauaUc0b3fSNtaBx" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://viperone.gitbook.io/pentest-everything/everything/everything-active-directory/sccm-mecm/recon.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
