quser.exe

  • File Path: C:\Windows\system32\quser.exe
  • Description: Query User Utility

Hashes

Type Hash
MD5 480868AEBA9C04CA04D641D5ED29937B
SHA1 D675361B748CAF22A3C1C275CCFF2D472245099C
SHA256 766C791EDFA6EEEBA0F99D6481BFE23BF59E6ACB81A930B71F3AA33EFBAFE544
SHA384 58DC5D3A0B332F42D0CEFE7344C5272C06D6A1A35B997D38E8E43870FE9AF2C9F194FA138D01514CF1B1D7A0043A906A
SHA512 8E5BF5D46ECBECF552295A9AE938BECD82F18ACC643256C203F8DD5538292198D10F6C3CA1571B5110AD279280CAF4778E64B937BE86D5A9B87F30A126893FF8
SSDEEP 768:KpDszzRss58elGTDZznkOh6Z8QBc6ij5vYMo:KpDszJWlkDm6iRYMo
IMP B72F14292FAC033099AD1A08D6867486
PESHA1 022E2528554367E4EAC67795FD9C133F3E8F67CF
PE256 57DF4F4BE576D2D4AEF25CD37FF6D0797302EADCCCF65FC2145E235CE6A3DA07

Runtime Data

Usage (stdout):

Display information about users logged on to the system.

QUERY USER [username | sessionname | sessionid] [/SERVER:servername]

  username            Identifies the username.
  sessionname         Identifies the session named sessionname.
  sessionid           Identifies the session with ID sessionid.
  /SERVER:servername  The server to be queried (default is current).


Usage (stderr):

Invalid parameter(s)
Display information about users logged on to the system.

QUERY USER [username | sessionname | sessionid] [/SERVER:servername]

  username            Identifies the username.
  sessionname         Identifies the session named sessionname.
  sessionid           Identifies the session with ID sessionid.
  /SERVER:servername  The server to be queried (default is current).


Loaded Modules:

Path
C:\Windows\System32\KERNEL32.DLL
C:\Windows\System32\KERNELBASE.dll
C:\Windows\SYSTEM32\ntdll.dll
C:\Windows\system32\quser.exe

Signature

  • Status: Signature verified.
  • Serial: 330000023241FB59996DCC4DFF000000000232
  • Thumbprint: FF82BC38E1DA5E596DF374C53E3617F7EDA36B06
  • 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: quser.exe.mui
  • Product Name: Microsoft Windows Operating System
  • Company Name: Microsoft Corporation
  • File Version: 10.0.19041.1 (WinBuild.160101.0800)
  • Product Version: 10.0.19041.1
  • Language: English (United States)
  • Legal Copyright: Microsoft Corporation. All rights reserved.
  • Machine Type: 64-bit

File Scan

  • VirusTotal Detections: 0/75
  • VirusTotal Link: https://www.virustotal.com/gui/file/766c791edfa6eeeba0f99d6481bfe23bf59e6acb81a930b71f3aa33efbafe544/detection

Possible Misuse

The following table contains possible examples of quser.exe being misused. While quser.exe is not inherently malicious, its legitimate functionality can be abused for malicious purposes.

Source Source File Example License
sigma proc_creation_win_local_system_owner_account_discovery.yml - '\quser.exe' DRL 1.0
sigma proc_creation_win_multiple_suspicious_cli.yml - quser.exe DRL 1.0
sigma proc_creation_win_webshell_detection.yml - '\quser.exe' DRL 1.0
atomic-red-team T1033.md quser /SERVER:”#{computer_name}” MIT License. © 2018 Red Canary
atomic-red-team T1033.md quser MIT License. © 2018 Red Canary

Additional Info*

*The information below is copied from MicrosoftDocs, which is maintained by Microsoft. Available under CC BY 4.0 license.


quser

Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

Displays information about user sessions on a Remote Desktop Session Host server. You can use this command to find out if a specific user is logged on to a specific Remote Desktop Session Host server. This command returns the following information:

  • Name of the user

  • Name of the session on the Remote Desktop Session Host server

  • Session ID

  • State of the session (active or disconnected)

  • Idle time (the number of minutes since the last keystroke or mouse movement at the session)

  • Date and time the user logged on

[!NOTE] This command is the same as the query user command. To find out what’s new in the latest version, see What’s New in Remote Desktop Services in Windows Server.

Syntax

quser [<username> | <sessionname> | <sessionID>] [/server:<servername>]

Parameters

Parameter Description
<username> Specifies the logon name of the user that you want to query.
<sessionname> Specifies the name of the session that you want to query.
<sessionID> Specifies the ID of the session that you want to query.
/server:<servername> Specifies the Remote Desktop Session Host server that you want to query. Otherwise, the current Remote Desktop Session Host server is used. This parameter is only required if you’re using this command from a remote server.
/? Displays help at the command prompt.
Remarks
  • To use this command, you must have Full Control permission or special access permission.

  • If you don’t specify a user using the <username>, <sessionname>, or sessionID parameters, a list of all users who are logged on to the server is returned. Alternatively, you can also use the query session command to display a list of all sessions on a server.

  • When quser returns information, a greater than (>) symbol is displayed before the current session.

Examples

To display information about all users logged on the system, type:

quser

To display information about the user USER1 on server Server1, type:

quser USER1 /server:Server1

Additional References


MIT License. Copyright (c) 2020-2021 Strontic.