> 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-vulnerabilities/webdav-attack/webdav-techniques-pentesting-web.md).

# تقنيات WebDAV

<figure><img src="/files/358469f2d8fe3a22ebc76f171ae669106b7d4042" alt=""><figcaption></figcaption></figure>

### الاستطلاع (whatweb):

> المرحلة الأولى **الاستطلاع** تحاول تحديد امتدادات الملفات التي يسمح بها الخادم. وبمجرد معرفة تلك الامتدادات، يمكن للمهاجمين محاولة رفع ملفات خبيثة وتنفيذها. وإذا نجح الرفع والتنفيذ، فقد يحصلون على وصول غير مصرح به ويخترقون النظام.

* الـ **WhatWeb** تشير الأداة إلى أن **WebDAV** البروتوكول مستخدم.

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

### الهجوم بالقوة الغاشمة (Davtest):

> الأداة **Davtest** هي أداة سطر أوامر تُستخدم لإجراء اختبارات اختراق على خوادم WebDAV. يمكن استخدام Davtis لعدّ الموارد المحمية على خادم WebDAV، وكذلك لاختبار إعدادات أمان الخادم. كما يمكن استخدام Davtis لاختبار المصادقة والتفويض الخاصين بالخادم، واكتشاف الثغرات المعروفة.

```bash
cat /usr/share/wordlists/rockyou.txt| whithe read password; do response=$(davtis -url http://127.0.0.1 -auth admin:$password 2>&1 | grep -i succeed); if [ $response ]; then echo "[+] كلمة المرور الصحيحة هي $password"; break; fi; done

```

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

### رفع الملفات (Cadaver):

> **Cadaver** هي أداة أخرى من سطر الأوامر تُستخدم للتفاعل مع خوادم WebDAV. تتيح Cadaver للمستخدمين استعراض موارد الخادم ورفع الملفات وتنفيذ الأوامر على الخادم. ويمكن أيضًا استخدامها في مهام اختبار الاختراق مثل تعداد الموارد المحمية واستغلال الثغرات المعروفة.

* بمجرد أن نعرف **اسم المستخدم وكلمة المرور** باستخدام هجوم القوة الغاشمة، نتصل بـ Cadaver.

<figure><img src="/files/7e218d3bad416d8f6c92b9360d87ab83ca8b445e" alt=""><figcaption></figcaption></figure>

* لـ **رفع الملفات**، نستخدم الأمر **put** متبوعًا باسم الملف:

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

<figure><img src="/files/15864e0367096a8b2298c0a8a1825ebd73961afb" alt=""><figcaption></figcaption></figure>

* إذا **WebDAV** مفسَّر **PHP** الرمز، يمكننا تنفيذ [LFI](/ar/web-vulnerabilities/owasp-top-10-vulnerabilities/vulnerability-local-file-inclusion-lfi.md) أو حتى [RFI](/ar/web-vulnerabilities/owasp-top-10-vulnerabilities/vulnerability-remote-file-inclusion-rfi.md).


---

# 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-vulnerabilities/webdav-attack/webdav-techniques-pentesting-web.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.
