2014/03/01

OS X 10.9.2: 02-kext-remove

# 02-kext-remove.sh

#!/bin/bash
# OS X 10.9.2
#
#---------------------------------------------------------------------
# Extentions remove
#---------------------------------------------------------------------
home=$HOME
d=$home/backup-extentions
mkdir $d

# face time camera
sudo mv /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBMergeNub.kext $d/
sudo touch /System/Library/Extensions

# bluetooth
sudo srm -rf /System/Library/Extensions/IOBluetoothFamily.kext
sudo touch /System/Library/Extensions
sudo srm -rf /System/Library/Extensions/IOBluetoothHIDDriver.kext
sudo touch /System/Library/Extensions

# bluetooth keyboard
sudo srm -rf /System/Library/Extensions/AppleBluetoothMultitouch.kext
sudo touch /System/Library/Extensions
sudo srm -rf /System/Library/Extensions/AppleHIDKeyboard.kext/Contents/PlugIns/AppleBluetoothHIDKeyboard.kext
sudo touch /System/Library/Extensions
sudo srm -rf /System/Library/Extensions/AppleHIDMouse.kext/Contents/PlugIns/AppleBluetoothHIDMouse.kext
sudo touch /System/Library/Extensions
sudo srm -rf /System/Library/Extensions/AppleHIDKeyboard.kext/Contents/Resources/BS_UI_Plugin_IOAppleBluetoothHIDDriver-Info.plist
sudo touch /System/Library/Extensions

# irc
sudo srm -rf /System/Library/Extensions/AppleIRController.kext
sudo touch /System/Library/Extensions

# iSight
sudo srm -rf /System/Library/Extensions/Apple_iSight.kext
sudo touch /System/Library/Extensions
sudo srm -rf /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext
sudo touch /System/Library/Extensions

###
# Cache
###
# sudo srm -rf /System/Library/Extensions/AppleHDA.kext/
# sudo touch /System/Library/Extensions

# Audio
# sudo mv /System/Library/Extensions/AppleUSBAudio.kext $d/
# sudo touch /System/Library/Extensions
# sudo mv /System/Library/Extensions/IOAudioFamily.kext $d/
# sudo touch /System/Library/Extensions

# web application
# sudo mv /System/Library/Extensions/webdav_fs.kext $d/
# sudo touch /System/Library/Extensions/

# smb
# sudo mv /System/Library/Extensions/smbfs.kext $d/
# sudo touch /System/Library/Extensions/

# PPP Modem
## sudo mv /System/Library/Extensions/PPPoE.ppp $d
## sudo mv /System/Library/Extensions/PPP.kext $d
## sudo mv /System/Library/Extensions/PPPSerial.ppp $d
## sudo mv /System/Library/Extensions/JMicronATA.kext $d
## sudo touch /System/Library/Extensions/


# 参考
Mac OS X Security Configuration Guides
http://www.apple.com/support/security/guides/

0 件のコメント: