# User Privileges

## **Basic Privilege Enumeration**

* **Check current user privileges:**

  * `whoami /priv` → Lists all privileges assigned to the current user. This is crucial for identifying rights that could lead to privilege escalation (e.g., SeBackupPrivilege, SeImpersonatePrivilege).

  **Common Privileges to Look for:**

  * `SeBackupPrivilege` → Allows the user to bypass file security to perform backups.
  * `SeRestorePrivilege` → Allows the user to overwrite system files, useful for file replacement attacks.
  * `SeTakeOwnershipPrivilege` → Allows taking ownership of any object, which can lead to control over important files or processes.
  * `SeImpersonatePrivilege` → Allows impersonation of a token, often leading to privilege escalation (common in token impersonation attacks).
  * `SeDebugPrivilege` → Allows debugging processes, typically restricted to admins. Can be used to inject code into privileged processes.


---

# 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://notes.dollarboysushil.com/windows-privilege-escalation/user-privileges.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.
