> 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/cms/duplicati-cms-exploitation/duplicati-backup-reading-files.md).

# Duplicati - Leitura de arquivos de backup

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

Com acesso ao **painel de administração do Duplicati**, crie um novo backup para exfiltrar a **chave SSH**.

<figure><img src="/files/9b043771f25dd174e386f2dfb3bb6ae820ce42d7" alt=""><figcaption></figcaption></figure>

**Análise da configuração do Docker**/ O `docker-compose.yml` arquivo mostra que os arquivos são armazenados no sistema host **origem** diretório, montado no contêiner.

<figure><img src="/files/66aba206e5ddd7aace0544dee8278b0e9db82f07" alt="" width="541"><figcaption></figcaption></figure>

**Seleção do diretório de destino**/ Para acessar arquivos sensíveis, defina o **backup** destino para esse diretório selecionando:

* **Pasta de origem** : `/source/home/marcus/`

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

* **Dados de origem:** `source/root/`

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

**Finalização da configuração**

* Salve a configuração.

<figure><img src="/files/10c21e4e5927fc66c7753bced30f0b2db6d48765" alt=""><figcaption></figcaption></figure>

* Executar o comando **backup** para recuperar os arquivos alvo.

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

### Extraindo arquivos do backup

Depois que o **backup** é executado, três arquivos ZIP são gerados.

<div data-full-width="true"><figure><img src="/files/d1db8891020e5c00a9b547f457956c5eed658734" alt=""><figcaption></figcaption></figure></div>

* **Acesso aos arquivos**
  * Abrir os arquivos diretamente falha por causa das restrições de acesso.
  * Por meio de **Duplicati**, use **Restaurar arquivos** para recuperar o conteúdo.

<figure><img src="/files/5a8116e71a185ab464c7891ed84d87c816fc45ad" alt=""><figcaption></figcaption></figure>

**Restauração e exfiltração**

* Extraia arquivos do backup.

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

Selecione **`/source/home/marcus/`** como a origem de restauração.

<figure><img src="/files/2abb809181020e43afefdcfd97b61f9fb7fb88be" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/648705f76bda726fe1541e3bff0c0fdb9e8b89ab" 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/pt-br/cms/duplicati-cms-exploitation/duplicati-backup-reading-files.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.
