> 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/pt-br/password-attacks/brute-force-.pfx.md).

# Quebra de certificado PFX

<figure><img src="/files/6d59af9dd1ea6c94541874b7077b63b9d3bf7b46" alt=""><figcaption></figcaption></figure>

```bash
openssl pkcs12 -in legacyy_dev_auth.pfx -nocerts -out priv-key.pem -nodes
```

<figure><img src="/files/6c6ad4a7dc6fe4bf4c657097dea2d296941303f7" alt=""><figcaption></figcaption></figure>

#### Para quebrar um arquivo pfx ao descobrir a senha, usaremos a ferramenta crackpkcs12.

{% embed url="<https://github.com/crackpkcs12/crackpkcs12>" %}

```bash
crackpkcs12 -d /usr/share/wordlists/rockyou.txt legacyy_dev_auth.pfx
```

<figure><img src="/files/3e1eff3e19247d6ff47cc4097debbd4be4765db3" alt=""><figcaption></figcaption></figure>

### **Obtendo a licença privada e o certificado do arquivo .PFX**

Recuperação do clero privado

<figure><img src="/files/23a10f251f3f0b52302b2ee2c266beaf35c0766f" alt=""><figcaption></figcaption></figure>

Recuperando o certificado

```bash
openssl pkcs12 -in legacyy_dev_auth.pfx -nokeys -out certificate.pem
```

<figure><img src="/files/8fcebeab68a038b1e3ab0c18d57b56c3684d9c9f" alt=""><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/pt-br/password-attacks/brute-force-.pfx.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.
