> For the complete documentation index, see [llms.txt](https://notes.m4lwhere.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.m4lwhere.org/offensive/priv-escalation.md).

# Priv Escalation

LinPEAS, WinPeas, linux-exploit-suggester

```bash
sudo -l        # List permissions in sudo
sudo -l -l     # List allowed sudo commands
wsl -u root visudo    # Fix broken WSL sudo file
```

Find writable directories available to current user

```
find / -type d -perm 0222 2>/dev/null
```
