Skip to content

Instantly share code, notes, and snippets.

@bse666
Created December 2, 2015 09:30
Show Gist options
  • Save bse666/089542569898a329c547 to your computer and use it in GitHub Desktop.
Save bse666/089542569898a329c547 to your computer and use it in GitHub Desktop.
wmic on linux from source
#!/bin/sh
sudo apt-get install autoconf -y
cd ~/Downloads
wget http://www.openvas.org/download/wmi/wmi-1.3.14.tar.bz2
tar -xvf wmi-1.3.14.tar.bz2
cd wmi-1.3.14
sudo make "CPP=gcc -E -ffreestanding"
sudo cp Samba/source/bin/wmic /usr/local/bin/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment