Skip to content

Instantly share code, notes, and snippets.

@mrowell
Created December 13, 2017 23:11
Show Gist options
  • Save mrowell/732b71cc3699865e6aefe54edf3c1329 to your computer and use it in GitHub Desktop.
Save mrowell/732b71cc3699865e6aefe54edf3c1329 to your computer and use it in GitHub Desktop.
Kaspersky Removal
#!/bin/bash
#Check for Kasepersky launch agent
if [ -f /Library/Application\ Support/Kaspersky\ Lab/klnagent/Binaries/UninstallScript ]; then
echo "klnagent exists - uninstalling"
/Library/Application\ Support/Kaspersky\ Lab/klnagent/Binaries/UninstallScript
fi
if [ -f /Library/Application\ Support/Kaspersky\ Lab/KAV/Binaries/UninstallScript ]; then
echo "KAV exists - uninstalling"
/Library/Application\ Support/Kaspersky\ Lab/KAV/Binaries/UninstallScript
fi
if [ -d /Library/Application\ Support/Kaspersky\ Lab/ ]; then
echo "Kaskersky Folder exists - removing"
rm -rf /Library/Application\ Support/Kaspersky\ Lab/
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment