Skip to content

Instantly share code, notes, and snippets.

@sydneyitguy
Created March 12, 2014 12:39
Show Gist options
  • Save sydneyitguy/9506133 to your computer and use it in GitHub Desktop.
Save sydneyitguy/9506133 to your computer and use it in GitHub Desktop.
Finding custom modifications on Mac
1.
kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}'
2.
{ sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|cups|isc|ntp|postf|x)/{print $3}'; echo; sudo defaults read com.apple.loginwindow LoginHook; echo; sudo crontab -l; } 2> /dev/null
3.
{ launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)/{print $3}'; echo; crontab -l 2> /dev/null; }
4.
ls -A /e*/{cr,la,mach}* {,/}Lib*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts .la* 2> /dev/null
5.
osascript -e 'tell application "System Events" to get name of login items'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment