wiki created

This commit is contained in:
marcos.luna
2025-11-06 12:23:49 +01:00
parent 6cd3511962
commit 2fe9fa8254
60 changed files with 5012 additions and 142 deletions
@@ -0,0 +1,42 @@
# whoami - Display Current Context
Display the current security context of the agent.
## Description
The `whoami` command displays the current security context of the agent. Shows the username and domain of the active security token. If token impersonation is active, displays the impersonated user context.
## Syntax
```
whoami
```
## Examples
```
whoami
```
## Features
- Shows the username and domain of the active security token
- If token impersonation is active (via `steal_token` or `make_token`), displays the impersonated user context
- Otherwise, displays the process token context
- Useful for verifying that token operations succeeded and for confirming the current privilege level before executing commands that require specific permissions
## Output
```
Current user: DOMAIN\User01
Domain: DOMAIN
```
## Related
[Token Support](../../../features.md#token-support), [Context Tracking](../../../features.md#context-tracking)
---
**Command Category:** Token Operations
**Requires Admin:** No