> 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.md).

# التصعيد المحلي للامتيازات والاعتمادات

تغطي هذه الملاحظات فحوصات Windows المفيدة بعد الحصول على وصول محلي: إعداد UAC، تثبيت MSI بصلاحيات مرتفعة، بيانات الاعتماد في الذاكرة، خلايا السجل، وملفات النشر التي تحتوي على أسرار قابلة لإعادة الاستخدام.

## فحوصات محلية

1. تحقق من الرمز المميز الحالي، وعضوية المجموعات، ومستوى السلامة، وحالة UAC.
2. تحقق مما إذا كان مفتاحا السجل AlwaysInstallElevated كلاهما مفعّلين.
3. ابحث عن مصادر بيانات الاعتماد المحلية: LSASS، وSAM، وأسرار LSA، وقيم السجل، وملفات النشر، وتكوينات التطبيقات.
4. تحقق من كل نتيجة في مختبر أو تقييم مُصرَّح به قبل محاولة تصعيد الامتيازات.

## فرز بيانات الاعتماد السريع

استخدم أولاً فحوصات سريعة ومنخفضة التأثير. غالبًا ما تكون كلمة مرور مسؤول محلي معاد استخدامها أو سر نشر أسرع وأكثر أمانًا من استغلال نواة.

```cmd
whoami /all
cmdkey /list
net use
dir C:\Users\ /a
```

```powershell
Get-ChildItem -Path C:\Users -Force -ErrorAction SilentlyContinue
Get-Content "$env:APPDATA\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt" -ErrorAction SilentlyContinue
```

أماكن جيدة للفحص:

* ملفات نشر Windows: `unattend.xml`, `Autounattend.xml`، وبقايا Sysprep.
* سجل الأوامر: PowerShell PSReadLine، ونسخ المحطة الطرفية، وبرامج مساعدة المسؤول.
* تكوينات التطبيقات: IIS `web.config`، وعملاء قواعد البيانات، وأدوات النسخ الاحتياطي، وعملاء VPN، والوكلاء الداخليين.
* قيم السجل: autologon، وجلسات PuTTY، وجلسات WinSCP، وسجل RDP، ومفاتيح البرامج القديمة التابعة لجهات خارجية.
* خلايا السجل المحلية: `SAM`, `SYSTEM`، و `SECURITY` عندما تسمح الامتيازات الحالية بتصدير آمن.

## فحوصات سريعة للسجل

عادةً ما تندرج نتائج السجل ضمن ثلاث فئات: إساءة استخدام سياسة التثبيت، أو بيانات اعتماد مخزنة، أو مسارات التشغيل التلقائي التي يمكن لمستخدم عادي تعديلها.

```cmd
reg query HKCU\Software\Policies\Microsoft\Windows\Installer /v AlwaysInstallElevated
reg query HKLM\Software\Policies\Microsoft\Windows\Installer /v AlwaysInstallElevated
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
reg query HKCU\Software\Microsoft\Windows\CurrentVersion\Run
reg query HKLM\Software\Microsoft\Windows\CurrentVersion\Run
```

بالنسبة لعمليات التشغيل التلقائي، لا تكتفِ بقيمة السجل. تحقق أيضًا من مسار الملف وأذونات الدليل الأصل:

```cmd
icacls "C:\Path\To\Autorun.exe"
icacls "C:\Path\To"
```

## التقنيات

<table data-view="cards" data-full-width="false" data-search="false"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h3><i class="fa-box-open" style="color:$primary;">:box-open:</i></h3></td><td><h4>AlwaysInstallElevated</h4></td><td>اكتشف واستغل سوء تهيئة AlwaysInstallElevated في MSI لتصعيد الامتيازات المحلية على Windows.</td><td><a href="/pages/573fb18beda5e5d77dc714001024b49d12b8e993">/pages/573fb18beda5e5d77dc714001024b49d12b8e993</a></td></tr><tr><td><h3><i class="fa-user-shield" style="color:$primary;">:user-shield:</i></h3></td><td><h4>تجاوز UAC</h4></td><td>تحقق من مستوى UAC في Windows وصحة سلوك تجاوز UAC في مختبر مُصرَّح به.</td><td><a href="/pages/157f5490118a7e14b76cd46e891ec3eb703fa015">/pages/157f5490118a7e14b76cd46e891ec3eb703fa015</a></td></tr><tr><td><h3><i class="fa-key" style="color:$primary;">:key:</i></h3></td><td><h4>تفريغ الهاشات باستخدام Mimikatz</h4></td><td>استخرج هاشات وأسرار Windows باستخدام Mimikatz أو Meterpreter Kiwi في مختبر مُصرَّح به.</td><td><a href="/pages/642358124a4b612aa35852ac3dc7b54779f15a0f">/pages/642358124a4b612aa35852ac3dc7b54779f15a0f</a></td></tr><tr><td><h3><i class="fa-file-lines" style="color:$primary;">:file-lines:</i></h3></td><td><h4>بيانات الاعتماد في ملفات Windows</h4></td><td>ابحث عن بيانات اعتماد Windows المخزنة في ملفات النشر وملفات الإجابات وملفات التكوين.</td><td><a href="/pages/a24a1a35836d6d0cc53d70c6af65c8b74ad63291">/pages/a24a1a35836d6d0cc53d70c6af65c8b74ad63291</a></td></tr></tbody></table>


---

# 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.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.
