Guest User

Untitled

a guest
Jan 20th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # This is a draft but it works
  4.  
  5. # FIRST (I don't even know if it works but we'll assume yes)
  6. # sudo launchctl list
  7. # sudo launchctl disable system/netbiosd
  8. # sudo launchctl disable system/parsecd
  9. # sudo launchctl disable system/parentalcontrols.check
  10. # sudo launchctl disable system/airportd
  11. # sudo launchctl disable system/rtcreportingd
  12.  
  13. # Agents to disable
  14. TODISABLE=('com.apple.photoanalysisd' 'com.apple.telephonyutilities.callservicesd' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.CalendarAgent' 'com.apple.DictationIM' 'com.apple.iCloudUserNotifications' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.gamed' 'com.apple.icloud.findmydeviced.findmydevice-user-agent' 'com.apple.icloud.fmfd' 'com.apple.imagent' 'com.apple.cloudfamilyrestrictionsd-mac' 'com.apple.cloudpaird' 'com.apple.cloudphotosd' 'com.apple.DictationIM' 'com.apple.assistant_service' 'com.apple.CallHistorySyncHelper' 'com.apple.CallHistoryPluginHelper' 'com.apple.AOSPushRelay' 'com.apple.IMLoggingAgent' 'com.apple.geodMachServiceBridge' 'com.apple.syncdefaultsd' 'com.apple.security.cloudkeychainproxy3' 'com.apple.security.idskeychainsyncingproxy' 'com.apple.security.keychain-circle-notification' 'com.apple.sharingd' 'com.apple.appleseed.seedusaged' 'com.apple.cloudd' 'com.apple.assistantd' 'com.apple.parentalcontrols.check' 'com.apple.parsecd' 'com.apple.identityservicesd')
  15.  
  16.  
  17. for agent in "${TODISABLE[@]}"
  18. do
  19. sudo launchctl unload -w /System/Library/LaunchAgents/${agent}.plist
  20. launchctl unload -w /System/Library/LaunchAgents/${agent}.plist
  21. echo "[OK] Agent ${agent} Disabled"
  22. done
  23.  
  24.  
  25. # Daemons to disable
  26. TODISABLE=('com.apple.netbiosd' 'com.apple.preferences.timezone.admintool' 'com.apple.preferences.timezone.auto' 'com.apple.remotepairtool' 'com.apple.rpmuxd' 'com.apple.security.FDERecoveryAgent' 'com.apple.icloud.findmydeviced' 'com.apple.findmymacmessenger' 'com.apple.familycontrols' 'com.apple.findmymac' 'com.apple.AirPlayXPCHelper' 'com.apple.SubmitDiagInfo' 'com.apple.screensharing' 'com.apple.appleseed.fbahelperd' 'com.apple.apsd' 'com.apple.AOSNotificationOSX' 'com.apple.FileSyncAgent.sshd' 'com.apple.ManagedClient.cloudconfigurationd' 'com.apple.ManagedClient.enroll' 'com.apple.ManagedClient' 'com.apple.ManagedClient.startup' 'com.apple.iCloudStats' 'com.apple.locationd' 'com.apple.mbicloudsetupd' 'com.apple.laterscheduler' 'com.apple.awacsd' 'com.apple.eapolcfg_auth' 'com.apple.familycontrols')
  27.  
  28.  
  29. for daemon in "${TODISABLE[@]}"
  30. do
  31. sudo launchctl unload -w /System/Library/LaunchDaemons/${daemon}.plist
  32. launchctl unload -w /System/Library/LaunchDaemons/${daemon}.plist
  33. echo "[OK] Daemon ${daemon} Disabled"
  34. done
  35.  
  36.  
  37. # /System/Library/LaunchAgents/com.apple.geodMachServiceBridge.plist: Operation not permitted while System Integrity Protection is engaged
  38. # /System/Library/LaunchAgents/com.apple.security.idskeychainsyncingproxy.plist: Operation not permitted while System Integrity Protection is engaged
  39. # /System/Library/LaunchAgents/com.apple.security.keychain-circle-notification.plist: Operation not permitted while System Integrity Protection is engaged
Add Comment
Please, Sign In to add comment