21 lines
900 B
Markdown
21 lines
900 B
Markdown
# 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 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/
|
|
- make "CPP=gcc -E -ffreestanding",
|
|
- binary is to be found in Samba/source/bin/wmic
|
|
|
|
### 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"
|