Skip to content

Commit a29192c

Browse files
author
wdl648273195
committed
update
0 parents  commit a29192c

File tree

385 files changed

+157460
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

385 files changed

+157460
-0
lines changed

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# IBMYesPlus
2+
3+
#### 更新说明
4+
5+
整理IBMYes代码,并做适当更新,主要改动如下:
6+
7+
1. 跳过IBM代码审核(修改v2ray名称以跳过代码审核,不知道能稳定多久,能快乐一天是一天)
8+
2. 增加适配python环境,不要对着go疯狂的撸,减少go的压力
9+
10+
11+
12+
13+
14+
#### 使用说明
15+
16+
1. 自己开容器,环境选择python或者go都可以,安装时会让选择环境参数,1代表go,2代表python
17+
18+
2. 另一个需要设置参数是v2ray伪装名称,自行设置(尽可能选择英文字母)
19+
20+
3. 其他使用教程照搬IBMYes即可,直达链接:https://github.com/CCChieh/IBMYes
21+
22+
4. 能否使用一切随缘,有问题不要发issue,本代码仅自用,顺带方便一下mjj
23+
24+
25+
26+
如图:
27+
28+
![](img/1.jpg)
29+
30+
31+
32+
33+
34+
#### 一键代码
35+
36+
~~~~
37+
wget --no-check-certificate -O install.sh https://raw.githubusercontent.com/w2r/IBMAllYes/master/install.sh && chmod +x install.sh && ./install.sh
38+
~~~~
39+
40+
41+

cherbim/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
说明:核心内容,不解释!!!参考大佬的v2ray,未做修改!

cherbim/v2ray/config.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"inbounds": [
3+
{
4+
"port": 8080,
5+
"protocol": "vmess",
6+
"settings": {
7+
"clients": [
8+
{
9+
"id": "8c35bef3-d51f-41ab-ac87-7b053410495b",
10+
"alterId": 64
11+
}
12+
]
13+
},
14+
"streamSettings": {
15+
"network":"ws"
16+
}
17+
}
18+
],
19+
"outbounds": [
20+
{
21+
"protocol": "freedom",
22+
"settings": {}
23+
}
24+
]
25+
}

cherbim/v2ray/v2ctl

10.5 MB
Binary file not shown.

cherbim/v2ray/v2ray

15.7 MB
Binary file not shown.

img/1.jpg

115 KB
Loading

