#!/system/bin/sh
RED="\033[31m"
GREEN="\033[32m"
RESET="\033[0m"

check_vpn() {
    if ip link show up | grep -qiE 'tun|tap|ppp|vpn|wg|zerotier|zt|openvpn|wireguard|sstp|l2tp|ipsec|gre|ipip|v2ray|clash|ssr|trojan'; then
        return 0
    fi

    if ip route show | grep -qiE 'tun|tap|ppp|vpn|wg|zerotier|zt|openvpn|wireguard|sstp|l2tp|ipsec|gre|ipip|v2ray|clash|ssr|trojan'; then
        return 0
    fi

    return 1
}

echo -e "${GREEN}正在检测抓包状态...${RESET}"
sleep 3
echo -e "-------------------------"

if check_vpn; then
  clear
      echo -e "${RED}[警告] 检测到系统存在VPN连接！破解狗你的浮木撕了❗️${RESET}"
    
    ip link show up | grep -E 'tun|tap|ppp|vpn|wg|zerotier|zt|openvpn|wireguard|sstp|l2tp|ipsec|gre|ipip|v2ray|clash|ssr|trojan'
else
    echo -e "${GREEN}[正常] 未检测到VPN连接${RESET}"
fi
