-
Notifications
You must be signed in to change notification settings - Fork 433
/
dev.sh
38 lines (32 loc) · 1.01 KB
/
dev.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
#Check Root
[ $(id -u) != "0" ] && { echo "Error: You must be root to run this script"; exit 1; }
echo "测试区域,请勿随意使用"
echo "1.更新SSR-Bsah"
echo "2.一键封禁BT下载,SPAM邮件流量(无法撤销)"
echo "3.防止暴力破解SS连接信息 (重启后失效)"
while :; do echo
read -p "请选择: " devc
[ -z "$devc" ] && ssr && break
if [[ ! $devc =~ ^[1-3]$ ]]; then
echo "输入错误! 请输入正确的数字!"
else
break
fi
done
if [[ $devc == 1 ]];then
rm -rf /usr/local/bin/ssr
cd /usr/local/SSR-Bash-Python/
git pull
wget -q -N --no-check-certificate -O /usr/local/bin/ssr https://raw.githubusercontent.com/readour/AR-B-P-B/master/ssr
chmod +x /usr/local/bin/ssr
echo 'SSR-Bash升级成功!'
ssr
fi
if [[ $devc == 2 ]];then
wget -4qO- softs.pw/Bash/Get_Out_Spam.sh|bash
fi
if [[ $devc == 3 ]];then
nohup tail -F /usr/local/shadowsocksr/ssserver.log | python autoban.py >log 2>log &
fi