手动卸载Trend Micro Security for Mac (TMSM)

  mac不小心安装上了Trend Micro Security for Mac (TMSM),这个流氓软件关都挂不掉,电脑还经常在键盘唤醒时卡死,没理由不删掉他,再经历各种搜索后我终于成功了,在此记录一下:
主要方式为命令行强制删除该软件相关文件,这个方法参考了一篇文章:https://ephrain.net/mac-%E6%89%8B%E5%8B%95%E7%A7%BB%E9%99%A4-trend-micro-security-for-mac-tmsm-%E4%B8%AD%E6%8E%A7%E7%89%88%E6%9C%AC/
如该文章描述,如果直接删除相关目录会报错,因为该程序一直在后台跑着:

1
2
3
4
5
6
7
8
(base) fengxideMacBook-Pro:LaunchDaemons fengxi$ rm -rf /Library/Application\ Support/TrendMicro/
rm: /Library/Application Support/TrendMicro//Tools/TMDebugManager.app/Contents/_CodeSignature/CodeResources: Permission denied
rm: /Library/Application Support/TrendMicro//Tools/TMDebugManager.app/Contents/_CodeSignature: Permission denied
rm: /Library/Application Support/TrendMicro//Tools/TMDebugManager.app/Contents/MacOS/TMDebugManager: Permission denied
rm: /Library/Application Support/TrendMicro//Tools/TMDebugManager.app/Contents/MacOS: Permission denied
rm: /Library/Application Support/TrendMicro//Tools/TMDebugManager.app/Contents/Resources/de.lproj/DebugMgr.strings: Permission denied
rm: /Library/Application Support/TrendMicro//Tools/TMDebugManager.app/Contents/Resources/de.lproj/TMCCDebugMgrMain.nib: Permission denied
rm: /Library/Application Support/TrendMicro//Tools/TMDebugManager.app/Contents/Resources/de.lproj/InfoPlist.strings: Permission denied

但是我在执行杀掉进程时一直提示:

1
Operation not permitted

最后在各种谷歌后用了以下方式解决

首先进入root 用户

1
sudo su

然后执行命令:
1
2
3
4
5
(base) fengxideMacBook-Pro:LaunchDaemons fengxi$ sudo su
sh-3.2# sudo ps -ef | egrep -i trend | egrep -v grep |cut -c 7-12|xargs kill -9
sh-3.2# rm com.trendmicro.tmsm.launcher.plist
sh-3.2# rm -rf /Library/Application\ Support/TrendMicro/
sh-3.2# rm -rf /Library/Frameworks/iCoreClientPb.framework/

在这样操作后,TMSM已经被删光光了

-------------本文结束感谢您的阅读-------------