#微验Shell模板
iptables -F
iptables -X 
iptables -Z
       echo -e "\033[31m欢迎使用鸭哥拦截赞助版\033[0m"

if ! [ -e "rc4" ]; then
    echo "是不是少了个文件"
    exit 1
fi
chmod 777 rc4

# 配置区
wyUrl="http://wy.llua.cn/api/" #api调用 不要修改
wyAppid="80986" #填入你的appid
wyAppkey="q194poSqv2vJPVy2" #填入你的appkey
wyRc4key="AEtskdacY8AZGa7" #填入你的rc4key
deCode="18694543" #填入你的登陆状态码


#函数区
parse_json() {
  json=$1
  query=$2
  value=$(echo "$json" | grep -o "\"$query\":[^ }]*" | sed 's/"[^"]*":\([^,}]*\).*/\1/' | head -n 1)
  value="${value#\"}"
  value="${value%\"}"
  echo "$value"
}

#公告区
notice=`curl -s "${wyUrl}?id=notice&app=${wyAppid}"`
deNotice=`./rc4 $notice $wyRc4key "de"`
Notices=`parse_json "$deNotice" "app_gg"`
echo "系统公告:\n${Notices}\n"



if [ -e "卡密放在这里哦.txt" ]; then
    kami=$(cat 卡密放在这里哦.txt)
    echo "密钥：$kami"
else
    echo "已自动使用已保存的卡密"
    
fi
timer=`date +%s`
android_id=`settings get secure android_id`
fingerprint=`getprop ro.build.fingerprint`
imei=`echo -n "${android_id}.${fingerprint}" | md5sum | awk '{print $1}'`
value="$RANDOM${timer}"
sign=`echo -n "kami=${kami}&markcode=${imei}&t=${timer}&${wyAppkey}" | md5sum | awk '{print $1}'`
data=`./rc4 "kami=${kami}&markcode=${imei}&t=${timer}&sign=${sign}&value=${value}&${wyAppkey}" $wyRc4key "en"`
logon=`curl -s "${wyUrl}?id=kmlogon&app=${wyAppid}&data=${data}"`
deLogon=`./rc4 $logon $wyRc4key "de"`
wy_Code=`parse_json "$deLogon" "code"`
if  [ "$wy_Code" -eq "$deCode" ]; then
    timec=`parse_json "$deLogon" "time"`
    check=`echo -n  "${timec}${wyAppkey}${value}" | md5sum | awk '{print $1}'`
    checks=`parse_json "$deLogon" "check"`
    if  [ "$check" == "$checks" ]; then
        vip=`parse_json "$deLogon" "vip"`
        vips=`date -d @$vip +"%Y-%m-%d %H:%M:%S"`
        clear
       echo -e "\033[31m所剩时间：${vips}\033[0m"
    else
        echo "失败"
        exit
    fi
else
    parse_json "$deLogon" "msg"
    exit
fi



echo -e "\033[31m感谢你的支持，开始你的封神之路吧！\033[0m"
#!/bin/bash
# 定义iptables命令路径
ip6tables=/system/bin/ip6tables
iptables=/system/bin/iptables
# 等待xtables.lock文件不存在，即没有进程占用iptables
while [ -e "$lock_file" ]; do
    echo "Waiting for xtables lock to be released..."
    sleep 0.1s  # 等待1秒再次检查
