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
|
2024-12-05 10:39:36 +02:00
|
|
|
- Tested on Debian 12.9
|
|
|
|
|
- apt-get install autoconf gcc libdatetime-perl make build-essential g++ python3-dev
|
|
|
|
|
- git clone ssh://git@gitea.infra.internal.rndsoft.ro:2222/benishor/wmic.git
|
|
|
|
|
- cd wmic
|
|
|
|
|
- mkdir -p Samba/source/bin/static/
|
2019-02-16 00:04:58 +01:00
|
|
|
- make "CPP=gcc -E -ffreestanding",
|
2024-12-05 10:39:36 +02:00
|
|
|
- binary is to be found in Samba/source/bin/wmic
|
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"
|