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

# WebDAV-Techniken

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

### Aufklärung (whatweb):

> Die erste **Aufklärung** Die Aufklärungsphase versucht zu ermitteln, welche Dateierweiterungen der Server erlaubt. Sobald diese Erweiterungen bekannt sind, können Angreifer versuchen, schädliche Dateien hochzuladen und auszuführen. Wenn der Upload und die Ausführung erfolgreich sind, können sie unbefugten Zugriff erlangen und das System kompromittieren.

* Das **WhatWeb** Das Tool weist darauf hin, dass das **WebDAV** Protokoll verwendet wird.

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

### Brute-Force (Davtest):

> Das Tool **Davtest** ist ein Kommandozeilenwerkzeug, das für Penetrationstests auf WebDAV-Servern verwendet wird. Davtis kann verwendet werden, um geschützte Ressourcen auf einem WebDAV-Server zu enumerieren sowie die Sicherheitskonfiguration des Servers zu testen. Davtis kann auch verwendet werden, um die Authentifizierung und die Autorisierung des Servers zu testen und bekannte Schwachstellen zu erkennen.

```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 "[+] Das richtige Passwort ist $password"; break; fi; done

```

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

### Datei-Upload (Cadaver):

> **Cadaver** ist ein weiteres Kommandozeilenwerkzeug, das zur Interaktion mit WebDAV-Servern verwendet wird. Cadaver ermöglicht es Benutzern, Serverressourcen zu durchsuchen, Dateien hochzuladen und Befehle auf dem Server auszuführen. Es kann auch für Penetrationstests-Aufgaben wie die Enumeration geschützter Ressourcen und das Ausnutzen bekannter Schwachstellen verwendet werden.

* Sobald wir die **Benutzername und das Passwort** durch den Brute-Force-Angriff kennen, verbinden wir uns mit Cadaver.

<figure><img src="/files/30f67075645df244fd2efc00849c544fff8ec8b7" alt=""><figcaption></figcaption></figure>

* Um **Dateien hochzuladen**, verwenden wir den Befehl **put** gefolgt vom Namen der Datei:

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

<figure><img src="/files/07595149a9eb271106a954b48d5ebdb60cc804f8" alt=""><figcaption></figcaption></figure>

* Wenn **WebDAV** interpretiert **PHP** Code könnten wir eine [LFI](/de/web-vulnerabilities/owasp-top-10-vulnerabilities/vulnerability-local-file-inclusion-lfi.md) oder sogar eine [RFI](/de/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/de/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.
