> For the complete documentation index, see [llms.txt](https://mysther.gitbook.io/knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mysther.gitbook.io/knowledge-base/criptografia/padding-oracle-attack.md).

# Padding Oracle Attack

As cifras de bloco criptografa dados apenas em blocos de determinados tamanhos. Para identificarmos esse hash, devemos nos atentar aos seguintes pontos:

* Os valores são bem aleatórios não parecendo ter lógica alguma &#x20;
* Um block cipher é usado. O comprimento do texto cifrado decodificado (geralmente em Base64) é um múltiplo de tamanhos comuns de blocos de cifra, como 8 ou 16 bytes.&#x20;

#### Crypt

```
padbuster <url> <chave_criptogtafada> 8 --cookies <cookie> --encoding 0 -plaintext <string_a_sera_criptografada>
```

#### Decrypt

```
padbuster <url> <chave_criptogtafada> 8 --cookies <cookie> --encoding 0
```

#### Sites

```
# Explicação sobre Padding Oracle Attack
https://www.owasp.org/index.php/Testing_for_Padding_Oracle_(OTG-CRYPST-002)
```


---

# 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:

```
GET https://mysther.gitbook.io/knowledge-base/criptografia/padding-oracle-attack.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
