Skip to content

Instantly share code, notes, and snippets.

@homebysix
Created October 3, 2014 18:04
Show Gist options
  • Save homebysix/5f1e09b7a3e75c229ef1 to your computer and use it in GitHub Desktop.
Save homebysix/5f1e09b7a3e75c229ef1 to your computer and use it in GitHub Desktop.
iworm_check.sh
#!/bin/bash
###
#
# Name: iworm_check.sh
# Description: Casper extension attribute that checks whether iWorm is
# detected.
# Author: Elliot Jordan <elliot@lindegroup.com>
# Created: 2014-10-03
# Last Modified: 2014-10-03
# Version: 1.0
#
###
if [[ -d '/Library/Application Support/JavaW' ]]; then
resultString="iWorm detected."
else
resultString="iWorm not detected."
fi
echo "<result>$resultString</result>"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment