Skip to content

Instantly share code, notes, and snippets.

@drazul
Forked from dminca/mcf.sh
Created April 15, 2019 07:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drazul/c3e0d6e1ea4b6e5b5a12d7ed96254c49 to your computer and use it in GitHub Desktop.
Save drazul/c3e0d6e1ea4b6e5b5a12d7ed96254c49 to your computer and use it in GitHub Desktop.
Disable the fucking McAffee Proxy
#!/usr/bin/env bash
# JUST DISABLES McAfee on MacOS
# https://gist.github.com/pjobson/11167316#gistcomment-2787864
function help() {
echo "Disables McAfee"
}
function disable() {
function me() {
set -x
# man launchctl
sudo launchctl unload /Library/LaunchDaemons/*mcafee*
# /usr/local/McAfee/AntiMalware/VSControl <start|stop|status|startoas|stopoas|reload>
sudo /usr/local/McAfee/AntiMalware/VSControl stopoas
}
echo "Are you sure you want to disable?"
select yn in "Yes" "No"; do
case $yn in
Yes ) me; break;;
No ) echo "ur mom phat!"; exit;;
esac
done
}
function enable() {
function me() {
set -x
sudo launchctl load /Library/LaunchDaemons/*mcafee*
sudo /usr/local/McAfee/AntiMalware/VSControl startoas
}
echo "Are you sure you want to enable?"
select yn in "Yes" "No"; do
case $yn in
Yes ) me; break;;
No ) echo "ur mom phat!"; exit;;
esac
done
}
$@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment