wmi
wmi is a DCOM/WMI client implementation based on Samba4 sources for interacting with WMI services on Windows systems. It provides a command line client to perform remote command execution on Windows 2000/XP/2003 machines.
Description
The wmi-client package contains tools for remote interaction with Windows Management Instrumentation (WMI) services using DCOM/RPC mechanisms. This implementation, derived from Samba4 sources, enables cybersecurity professionals to execute commands and query system information remotely on legacy Windows systems like 2000, XP, and 2003.
Primary use cases include penetration testing, post-exploitation activities, and system reconnaissance where administrative credentials are available. The tools leverage standard Windows protocols, making them suitable for environments with compatible domain controllers or standalone Windows hosts.
The package includes the main 'wmic' command line client and additional utilities like 'wmis', providing flexible options for authentication, namespace specification, and output formatting during remote operations.
How It Works
wmi operates as a DCOM/WMI client using RPC/DCOM protocols to communicate with WMI services on target Windows machines. Based on Samba4 sources, it authenticates via NTLM or other Samba-supported mechanisms and executes WQL queries or commands within specified WMI namespaces (default: root\cimv2). Results are returned with configurable delimiters for multi-value outputs, supporting remote system interrogation and execution.
Installation
sudo apt install wmi-clientFlags
Examples
wmic --helpwmic -U [domain/]adminuser%password //host "select * from Win32_ComputerSystem"wmic --namespace=root\cimv2 //host "select * from Win32_Process"wmic --delimiter=',' //host "select Name,Version from Win32_Product"wmic -U adminuser%password //hostwmis -U [domain/]adminuser%password //hostwmic -N //host