-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtoolbox.sh
More file actions
136 lines (121 loc) · 4.78 KB
/
toolbox.sh
File metadata and controls
136 lines (121 loc) · 4.78 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
#!/bin/bash
red='\033[0;31m'
green='\033[0;32m'
yellow='\033[0;33m'
plain='\033[0m'
# check root
[[ $EUID -ne 0 ]] && echo -e "${red}错误:${plain} 必须使用root用户运行此脚本!\n" && exit 1
# check os
if [[ -f /etc/redhat-release ]]; then
release="centos"
elif cat /etc/issue | grep -Eqi "debian"; then
release="debian"
elif cat /etc/issue | grep -Eqi "ubuntu"; then
release="ubuntu"
elif cat /etc/issue | grep -Eqi "centos|red hat|redhat"; then
release="centos"
elif cat /proc/version | grep -Eqi "debian"; then
release="debian"
elif cat /proc/version | grep -Eqi "ubuntu"; then
release="ubuntu"
elif cat /proc/version | grep -Eqi "centos|red hat|redhat"; then
release="centos"
else
echo -e "${red}未检测到系统版本,请联系脚本作者!${plain}\n" && exit 1
fi
#Install base
echo -e "${yellow}install_base${plain} "
if [[ x"${release}" == x"centos" ]]; then
yum install epel-release -y
yum install wget socat bc curl sudo -y
else
apt-get install wget socat bc curl sudo -y
fi
clear
echo -e "${green}=====================================================================${plain} "
echo -e "${green}@ VPS常用脚本集合 TG@oracle_abc @${plain} "
echo -e "${green}@ @${plain} "
echo -e "${green}@ 1.BBR一键脚本 2.流媒体检测脚本 @${plain} "
echo -e "${green}@ 3.服务器测试脚本 4.安装宝塔7.7原版 @${plain} "
echo -e "${green}@ 5.宝塔7.7破解脚本 6.XUI一键安装脚本 @${plain} "
echo -e "${green}@ 7.甲骨文DD_Debian11 8.甲骨文DD_WIN7 @${plain} "
echo -e "${green}@ 9.一键安装DDNS_GO 10.XRAY一键搭建节点 @${plain} "
echo -e "${green}@ 11.一键安装Docker 12.甲骨文保活(一键脚本) @${plain} "
echo -e "${green}=====================================================================${plain} "
echo -e "${yellow} 均搜集自互联网,侵权请联系删除 ${plain} "
echo "请输入数字1-10:"
read input
case $input in
1)
echo "你选择的是BBR一键脚本"
wget -N --no-check-certificate "https://gist.github.com/zeruns/a0ec603f20d1b86de6a774a8ba27588f/raw/4f9957ae23f5efb2bb7c57a198ae2cffebfb1c56/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
;;
2)
echo "你选择的是流媒体检测"
bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)
;;
3)
clear
wget -N --no-check-certificate "https://raw.githubusercontent.com/Mrmineduce21/VPS_ToolBox/main/check.sh" && chmod +X check.sh && bash check.sh
;;
4)
echo "你选择的是安装宝塔7.7原版"
curl -sSO https://raw.githubusercontent.com/zhucaidan/btpanel-v7.7.0/main/install/install_panel.sh && bash install_panel.sh
;;
5)
echo "你选择的是宝塔7.7破解脚本"
curl -sSO https://cdn.cheshirex.com/uploads/sh/one_key_happy.sh && bash one_key_happy.sh
;;
6)
echo "你选择的是XUI一键安装脚本"
bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)
;;
7)
echo "甲骨文DD_Debian11_默认密码【MoeClub.org】"
echo "30秒后开始执行"
countdown=30
while [ $countdown -gt 0 ]
do
clear
echo "误操作请断开终端或Ctrl+C终止|默认密码【MoeClub.org】"
echo "倒计时: $countdown 秒"
sleep 1
((countdown--))
done
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 11 -v 64 -a -firmware
;;
8)
echo "甲骨文DD_Windows_7_SP1【默认用户名:Administrator 密码:www.nat.ee】"
echo "30秒后开始执行"
countdown=30
while [ $countdown -gt 0 ]
do
clear
echo "误操作请断开终端或Ctrl+C终止|【默认用户名:Administrator 密码:www.nat.ee】"
echo "倒计时: $countdown 秒"
sleep 1
((countdown--))
done
wget --no-check-certificate -qO InstallNET.sh 'http://d.nat.ee/sh/InstallNET.sh' && bash InstallNET.sh -dd 'http://d.nat.ee/oracle/Uefi-gpt-Win7-Ent.gz'
;;
9)
echo "一键安装DDNS_GO"
wget -qO- https://raw.githubusercontent.com/JasonHe/ddns/main/ddns.sh | bash
;;
10)
echo "Xray一键安装【一键搭建节点】"
bash <(curl -Ls https://raw.githubusercontent.com/atrandys/xray/main/install_triple_config.sh)
;;
11)
echo "一键安装Docker"
curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
;;
12)
echo "甲骨文保活(一键脚本)"
echo "还在写"
;;
*)
echo "输入无效数字!"
;;
esac
exit 0