-
-
Save dminca/4140fb7b77211cf993ae2e2837274a39 to your computer and use it in GitHub Desktop.
Disable the fucking McAffee Proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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