done
# 获取应用的UID
uid=$(cat /data/system/packages.list | grep "com.proximabeta.mf.uamo" | awk '{print $2}')
# 搜索包含特定库文件的应用目录
SEARCH_DIR="/data/app"
b=$(find "$SEARCH_DIR" -type f -name "*libUE4.so*" | grep "com.proximabeta.mf.uamo")
m -rf /data/data/com.proximabeta.mf.uamo/files/ano_tmp
rm -rf /data/data/com.proximabeta.mf.uamo/files/ano_tmp
rm -rf /data/user/0/com.proximabeta.mf.uamo/files/ano_tmp
rm -rf /data/user/0/com.proximabeta.mf.uamo/files/ano_tmp
rm -rf /storage/emulated/0/Android/data/com.proximabeta.mf.uamo/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/SaveGames
rm -rf /storage/emulated/0/Android/data/com.proximabeta.mf.uamo/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/Config/Android/Updater.ini
# 提取应用的UID，假设UID是找到的路径中的第二部分
uid=$(echo $b | awk -F/ '{print $2}')
$iptables -F
# 提供选择菜单
echo -e "\033[31m使用说明:桌面开启或者魔方界面开启\033[0m"
echo -e "\033[31m真的非常感谢你对我的相信和支持，绝对给你不一样的体验！\033[0m"
PS3='请输入1-2: '
options=("开启拦截" "退出")
select opt in "${options[@]}"
do
    case $opt in
        "开启拦截")
        echo -e "\033[31m感谢使用鸭哥赞助版拦截（国际服）\033[0m"
        echo -e "\033[31m电报:@yagenb\033[0m"
            count=1
            trap 'echo "拦截已停止"; exit' 2  # 如果用户发送SIGINT（Ctrl+C），则退出脚本
# 使用adb命令启动应用的主Activity
am start -n "com.proximabeta.mf.uamo/com.epicgames.ue4.GameActivity"

