whoami.exe
- File Path:
C:\Windows\system32\whoami.exe
- Description: whoami - displays logged on user information
Hashes
Type | Hash |
---|---|
MD5 | AA1E17EA3DB5CD9D8BC061CAEC74C6E8 |
SHA1 | 9746E91BFC629D3A2E1FE6289B549C0452702004 |
SHA256 | 8ECFFCCE38D4EE87ABAEE6CBE843D94D4F8FB98FAB3C356C7F6B70E60B10F88A |
SHA384 | 17F58D32D8A56D37CC46CCCCE9E63FEFD1FDD5CCF075A89FF9B0AC8D6B47797500B490CCE758D175E07250A298310526 |
SHA512 | 5CAA6E849C0787B3166FDC59DD179ACBDE96EBC6BE64E0357A847DD8D7A46FE3EC27E153B9B29AAA212BFF335D41292E1FAE657D8453CFFCFCAB2FEAE11D93CA |
SSDEEP | 1536:FWrwmGBaI/GlzU7Io5hNTswuqUCP7OHL/31qOxHPkP:ormBn7phhspdCPk0Oxv6 |
Runtime Data
Usage (stdout):
WhoAmI has three ways of working:
Syntax 1:
WHOAMI [/UPN | /FQDN | /LOGONID]
Syntax 2:
WHOAMI { [/USER] [/GROUPS] [/CLAIMS] [/PRIV] } [/FO format] [/NH]
Syntax 3:
WHOAMI /ALL [/FO format] [/NH]
Description:
This utility can be used to get user name and group information
along with the respective security identifiers (SID), claims,
privileges, logon identifier (logon ID) for the current user
on the local system. I.e. who is the current logged on user?
If no switch is specified, tool displays the user name in NTLM
format (domain\username).
Parameter List:
/UPN Displays the user name in User Principal
Name (UPN) format.
/FQDN Displays the user name in Fully Qualified
Distinguished Name (FQDN) format.
/USER Displays information on the current user
along with the security identifier (SID).
/GROUPS Displays group membership for current user,
type of account, security identifiers (SID)
and attributes.
/CLAIMS Displays claims for current user,
including claim name, flags, type and values.
/PRIV Displays security privileges of the current
user.
/LOGONID Displays the logon ID of the current user.
/ALL Displays the current user name, groups
belonged to along with the security
identifiers (SID), claims and privileges for
the current user access token.
/FO format Specifies the output format to be displayed.
Valid values are TABLE, LIST, CSV.
Column headings are not displayed with CSV
format. Default format is TABLE.
/NH Specifies that the column header should not
be displayed in the output. This is
valid only for TABLE and CSV formats.
/? Displays this help message.
Examples:
WHOAMI
WHOAMI /UPN
WHOAMI /FQDN
WHOAMI /LOGONID
WHOAMI /USER
WHOAMI /USER /FO LIST
WHOAMI /USER /FO CSV
WHOAMI /GROUPS
WHOAMI /GROUPS /FO CSV /NH
WHOAMI /CLAIMS
WHOAMI /CLAIMS /FO LIST
WHOAMI /PRIV
WHOAMI /PRIV /FO TABLE
WHOAMI /USER /GROUPS
WHOAMI /USER /GROUPS /CLAIMS /PRIV
WHOAMI /ALL
WHOAMI /ALL /FO LIST
WHOAMI /ALL /FO CSV /NH
WHOAMI /?
Usage (stderr):
ERROR: Invalid argument/option - '-help'.
Type "WHOAMI /?" for usage.
Signature
- Status: Signature verified.
- Serial:
33000000BCE120FDD27CC8EE930000000000BC
- Thumbprint:
E85459B23C232DB3CB94C7A56D47678F58E8E51E
- Issuer: CN=Microsoft Windows Production PCA 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
- Subject: CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
File Metadata
- Original Filename: whoami.exe.mui
- Product Name: Microsoft Windows Operating System
- Company Name: Microsoft Corporation
- File Version: 10.0.14393.0 (rs1_release.160715-1616)
- Product Version: 10.0.14393.0
- Language: English (United States)
- Legal Copyright: Microsoft Corporation. All rights reserved.
Possible Misuse
The following table contains possible examples of whoami.exe
being misused. While whoami.exe
is not inherently malicious, its legitimate functionality can be abused for malicious purposes.
Additional Info*
*The information below is copied from MicrosoftDocs, which is maintained by Microsoft. Available under CC BY 4.0 license.
whoami
Displays user, group and privileges information for the user who is currently logged on to the local system. If used without parameters, whoami displays the current domain and user name.
Syntax
whoami [/upn | /fqdn | /logonid]
whoami {[/user] [/groups] [/priv]} [/fo <Format>] [/nh]
whoami /all [/fo <Format>] [/nh]
Parameters
Parameter | Description |
---|---|
/upn | Displays the user name in user principal name (UPN) format. |
/fqdn | Displays the user name in fully qualified domain name (FQDN) format. |
/logonid | Displays the logon ID of the current user. |
/user | Displays the current domain and user name and the security identifier (SID). |
/groups | Displays the user groups to which the current user belongs. |
/priv | Displays the security privileges of the current user. |
/fo <Format> | Specifies the output format. Valid values include:</br>table Displays output in a table. This is the default value.</br>list Displays output in a list.</br>csv Displays output in comma-separated value (CSV) format. |
/all | Displays all information in the current access token, including the current user name, security identifiers (SID), privileges, and groups that the current user belongs to. |
/nh | Specifies that the column header should not be displayed in the output. This is valid only for table and CSV formats. |
/? | Displays help at the command prompt. |
Examples
To display the domain and user name of the person who is currently logged on to this computer, type:
whoami
Output similar to the following appears:
DOMAIN1\administrator
To display all of the information in the current access token, type:
whoami /all
Additional References
MIT License. Copyright (c) 2020-2021 Strontic.