1022 B
1022 B
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_tokenormake_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, Context Tracking
Command Category: Token Operations
Requires Admin: No