-
-
Save florido/763c3b1ca299e4b371e925ef50629f5c 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
# Admin User | |
#------------------------- | |
myd=`date "+%Y-%m-%d-%H-%M-%S"` | |
# ovverride.plist | |
#------------------------- | |
sudo cat /var/db/launchd.db/com.apple.launchd/overrides.plist > ~/$myd-root-ovverrides.txt | |
sudo lsof -i > ~/$myd-root-lsof.txt | |
# blued | |
#------------------------- | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.blued.plist | |
# netbios, smbd | |
#------------------------- | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.netbiosd.plist | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.smbfs_load_kext.plist | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.smb.preferences.plist | |
# cupsd | |
#------------------------- | |
sudo launchctl unload -w /System/Library/LaunchDaemons/org.cups.cupsd.plist | |
# RemoteDesktop | |
#------------------------- | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.RemoteDesktop.PrivilegeProxy.plist | |
# Apple Share | |
#------------------------- | |
# /System/Library/CoreServices/AppleFileServer.app/ | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.afpfs_checkafp.plist | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.afpfs_afpLoad.plist | |
# Apple Event | |
#------------------------- | |
sudo chmod a-x /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Versions/A/Support/AEServer | |
# webdav, iidc | |
#------------------------- | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.webdavfs_load_kext.plist | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.IIDCAssistant.plist | |
# mdmclient | |
#------------------------- | |
sudo launchctl unload -w/System/Library/LaunchDaemons/com.apple.mdmclient.daemon.plist | |
# mtmd, mtmfs | |
#------------------------- | |
sudo tmutil disable | |
sudo tmutil disablelocal | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mtmd.plist | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mtmfs.plist | |
# end | |
#------------------------- | |
sudo cat /var/db/launchd.db/com.apple.launchd/overrides.plist > ~/$myd-root-ovverrides.txt | |
sudo lsof -i > ~/$myd-root-lsof.txt | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment