> 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/username-enumeration-via-response-timing.md).

# استكشاف أسماء المستخدمين عبر توقيت الاستجابة

### استكشاف أسماء المستخدمين عبر زمن الاستجابة

هذه المختبرية عرضة لاستكشاف أسماء المستخدمين اعتمادًا على زمن الاستجابة. لحلها، تحتاج إلى تحديد اسم مستخدم صالح، وتنفيذ هجوم قوة عمياء على كلمة المرور، ثم الوصول إلى صفحة حسابك.

```bash
بيانات اعتمادك: wiener:peter
```

### **التحليل الأولي**

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

<figure><img src="/files/ed4ed94986da2c0c643aef6df1fae845dba6e800" alt="" width="477"><figcaption></figcaption></figure>

لتجاوز هذه الحماية، تتم إضافة الترويسة التالية:

```bash
X-Forwarded-For: 127.0.0.2
```

### **قياس زمن الاستجابة**

أرسل طلبًا مع **كلمة مرور** للمستخدم `wiener`:

{% code overflow="wrap" %}

```bash
username=wiener&password=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
```

{% endcode %}

ثم يُلاحظ أن الرد يستغرق حوالي **3 ثوانٍ** حتى يصل.

من ناحية أخرى، إذا تم إرسال الطلب نفسه مع اسم مستخدم غير صالح\*\*، فإن الرد يكون **فوريًا تقريبًا**:

```bash
username=dwdwd&password=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
```

هذا الاختلاف يتيح بالتالي التمييز بين اسم مستخدم **اسم المستخدم** صالح وغير صالح.

#### **قائمة باستخدام Intruder**

في Intruder، نستخدم **Pitchfork** الأسلوب.

* الموضع الأول: قائمة **بأسماء المستخدمين** التي سيتم اختبارها

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

الموضع الثاني: قائمة **بعناوين IP مختلفة** مُرسلة إلى `X-Forwarded-For`

<figure><img src="/files/787648d36a744e82ffa86fdc562dd3be2c0abbe8" alt=""><figcaption></figcaption></figure>

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

يتم تحليل الحقل **اكتمل الرد** على النحو التالي:

الردود المرتبطة بمستخدم صالح لها زمن أعلى بكثير (يشير Apache إلى قيمة أكبر بكثير).

<figure><img src="/files/6f0ca470b3e6c54f80bbb1c40ae91373f778b70c" alt=""><figcaption></figcaption></figure>

وهذا يتيح تحديد المستخدم الصحيح.

#### \*\* قوة كلمة المرور الغاشمة\*\*

بعد العثور على اسم المستخدم الصالح، تبدأ الهجوم على كلمة المرور.

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

نلاحظ أن المحاولة باستخدام كلمة المرور **chelsea** تنتج ردًا مختلفًا: **302 Found**، وهي علامة على أن المصادقة ناجحة.

<figure><img src="/files/2a07d517ccfb081277b837fadbf3ccbab74a7e0c" alt=""><figcaption></figcaption></figure>

ثم يتم تأكيد الوصول إلى الحساب.

<figure><img src="/files/ead253b79f1acdf0fa16cfbffd3ac75eb05c619a" 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/username-enumeration-via-response-timing.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.
