> 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/web/information-disclosure/source-code-disclosure-via-backup-files.md).

# كشف الشيفرة المصدرية عبر ملفات النسخ الاحتياطي

### كشف الشيفرة المصدرية عبر ملفات النسخ الاحتياطي

**وصف المختبر**

يُعرِّض هذا المختبر الشيفرة المصدرية للتطبيق عبر **ملفات النسخ الاحتياطي** المخزنة في دليل مخفي. / الهدف هو تحديد وتقديم **كلمة مرور قاعدة البيانات**، والتي تم ترميزها بشكل ثابت في الشيفرة المصدرية المكشوفة.

**مراحل العملية**

**اكتشاف المحتوى**/ باستخدام **Burp Suite** (دالة Discover Content)، نحلل المسارات المتاحة للتطبيق.

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

**تحديد دليل حساس**/ يكشف التحليل عن وجود دليل مخفي باسم **نسخة احتياطية**.

<figure><img src="/files/17916705bc7ab968ddd3a954b3c0586f6a309646" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/24844102a0fd158a42098570fdb1610b3494217c" alt=""><figcaption></figcaption></figure>

**الوصول إلى ملفات النسخ الاحتياطي**/ في هذا الدليل، يوجد ملف نسخ احتياطي بامتداد `.bk` يمكن الوصول إليه. / يحتوي على \*\*شيفرة Java\*\* موضحة.

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

**تحليل الشيفرة المكشوفة**/ يكشف الملف عن معلومات تسجيل الدخول إلى **PostgreSQL** قاعدة بيانات، مع بيانات اعتماد مضمّنة بشكل ثابت.

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

```java
        ConnectionBuilder connectionBuilder = ConnectionBuilder.from(
                "org.postgresql.Driver",
                "postgresql",
                "localhost",
                5432,
                "postgres",
                "postgres",
                "eq77s9j4j4sa5a3m9iymzi9e2m8e68sj"
        ).withAutoCommit();
```


---

# 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/web/information-disclosure/source-code-disclosure-via-backup-files.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.
