# 09- Local Privilege Escalation Techniques - Windows Edition

* UAC and bypass
* Access Token Manipulation
* Exposed credentials (Azure, PowerShell history,...)
* Missing patches
* Automated deployment and Autologon passwords in clear text
* AlwaysInstallElevated (Any User can run MSI as System)
* Misconfigured Services
* Unquoted path
* DLL Hijacking

#### Tools

* PowerUP
* BeRoot
* [Privesc](https://github.com/enjoiz/Privesc)

#### PowerUp

Get services with unquoted paths and a space in their name

```
Get-ServiceUnquoted -Verbose
```

Get services where the currentuser can write to its binary path or change argument to the binary

```
Get-ModifiableServicefile -Verbose
```

Get the services whose configuration current user can modify

```
Get-ModifiableService -Verbose
```

Open a reverse shell listening using powercat

```
powercat -l -p 4444 -v -t 1024
```


---

# Agent Instructions: 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:

```
GET https://dr-anhkwar.gitbook.io/internal-network-penetration-testing/09-lpe-windows-edition.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
