Created
July 9, 2019 17:07
-
-
Save bneutra/7f02d759ec3d17d926a18cc627659511 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
# For just your local account | |
echo "disabling zoom video by default for this user" | |
defaults write ~/Library/Preferences/us.zoom.config.plist ZDisableVideo 1 | |
# For all users on the machine | |
echo "disabling zoom video by default for all users on this machine" | |
sudo defaults write /Library/Preferences/us.zoom.config.plist ZDisableVideo 1 | |
# Get process for zoom web server | |
echo "getting zoom web server process ID" | |
PID=$(lsof -t -i :19421) | |
# Kill process if running | |
if [ -n "$PID" ]; then | |
echo "killing zoom web server" | |
kill -9 "$PID" | |
else | |
echo "zoom web server not running" | |
fi | |
# To prevent the vulnerable server from running on your machine | |
# (this does not impact Zoom functionality), run these two lines in your Terminal. | |
echo "preventing zoom web server from running in the future" | |
pkill "ZoomOpener"; rm -rf ~/.zoomus; touch ~/.zoomus && chmod 000 ~/.zoomus; | |
pkill "RingCentralOpener"; rm -rf ~/.ringcentralopener; touch ~/.ringcentralopener && chmod 000 ~/.ringcentralopener; | |
# (You may need to run these lines for each user on your machine.) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment