Skip to content

Instantly share code, notes, and snippets.

@arainho
Last active January 26, 2024 11:46
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arainho/c4989631946073f75ee9f8726dcdc9dc to your computer and use it in GitHub Desktop.
Save arainho/c4989631946073f75ee9f8726dcdc9dc to your computer and use it in GitHub Desktop.
uninstall zoom.us and disable nasty features
#!/usr/bin/env bash
# sources
https://drive.google.com/drive/folders/1MP0cNLyJjzPLNrvNDCZv9hRuif091f0c
https://apple.stackexchange.com/questions/358651/unable-to-completely-uninstall-zoom-meeting-app
https://medium.com/bugbountywriteup/zoom-zero-day-4-million-webcams-maybe-an-rce-just-get-them-to-visit-your-website-ac75c83f4ef5
echo Stopping Zoom...
pkill "zoom.us"
echo Cleaning Zoom...
echo Cleaning Application Cached Files...
{
rm -rf -- ~/Library/Application\ Support/zoom.us
rm -rf -- ~/Library/Application\ Support/ZoomPresence
rm -rf -- ~/Library/Caches/us.zoom.xos
rm -rf -- ~/Library/Logs/zoom.us/
rm -rf -- ~/Library/Logs/zoomRooms/
rm -rf -- ~/Library/Logs/zoominstall.log
rm -rf -- ~/Library/Preferences/ZoomChat.plist
rm -rf -- ~/Library/Preferences/us.zoom.xos.plist
rm -rf -- ~/Library/Saved\ Application\ State/us.zoom.xos.savedState
}
echo "Cleaning Application..."
{
rm -rf -- ~/Applications/zoom.us.app
rm -rf -- ~/.zoomus/ZoomOpener.app
rm -rf -- ~/.zoomus
}
echo "Removed Application..."
echo "Preventing the vulnerable server from running on your machine..."
# (You may need to run these lines for each user on your machine.)
pkill "ZoomOpener"; rm -rf ~/.zoomus; touch ~/.zoomus && chmod 000 ~/.zoomus;
pkill "RingCentralOpener"; rm -rf ~/.ringcentralopener; touch ~/.ringcentralopener && chmod 000 ~/.ringcentralopener;
echo "Disabling the ability of Zoom to turn on your webcam when joining a meeting..."
defaults write ~/Library/Preferences/us.zoom.config.plist ZDisableVideo 1 # For just your local account
echo "Removing Launch Daemons/Agents and Internet Plug-Ins..."
{
sudo /bin/launchctl stop /Library/LaunchDaemons/us.zoom.ZoomDaemon.plist
sudo rm -- /Library/LaunchDaemons/us.zoom.ZoomDaemon.plist
rm -rf -- ~/Library/LaunchDaemons/us.zoom.rooms.daemon.plist
rm -rf -- ~/Library/LaunchAgents/us.zoom*
rm -rf -- ~/Library/Internet\ Plug-Ins/ZoomUsPlugIn.plugin/
}
echo "Switching to a user with sudo privileges to remove more stuff..."
{
sudo rm -rf -- /Applications/zoom.us.app
sudo kextunload -b zoom.us.ZoomAudioDevice
sudo rm -rf -- /System/Library/Extensions/ZoomAudioDevice.kext
sudo defaults write /Library/Preferences/us.zoom.config.plist ZDisableVideo 1 # For all users on the machine
sudo rm -rf -- /Library/Internet\ Plug-Ins/ZoomUsPlugIn.plugin/
sudo rm -rf -- /Library/LaunchDaemons/us.zoom.rooms.daemon.plist
sudo rm -rf -- /Library/LaunchAgents/us.zoom*
sudo rm -rf -- /Library/PrivilegedHelperTools/us.zoom.ZoomDaemon
}
echo "See zoom background launchagents"
sudo sfltool dumpbtm | grep oom
@gnought
Copy link

gnought commented Dec 24, 2022

one more:
sudo rm -f -- /Library/PrivilegedHelperTools/us.zoom.ZoomDaemon

@arainho
Copy link
Author

arainho commented Mar 10, 2023

thanks @gnought, already added you suggestion.

@0x-2a
Copy link

0x-2a commented Nov 15, 2023

and more

# See background launchagents with
sfltool dumpbtm | grep oom 

sudo /bin/launchctl stop /Library/LaunchDaemons/us.zoom.ZoomDaemon.plist 
sudo rm     /Library/LaunchDaemons/us.zoom.ZoomDaemon.plist 

@arainho
Copy link
Author

arainho commented Nov 20, 2023

thanks @0x-2a; already added your suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment