MacOS

Mac 开机禁止启动 AnyConnect 客户端

2019-08-02  本文已影响0人  我是石巍

禁止开机启动

sudo mv /Library/LaunchAgents/com.cisco.anyconnect.gui.plist /tmp

思路

每次重启开机 AnyConnect 总会跳出来,在系统偏好设置 -> 用户与群组 -> 登录项中将其删除也依旧顽强的存在。
因为客户端叫Cisco AnyConnect Secure Mobility Client,所以尝试通过ps aux | grep AnyConnect搜了一把,确实发现有这么个进程。
~/Library/LaunchAgents/中未发现疑似物,于是尝试在/Library/LaunchAgents/中查找,发现一个com.cisco.anyconnect.gui.plist文件,打开发现正是目标物AnyConnect Client App

MacBook-Pro:~ will$ cat /Library/LaunchAgents/com.cisco.anyconnect.gui.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>KeepAlive</key>
    <dict>
        <key>PathState</key>
        <dict>
            <key>/opt/cisco/anyconnect/gui_keepalive</key>
            <true/>
        </dict>
    </dict>
    <key>Label</key>
    <string>com.cisco.anyconnect.gui</string>
    <key>LimitLoadToSessionType</key>
    <string>Aqua</string>
    <key>ProgramArguments</key>
    <array>
        <string>open</string>
        <string>--wait-apps</string>
        <string>/Applications/Cisco/Cisco AnyConnect Secure Mobility Client.app</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
</dict>
</plist>
上一篇下一篇

猜你喜欢

热点阅读