Skip to content

Instantly share code, notes, and snippets.

@dminca

dminca/mcf.sh Secret

Created April 15, 2019 07:26
Show Gist options
  • Save dminca/4140fb7b77211cf993ae2e2837274a39 to your computer and use it in GitHub Desktop.
Save dminca/4140fb7b77211cf993ae2e2837274a39 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