Skip to content
/ wmiexec Public

A C++ tool that uses WMI to execute commands on remote Windows machines.

Notifications You must be signed in to change notification settings

ilkyr/wmiexec

Repository files navigation

Windows Management Instrumentation (WMI) Command Executor

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.

Prerequisites

  • Windows operating system
  • Visual C++ development environment (Visual Studio recommended)

Usage

  1. Clone this repository or download the source code.
  2. Open the project in your preferred C++ development environment (e.g., Visual Studio).
  3. Build and compile the code.
  4. 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.

Important Notes

  • 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.

Future Development

This project is in an early stage of development, and more features and functionality will be added in future updates.

About

A C++ tool that uses WMI to execute commands on remote Windows machines.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published