Skip to content

Instantly share code, notes, and snippets.

@rickheil
Created January 29, 2016 18:20
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save rickheil/7c89a843bf7c853997a1 to your computer and use it in GitHub Desktop.
Save rickheil/7c89a843bf7c853997a1 to your computer and use it in GitHub Desktop.
installing wmic for linux
#!/bin/bash
# compiles WMIC for linux
apt-get install autoconf
cd /usr/src
wget http://www.openvas.org/download/wmi/wmi-1.3.14.tar.bz2
bzip2 -cd wmi-1.3.14.tar.bz2 | tar xf -
cd wmi-1.3.14/
make "CPP=gcc -E -ffreestanding"
cp Samba/source/bin/wmic /usr/local/bin
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment