9027c1ece734a12c145b709d0f1400b718845fd8
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
- cd /usr/src/
- 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[user]%[password] //[host/ip] "[WMI Query]"
-
wmic -U administrator --password=very-secure-password //78.46.41.48 "SELECT * FROM Win32_OperatingSystem"
-
Get list of running processes
-
wmic -U administrator --password=very-secure-password //78.46.41.48 "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%