# 检查命令是否执行成功
if [ $    echo "\033[31m尊敬的用户 已为您自动打开Arean Breakout\033[0m"
else
    echo "\033[31m自启动失败，请手动打开游戏\033[0m"
fi
            while true; do
                # 添加规则
                # 搜索包含特定库文件的应用目录
ip6tables=/system/bin/ip6tables
iptables=/system/bin/iptables
SEARCH_DIR="/data/app"
b=$(find "$SEARCH_DIR" -type f -name "*libUE4.so*" | grep "com.proximabeta.mf.uamo")
iptables -A OUTPUT -m string --string "listdl" --algo bm --to 65535 -j DROP
iptables -A INPUT -p tcp -m string --string "down.anticheatexpert.com" --algo bm --to 65535 -m tcp --dport 443 -j DROP
iptables -A INPUT -m string --string "data|zip|ano|config|SpeedUp|cache" --algo bm --to 65535 -j DROP
iptables -A INPUT -m string --string "unzipmrpcs.data" --algo bm --to 65535 -j DROP
iptables -A INPUT -m string --string "cache" --algo bm --to 65535 -j DROP
iptables -A INPUT -m string --string "SpeedUp" --algo bm --to 65535 -j DROP
iptables -A INPUT -m string --string "mrpcs_a_s.data" --algo bm --to 65535 -j DROP
iptables -A INPUT -m string --string "config" --algo bm --to 65535 -j DROP
iptables -A INPUT -m string --string "ano" --algo bm --to 65535 -j DROP
iptables -A INPUT -m string --string "zip" --algo bm --to 65535 -j DROP
iptables -A INPUT -m string --string "ano_tmp" --algo bm --to 65535 -j DROP
iptables -A INPUT -m string --string "custom_cache" --algo bm --to 65535 -j DROP
iptables -A OUTPUT -m string --string ".*zip.*|ano.*|config.*|SpeedUp.*|cache.*data.*" --algo bm --to 65535 -j DROP
iptables -A OUTPUT -m string --string "data" --algo bm --to 65535 -j DROP
iptables -A OUTPUT -m string --string "unzipmrpcs.data" --algo bm --to 65535 -j DROP
iptables -A OUTPUT -m string --string "cache" --algo bm --to 65535 -j DROP
iptables -A OUTPUT -m string --string "SpeedUp" --algo bm --to 65535 -j DROP
iptables -A OUTPUT -m string --string "mrpcs_a_s.data" --algo bm --to 65535 -j DROP
iptables -A OUTPUT -m string --string "config" --algo bm --to 65535 -j DROP
iptables -A OUTPUT -m string --string "ano" --algo bm --to 65535 -j DROP
iptables -A OUTPUT -m string --string "zip" --algo bm --to 65535 -j DROP
iptables -A OUTPUT -m string --string "ano_tmp" --algo bm --to 65535 -j DROP
iptables -A OUTPUT -m string --string "custom_cache" --algo bm --to 65535 -j DROP
iptables -w -I INPUT -m string --string "_s.d"  --algo bm -m length --length 1:65535 -j DROP
iptables -A INPUT -s 129.226.1.157 -p tcp -j DROP
iptables -A INPUT -s 101.32.143.232 -p tcp -j DROP
iptables -A INPUT -s 101.32.143.247 -p tcp -j DROP
iptables -A INPUT -s 101.32.143.142 -p tcp -j DROP
iptables -A INPUT -s 101.32.143.64 -p tcp -j DROP
iptables -A INPUT -s 129.226.2.37 -p tcp -j DROP
iptables -A INPUT -s 129.226.2.231 -p tcp -j DROP
iptables -A INPUT -s 129.226.3.232 -p tcp -j DROP
iptables -A INPUT -s 101.32.143.171 -p tcp -j DROP
iptables -A INPUT -s 129.226.2.142 -p tcp -j DROP
iptables -A INPUT -s 129.226.1.157 -p tcp -j DROP
iptables -A INPUT -s 101.32.143.232 -p tcp -j DROP
iptables -A INPUT -s 101.32.143.247 -p tcp -j DROP
iptables -A INPUT -s 101.32.143.142 -p tcp -j DROP
iptables -A INPUT -s 101.32.143.64 -p tcp -j DROP
iptables -A INPUT -s 129.226.2.37 -p tcp -j DROP
iptables -A INPUT -s 129.226.2.231 -p tcp -j DROP
iptables -A INPUT -s 129.226.3.232 -p tcp -j DROP
iptables -A INPUT -s 101.32.143.171 -p tcp -j DROP
iptables -A INPUT -s 129.226.2.142 -p tcp -j DROP
iptables -A INPUT -s 172.67.170.134 -p tcp -j DROP
iptables -A INPUT -s 129.226.1.157 -p tcp -j DROP
iptables -A INPUT -s 101.32.143.232 -p tcp -j DROP
iptables -A INPUT -s 101.32.143.247 -p tcp -j DROP
iptables -A INPUT -s 101.32.143.142 -p tcp -j DROP
iptables -A INPUT -s 101.32.143.64 -p tcp -j DROP
iptables -A INPUT -s 129.226.2.37 -p tcp -j DROP
iptables -A INPUT -s 129.226.2.231 -p tcp -j DROP
iptables -A INPUT -s 129.226.3.232 -p tcp -j DROP
iptables -A INPUT -s 101.32.143.171 -p tcp -j DROP
iptables -A INPUT -s 129.226.2.142 -p tcp -j DROP
iptables -A INPUT -s 101.44.161.160 -p tcp -j DROP
iptables -A INPUT -s 124.243.151.73 -p tcp -j DROP
iptables -A INPUT -s 150.109.75.253 -p tcp -j DROP
iptables -A INPUT -s 154.85.79.111 -p tcp -j DROP
iptables -A INPUT -s 154.85.79.110 -p tcp -j DROP
iptables -A INPUT -s 43.132.167.177 -p tcp -j DROP
iptables -A INPUT -s 35.228.158.235 -p tcp -j DROP
iptables -A INPUT -s 34.88.160.170 -p tcp -j DROP
iptables -A INPUT -s 34.151.113.194 -p tcp -j DROP
iptables -A INPUT -s 34.87.243.126 -p tcp -j DROP
iptables -A INPUT -s 122.8.182.4 -p tcp -j DROP
iptables -A INPUT -s 122.8.179.228 -p tcp -j DROP
iptables -A INPUT -s 43.157.129.146 -p tcp -j DROP
iptables -A INPUT -s 43.157.128.171 -p tcp -j DROP
iptables -A INPUT -s 43.130.151.97 -p tcp -j DROP
iptables -A INPUT -s 43.130.150.232 -p tcp -j DROP
iptables -A INPUT -s 43.159.131.103 -p tcp -j DROP
iptables -A INPUT -s 43.130.46.93 -p tcp -j DROP
iptables -A INPUT -s 43.157.39.233 -p tcp -j DROP
iptables -A INPUT -s 43.157.63.26 -p tcp -j DROP
iptables -A INPUT -s 43.133.215.50 -p tcp -j DROP
iptables -A INPUT -s 43.133.153.215 -p tcp -j DROP
iptables -A INPUT -s 43.133.148.178 -p tcp -j DROP
iptables -A INPUT -s 43.134.70.167 -p tcp -j DROP
iptables -A INPUT -s 129.226.3.131 -p tcp -j DROP
iptables -A INPUT -s 101.44.161.160 -p tcp -j DROP
iptables -A INPUT -s 124.243.151.73 -p tcp -j DROP
iptables -A INPUT -s 154.85.79.111 -p tcp -j DROP
iptables -A INPUT -s 154.85.79.110 -p tcp -j DROP
iptables -A INPUT -s 150.109.75.253 -p tcp -j DROP
iptables -A INPUT -s 34.88.160.170 -p tcp -j DROP
iptables -A INPUT -s 43.132.167.177 -p tcp -j DROP
iptables -A INPUT -s 35.228.158.235 -p tcp -j DROP
iptables -A INPUT -s 34.87.243.126 -p tcp -j DROP
iptables -A INPUT -s 162.241.62.135 -p tcp -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 10012 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 10012 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 31003 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 5010 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 8080 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 5692 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 10500 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 5692 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 8081 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 5010 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 443 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 80 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 10012 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 31003 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 5010 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 8080 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 5692 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 8013 -j DROP
iptables -A OUTPUT -p tcp -m tcp --dport 10012 -j DROP
iptables -A INPUT -s 43.175.124.240 -p tcp -j DROP
iptables -A INPUT -s 43.153.253.165 -p tcp -j DROP
iptables -A INPUT -s 129.226.3.131 -p tcp -j DROP
iptables -A INPUT -s 43.175.124.240 -p tcp -j DROP
iptables -A INPUT -s 43.134.153.167 -p tcp -j DROP
iptables -A INPUT -s 101.32.113.182 -p tcp -j DROP
iptables -A INPUT -s 150.109.27.51 -p tcp -j DROP
iptables -A INPUT -s 156.245.4.181 -p tcp -j DROP
iptables -A INPUT -s 101.32.143.41 -p tcp -j DROP
iptables -A INPUT -s 36.155.204.200/32 -p tcp -j DROP
iptables -A INPUT -s 120.254.236.219/8 -p tcp -j DROP
iptables -A INPUT -s 36.155.228.234/24 -p tcp -j DROP
iptables -A INPUT -s 36.155.249.84/24 -p tcp -j DROP
iptables -A INPUT -s 36.155.202.84/24 -p tcp -j DROP
iptables -A INPUT -s 36.155.251.84/24 -p tcp -j DROP
iptables -A INPUT -s 36.155.187.84/24 -p tcp -j DROP
iptables -A INPUT -s 36.155.186.84/24 -p tcp -j DROP
iptables -A INPUT -s 43.137.191.75/24 -p tcp -j DROP
iptables -A INPUT -s 112.132.4.5/16 -p tcp -j DROP
iptables -A INPUT -s 183.204.246.67/16 -p tcp -j DROP
iptables -A INPUT -s 153.3.47.49/24 -p tcp -j DROP
iptables -A INPUT -s 153.3.47.68/24 -p tcp -j DROP
iptables -A INPUT -s 182.50.8.25/32 -p tcp -j DROP
iptables -A INPUT -s 182.50.8.90/32 -p tcp -j DROP
iptables -A INPUT -s 182.50.10.90/24 -p tcp -j DROP
iptables -A INPUT -s 122.189.171.73/8 -p tcp -j DROP
iptables -A INPUT -s "android.crashsight.wetest.net" -p tcp -j DROP
iptables -A INPUT -s "app.adjust.com" -p tcp -j DROP
iptables -A INPUT -s "app.adjust.net.in" -p tcp -j DROP
iptables -A INPUT -s "ms.singaporepaya.com" -p tcp -j DROP
iptables -A INPUT -s "uamo-image.arenabreakout.com" -p tcp -j DROP
iptables -A INPUT -s "platform-lookaside.fbsbx.com" -p tcp -j DROP
iptables -A INPUT -s "lh3.googleusercontent.com" -p tcp -j DROP
iptables -A INPUT -s "graph.facebook.com" -p tcp -j DROP
iptables -A INPUT -s "down.gamelet.games" -p tcp -j DROP
iptables -A INPUT -s "gamenative-cdn-sg.intlgame.com" -p tcp -j DROP
iptables -A INPUT -s "app.adjust.world" -p tcp -j DROP
iptables -A INPUT -s "android.crashsight.wetest.net" -p tcp -j DROP
iptables -A INPUT -s "app.adjust.com" -p tcp -j DROP
iptables -A INPUT -s "app.adjust.net.in" -p tcp -j DROP
iptables -A INPUT -s "ms.singaporepaya.com" -p tcp -j DROP
iptables -A INPUT -s "uamo-image.arenabreakout.com" -p tcp -j DROP
iptables -A INPUT -s "platform-lookaside.fbsbx.com" -p tcp -j DROP
iptables -A INPUT -s "lh3.googleusercontent.com" -p tcp -j DROP
iptables -A INPUT -s "graph.facebook.com" -p tcp -j DROP
iptables -A INPUT -s "down.gamelet.games" -p tcp -j DROP
iptables -A INPUT -s "gamenative-cdn-sg.intlgame.com" -p tcp -j DROP
iptables -A INPUT -s "app.adjust.world" -p tcp -j DROP
iptables -A INPUT -s "music.163.com" -p tcp -j DROP
iptables -A INPUT -s "y.music.163.com" -p tcp -j DROP
iptables -A INPUT -s "graph.facebook.com" -p tcp -j DROP
iptables -A INPUT -s "adv.sec.miui.com" -p tcp -j DROP
iptables -A INPUT -s "cloudctrl.gcloudsdk.com" -p tcp -j DROP
iptables -A INPUT -s "uamo-image.arenabreakout.com" -p tcp -j DROP
iptables -A INPUT -s "app.adjust.com" -p tcp -j DROP
iptables -A INPUT -s "app.adjust.net.in" -p tcp -j DROP
iptables -A INPUT -s "app.adjust.world" -p tcp -j DROP
iptables -A INPUT -s "android.crashsight.wetest.net" -p tcp -j DROP
iptables -A INPUT -s "broker-uamo.vasdgame.com" -p tcp -j DROP
iptables -A INPUT -s "app-measurement.com" -p tcp -j DROP
iptables -A INPUT -s "ms.singaporepaya.com" -p tcp -j DROP
iptables -A INPUT -s "glcs.listdl.com" -p tcp -j DROP
                # 显示当前时间
                time3=$(date "+%Y-%m-%d %H:%M:%S")
                echo -e "\033[36m北京时间:$time3\033[0m"
                echo -e "\033[33;1m电报@yagenb 尊贵赞助版用户 鸭哥提醒您己循环\033[0m：$count"
                ((count++))
            
                # 等待1秒后再次检查
                sleep 0.5
            done
            ;;
        "退出")
            echo "退出程序"
            exit 0
            ;;
        *) echo "无效选项";;
    esac
done
} </dev/tty
