Files
wmic/README.md
T

21 lines
852 B
Markdown
Raw Normal View History

2019-02-15 23:57:05 +01:00
# wmic
2019-02-16 00:02:39 +01:00
- Linux wmi 1.3.16 taken from wget http://www.opsview.com/sites/default/files/wmi-1.3.16.tar_.bz2 and patched.
2019-02-16 00:04:58 +01:00
- **Ready to compile**
2019-02-16 00:00:30 +01:00
- In Samba/source/pidl/pidl line 583 I already removed the word defined before @$pidl
2019-02-16 00:02:39 +01:00
### How to Compile
2019-02-16 00:09:39 +01:00
- Tested on Debian 9 Stretch
2019-02-16 00:02:39 +01:00
- cd /usr/src/
2019-02-16 00:09:39 +01:00
- apt-get install autoconf gcc libdatetime-perl make build-essential g++ python-dev
2019-02-16 00:02:39 +01:00
- git clone git@github.com:astbss/wmic.git
2019-02-16 00:04:58 +01:00
- cd /usr/src/wmic
- make "CPP=gcc -E -ffreestanding",
- cp Samba/source/bin/wmic /usr/local/bin/
2019-02-16 00:07:00 +01:00
### How to Test it
2019-02-16 00:08:14 +01:00
- **Get system information**
2019-02-16 00:10:19 +01:00
- wmic -U administrator --password=very-secure-password //10.10.10.10 "SELECT * FROM Win32_OperatingSystem"
2019-02-16 00:07:00 +01:00
2019-02-16 00:08:14 +01:00
- **Get list of running processes**
2019-02-16 00:10:19 +01:00
- wmic -U administrator --password=very-secure-password //10.10.10.10 "select caption, name, parentprocessid, processid from win32_process"