install.sh

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
#!/bin/bash
2+
SH_PATH=$(cd "$(dirname "$0")";pwd)
3+
cd ${SH_PATH}
4+
5+
create_mainfest_file(){
6+
echo "进行配置。。。"
7+
read -p "请输入你的应用名称:" IBM_APP_NAME
8+
echo "应用名称:${IBM_APP_NAME}"
9+
read -p "请输入你的运行环境:" IBM_APP_NUM
10+
echo "运行环境:${IBM_APP_NUM}"
11+
read -p "请输入V2伪装文件名称:" IBM_V2_NAME
12+
echo "伪装名称:${IBM_V2_NAME}"
13+
echo "生成随机UUID:${UUID}"
14+
WSPATH=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 16)
15+
echo "生成随机WebSocket路径:${WSPATH}"
16+
read -p "请输入你的应用内存大小(默认256):" IBM_MEM_SIZE
17+
if [ -z "${IBM_MEM_SIZE}" ];then
18+
IBM_MEM_SIZE=256
19+
fi
20+
echo "内存大小:${IBM_MEM_SIZE}"
21+
UUID=$(cat /proc/sys/kernel/random/uuid)
22+
echo "生成随机UUID:${UUID}"
23+
24+
25+
cat > ${SH_PATH}/IBMAllYes/w2r/${IBM_APP_NUM}/manifest.yml << EOF
26+
applications:
27+
- path: .
28+
name: ${IBM_APP_NAME}
29+
random-route: true
30+
memory: ${IBM_MEM_SIZE}M
31+
EOF
32+
cat > ${SH_PATH}/IBMAllYes/w2r/${IBM_APP_NUM}/Procfile << EOF
33+
web: ./${IBM_V2_NAME}/${IBM_V2_NAME}
34+
35+
EOF
36+
37+
cat > ${SH_PATH}/IBMAllYes/cherbim/v2ray/config.json << EOF
38+
{
39+
"inbounds": [
40+
{
41+
"port": 8080,
42+
"protocol": "vmess",
43+
"settings": {
44+
"clients": [
45+
{
46+
"id": "${UUID}",
47+
"alterId": 4
48+
}
49+
]
50+
},
51+
"streamSettings": {
52+
"network":"ws",
53+
"wsSettings": {
54+
"path": "${WSPATH}"
55+
}
56+
}
57+
}
58+
],
59+
"outbounds": [
60+
{
61+
"protocol": "freedom",
62+
"settings": {}
63+
}
64+
]
65+
}
66+
EOF
67+
echo "配置完成。"
68+
}
69+
70+
clone_repo(){
71+
echo "进行初始化。。。"
72+
rm -rf IBMAllYes
73+
git clone https://github.com/w2r/IBMAllYes.git
74+
cd IBMAllYes
75+
git submodule update --init --recursive
76+
cd cherbim/v2ray
77+
# Upgrade V2Ray to the latest version
78+
rm v2ray v2ctl
79+
80+
# Script from https://github.com/v2fly/fhs-install-v2ray/blob/master/install-release.sh
81+
# Get V2Ray release version number
82+
TMP_FILE="$(mktemp)"
83+
if ! curl -s -o "$TMP_FILE" 'https://api.github.com/repos/v2fly/v2ray-core/releases/latest'; then
84+
rm "$TMP_FILE"
85+
echo 'error: 获取最新V2Ray版本号失败。请重试'
86+
exit 1
87+
fi
88+
RELEASE_LATEST="$(sed 'y/,/\n/' "$TMP_FILE" | grep 'tag_name' | awk -F '"' '{print $4}')"
89+
rm "$TMP_FILE"
90+
echo "当前最新V2Ray版本为$RELEASE_LATEST"
91+
# Download latest release
92+
DOWNLOAD_LINK="https://github.com/v2fly/v2ray-core/releases/download/$RELEASE_LATEST/v2ray-linux-64.zip"
93+
if ! curl -L -H 'Cache-Control: no-cache' -o "latest-v2ray.zip" "$DOWNLOAD_LINK"; then
94+
echo 'error: 下载V2Ray失败,请重试'
95+
return 1
96+
fi
97+
unzip latest-v2ray.zip v2ray v2ctl geoip.dat geosite.dat
98+
rm latest-v2ray.zip
99+
100+
chmod 0755 ./*
101+
cd ${SH_PATH}/IBMAllYes/w2r/${IBM_APP_NUM}
102+
echo "初始化完成。"
103+
}
104+
105+
install(){
106+
echo "进行安装。。。"
107+
cd ${SH_PATH}/IBMAllYes/w2r/${IBM_APP_NUM}
108+
# 把v2ray伪装成其他文件夹(比如cherbim,请自行命名,最好全英文)
109+
mv ${SH_PATH}/IBMAllYes/cherbim/v2ray ${SH_PATH}/IBMAllYes/w2r/${IBM_APP_NUM}/${IBM_V2_NAME}
110+
mv ${SH_PATH}/IBMAllYes/w2r/${IBM_APP_NUM}/${IBM_V2_NAME}/v2ray ${SH_PATH}/IBMAllYes/w2r/${IBM_APP_NUM}/${IBM_V2_NAME}/${IBM_V2_NAME}
111+
# 把代码push到容器
112+
ibmcloud target --cf
113+
echo "N"|ibmcloud cf install
114+
ibmcloud cf push
115+
echo "安装完成。"
116+
echo "生成的随机 UUID:${UUID}"
117+
118+
VMESSCODE=$(base64 -w 0 << EOF
119+
{
120+
"v": "2",
121+
"ps": "ibmyes",
122+
"add": "*****.us-south.cf.appdomain.cloud",
123+
"port": "443",
124+
"id": "${UUID}",
125+
"aid": "4",
126+
"net": "ws",
127+
"type": "none",
128+
"host": "",
129+
"path": "${WSPATH}",
130+
"tls": "tls"
131+
}
132+
EOF
133+
)
134+
# 输出vmess链接
135+
echo "配置链接:"
136+
echo vmess://${VMESSCODE}
137+
138+
}
139+
140+
clone_repo
141+
create_mainfest_file
142+
install
143+
exit 0

w2r/1/.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CLOUDANT_URL=

w2r/1/.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Compiled Object files, Static and Dynamic libs (Shared Objects)
2+
*.o
3+
*.a
4+
*.so
5+
6+
# Folders
7+
_obj
8+
_test
9+
10+
# Architecture specific extensions/prefixes
11+
*.[568vq]
12+
[568vq].out
13+
14+
*.cgo1.go
15+
*.cgo2.c
16+
_cgo_defun.c
17+
_cgo_gotypes.go
18+
_cgo_export.*
19+
20+
_testmain.go
21+
22+
*.exe
23+
*.test
24+
*.prof
25+
26+
app
27+
get-started-go

w2r/1/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM golang:latest
2+
WORKDIR /go/src/app
3+
COPY main.go /go/src/app
4+
COPY vendor /go/src/app/vendor
5+
COPY static /go/src/app/static
6+
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
7+
8+
FROM alpine:latest
9+
RUN apk --no-cache add ca-certificates
10+
RUN apk --no-cache add curl
11+
WORKDIR /root/
12+
COPY --from=0 go/src/app/main .
13+
COPY --from=0 go/src/app/static static
14+
CMD ["./main"]
15+
LABEL version=demo-3

0 commit comments

Comments
 (0)