> 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/privesc/docker-escape/docker-toolbox-default-credentials-linux-privilege-escalation.md).

# الهروب من Docker (بيانات الاعتماد الافتراضية لـ Docker Toolbox) - تصعيد امتيازات Linux

## ما هو

تستغل مسارات الهروب من Docker سوء تهيئة الحاويات، أو موارد المضيف المثبتة، أو بيانات الاعتماد الافتراضية، أو كلمات المرور المعاد استخدامها، أو امتيازات الحاوية المفرطة. الهدف هو الانتقال من سياق الحاوية إلى الوصول على مستوى المضيف. تركز هذه الصفحة تحديدًا على **الهروب من Docker (بيانات اعتماد Docker Toolbox الافتراضية)** وتحافظ على سير الاستغلال بشكل عملي: حدّد الحالة، تحقّق منها بأمان، ثم شغّل أصغر حمولة لازمة لإثبات الأثر.

## الاستكشاف

ابدأ بتأكيد السياق المحلي والتهيئة الخاطئة الدقيقة قبل تشغيل مسار الاستغلال.

```bash
المعرّف
cat /proc/1/cgroup
mount
ls -la /var/run/docker.sock 2>/dev/null
```

## أمثلة

{% hint style="info" %}
أثناء الاستطلاع، حددنا أن جهاز Windows الخاص بنا لم يكن متاحًا مباشرة. ومع ذلك، تمكنا من الاتصال بجهاز Windows موجود داخل حاوية Docker، بعنوان IP `172.17.0.2` و `172.17.0.1` البوابة. سنحاول الآن الانتقال عبر هذه الحاوية وتصعيد امتيازاتنا.
{% endhint %}

<figure><img src="/files/325c7fa4c1ba34102bd283382c30d8e5f5ff4dfd" alt=""><figcaption></figcaption></figure>

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

### **التحقق من منفذ SSH**

أولًا، نحتاج إلى التحقق مما إذا كان منفذ SSH (22) مفتوحًا على بوابة Docker (172.17.0.1). استخدم أمرًا بسيطًا لهذا:

```bash
echo ' ' > /dev/tcp/172.17.0.1/22 && echo "[+] SSH مفتوح" || echo "[-] SSH مغلق"
```

المنفذ 22 مفتوح، ما يعني أنه يمكننا محاولة اتصال SSH بالجهاز الموجود في الحاوية.

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

#### **تسجيل الدخول باستخدام بيانات اعتماد Docker Toolbox الافتراضية**

المعرّفات الافتراضية لـ Docker Toolbox هي:

* **المستخدم**: `docker`
* **كلمة المرور** : `tcuser`

نحاول الآن الاتصال بالحاوية عبر SSH باستخدام هذه المعلومات. بمجرد الاتصال بالجهاز، نلاحظ أن لدينا وصولًا إلى جذر الحاوية بالمستخدم `docker`.

<figure><img src="/files/4a2841043aa258511f3e6b1c4928da860e44e5b7" 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/ar/privesc/docker-escape/docker-toolbox-default-credentials-linux-privilege-escalation.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.
