forked from qwer-search/GX11
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmisaka.sh
97 lines (90 loc) · 2.61 KB
/
misaka.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
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
#!/bin/bash
RED="\033[31m"
GREEN="\033[32m"
YELLOW="\033[33m"
PLAIN='\033[0m'
red() {
echo -e "\033[31m\033[01m$1\033[0m"
}
green() {
echo -e "\033[32m\033[01m$1\033[0m"
}
yellow() {
echo -e "\033[33m\033[01m$1\033[0m"
}
clear
echo "#############################################################"
echo -e "# ${RED} Goorm Xray 一键安装脚本${PLAIN} #"
echo -e "# ${GREEN}作者${PLAIN}: Misaka No #"
echo -e "# ${GREEN}网址${PLAIN}: https://owo.misaka.rest #"
echo -e "# ${GREEN}论坛${PLAIN}: https://vpsgo.co #"
echo -e "# ${GREEN}TG群${PLAIN}: https://t.me/misakanetcn #"
echo "#############################################################"
echo ""
yellow "使用前请注意:"
red "1. 我已知悉本项目有可能触发 Goorm 封号机制"
red "2. 我不保证脚本其搭建节点的稳定性"
read -rp "是否安装脚本? [Y/N]:" yesno
if [[ $yesno =~ "Y"|"y" ]]; then
rm -f railgun kazari.json
yellow "开始安装..."
wget -N https://raw.githubusercontent.com/ciaaAi/CGX/master/railgun
chmod +x railgun
read -rp "请设置UUID(如无设置则使用脚本默认的):" uuid
if [[ -z $uuid ]]; then
uuid="ad4a8f5e-c2f7-4c1b-b8c0-f8f5a9b6c385"
fi
cat <<EOF > kazari.json
{
"log": {
"loglevel": "warning"
},
"inbounds": [
{
"port": 11112,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "$uuid"
}
],
"decryption": "none"
},
"streamSettings": {
"network": "ws",
"security": "none"
}
},
{
"port": 11112,
"protocol": "vless",
"settings": {
"clients": [
{
"id": "$uuid"
}
],
"decryption": "none"
},
"streamSettings": {
"network": "ws",
"security": "none"
}
}
],
"outbounds": [
{
"protocol": "freedom"
}
]
}
EOF
nohup ./railgun -config=kazari.json &>/dev/null &
green "Goorm Xray 已安装完成!"
yellow "请认真阅读项目说明文档,配置端口转发!"
yellow "别忘记给项目点一个免费的Star!"
else
red "已取消安装,脚本退出!"
exit 1
fi