17b3af2911cdd97c5910c0c1075e46be94123815
wmic
- Linux wmi 1.3.16 taken from wget http://www.opsview.com/sites/default/files/wmi-1.3.16.tar_.bz2 and patched.
- Ready to compile
- In Samba/source/pidl/pidl line 583 I already removed the word defined before @$pidl
How to Compile
- Tested on Debian 9 Stretch
- cd /usr/src/
- apt-get install autoconf gcc libdatetime-perl make build-essential g++ python-dev
- git clone git@github.com:astbss/wmic.git
- cd /usr/src/wmic
- make "CPP=gcc -E -ffreestanding",
- cp Samba/source/bin/wmic /usr/local/bin/
How to Test it
-
Get system information
-
wmic -U administrator --password=very-secure-password //10.10.10.10 "SELECT * FROM Win32_OperatingSystem"
-
Get list of running processes
-
wmic -U administrator --password=very-secure-password //10.10.10.10 "select caption, name, parentprocessid, processid from win32_process"
Description
Languages
C
90.3%
Perl
2.9%
Shell
2.2%
Makefile
1%
JavaScript
1%
Other
2.5%