This C++ program is inspired by Impacket's wmiexec.py and demonstrates how to use Windows Management Instrumentation (WMI) to execute a command on a remote Windows machine. It connects to a remote machine, sets up the necessary security settings, and then uses WMI to execute a command.
- Windows operating system
- Visual C++ development environment (Visual Studio recommended)
- Clone this repository or download the source code.
- Open the project in your preferred C++ development environment (e.g., Visual Studio).
- Build and compile the code.
- Run the compiled executable with the following command-line arguments:
wmiexec.exe -t 192.168.40.128 -d villanova.local -u administrator -p Pa$$w0rd
Replace each placeholder with the appropriate values:
<Target-host>
: The hostname or IP address of the target machine.<Domain>
: The domain of the user account.<Username>
: The username for authentication.<Password>
: The password for authentication.<Command>
: The command to be executed on the remote machine.
- This program is in an initial stage with minimal functionality, inspired by Impacket's
wmiexec.py
. - Ensure that you have the necessary permissions to execute remote commands on the target machine.
- This program uses Windows-specific APIs and is intended for Windows environments.
This project is in an early stage of development, and more features and functionality will be added in future updates.