Skip to content

Instantly share code, notes, and snippets.

@jacobsalmela
Created October 21, 2014 12:50
Show Gist options
  • Save jacobsalmela/9b2e1a93ba9af5c673d8 to your computer and use it in GitHub Desktop.
Save jacobsalmela/9b2e1a93ba9af5c673d8 to your computer and use it in GitHub Desktop.
Simple malware detection using launchd
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>RollYourOwn.MalwareDetection.Yosemite</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/malwaredetection.sh</string>
</array>
<key>RunAtLoad</key>
<false/>
<key>QueueDirectories</key>
<array>
<string>/Library/LaunchAgents</string>
<string>/Library/LaunchDaemons</string>
<string>/Users/username/Library/LaunchAgents</string>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment