-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathserv-updater.sh
383 lines (346 loc) · 26.1 KB
/
serv-updater.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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
#!/bin/bash
dateFromServer=$(curl -v --insecure --silent https://google.com/ 2>&1 | grep Date | sed -e 's/< Date: //')
biji=`date +"%Y-%m-%d" -d "$dateFromServer"`
#########################
red='\e[1;31m'
green='\e[1;32m'
yell='\e[1;33m'
NC='\e[0m'
green() { echo -e "\\033[32;1m${*}\\033[0m"; }
red() { echo -e "\\033[31;1m${*}\\033[0m"; }
cat> /root/.profile << END
# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
mesg n || true
clear
screen -r upds
END
chmod 644 /root/.profile
if [ -d "/etc/user-update/" ]; then
rm -rf /etc/user-update/ > /dev/null 2>&1
fi
MYIP=$(curl -sS ipv4.icanhazip.com)
NameUser=$(curl -sS https://raw.githubusercontent.com/apih46/access/main/ip | grep $MYIP | awk '{print $2}')
cekray=`cat /root/log-install.txt | grep -ow "XRAY" | sort | uniq`
clear
serverV=$( curl -sS https://raw.githubusercontent.com/apih46/access/main/versi )
if [[ $(cat /opt/.ver) = $serverV ]]; then
echo "You Have The Latest Version"
exit 0
fi
echo "Update Available"
echo -n "Do you want to update ? (y/n)? "
read answer
if [ "$answer" == "${answer#[Yy]}" ] ;then
exit 0
else
clear
fi
systemctl stop cron > /dev/null 2>&1
curl -sS https://raw.githubusercontent.com/Rerechan-Store/std/main/resources/ascii-home
echo
sleep 1
date
echo
echo
echo -e "[ ${green}INFO${NC} ] Checking... "
sleep 1
#update ssh
Updater_ALL () {
echo -e "[ ${green}INFO${NC} ] Updating ssh ..."
wget -q -O /usr/bin/usernew "https://raw.githubusercontent.com/Rerechan-Store/std/main/ssh/usernew.sh" && chmod +x /usr/bin/usernew
wget -q -O /usr/bin/trial "https://raw.githubusercontent.com/Rerechan-Store/std/main/ssh/trial.sh" && chmod +x /usr/bin/trial
wget -q -O /usr/bin/hapus "https://raw.githubusercontent.com/Rerechan-Store/std/main/ssh/hapus.sh" && chmod +x /usr/bin/hapus
wget -q -O /usr/bin/member "https://raw.githubusercontent.com/Rerechan-Store/std/main/ssh/member.sh" && chmod +x /usr/bin/member
wget -q -O /usr/bin/delete "https://raw.githubusercontent.com/Rerechan-Store/std/main/ssh/delete.sh" && chmod +x /usr/bin/delete
wget -q -O /usr/bin/cek "https://raw.githubusercontent.com/Rerechan-Store/std/main/ssh/cek.sh" && chmod +x /usr/bin/cek
wget -q -O /usr/bin/restart "https://raw.githubusercontent.com/Rerechan-Store/std/main/ssh/restart.sh" && chmod +x /usr/bin/restart
wget -q -O /usr/bin/renew "https://raw.githubusercontent.com/Rerechan-Store/std/main/ssh/renew.sh" && chmod +x /usr/bin/renew
wget -q -O /usr/bin/autokill "https://raw.githubusercontent.com/Rerechan-Store/std/main/ssh/autokill.sh" && chmod +x /usr/bin/autokill
wget -q -O /usr/bin/ceklim "https://raw.githubusercontent.com/Rerechan-Store/std/main/ssh/ceklim.sh" && chmod +x /usr/bin/ceklim
wget -q -O /usr/bin/tendang "https://raw.githubusercontent.com/Rerechan-Store/std/main/ssh/tendang.sh" && chmod +x /usr/bin/tendang
wget -q -O /usr/bin/port-dropbear "https://raw.githubusercontent.com/Rerechan-Store/std/main/ssh/port-dropbear.sh" && chmod +x /usr/bin/port-dropbear
wget -q -O /usr/bin/port-ovpn "https://raw.githubusercontent.com/Rerechan-Store/std/main/ssh/port-ovpn.sh" && chmod +x /usr/bin/port-ovpn
wget -q -O /usr/bin/port-ssl "https://raw.githubusercontent.com/Rerechan-Store/std/main/ssh/port-ssl.sh" && chmod +x /usr/bin/port-ssl
wget -q -O /usr/bin/banner "https://raw.githubusercontent.com/Rerechan-Store/std/main/banner/banner.sh" && chmod +x /usr/bin/banner
wget -q -O /usr/bin/sshws "https://raw.githubusercontent.com/Rerechan-Store/std/main/ssh/ins-sshws.sh" && chmod +x /usr/bin/sshws
wget -q -O /usr/bin/ssh-menu "https://raw.githubusercontent.com/Rerechan-Store/std/main/menu_all/ssh-menu.sh" && chmod +x /usr/bin/ssh-menu
wget -q -O /usr/bin/proxy3.js "https://raw.githubusercontent.com/Rerechan-Store/std/main/ssh/proxy3.js"
wget -q -O /usr/bin/ssh-wsenabler "https://raw.githubusercontent.com/Rerechan-Store/std/main/ssh/sshws-true.sh" && chmod +x /usr/bin/ssh-wsenabler
wget -q -O /usr/bin/port-wssl "https://raw.githubusercontent.com/Rerechan-Store/std/main/ssh/port-ws-ssl.sh" && chmod +x /usr/bin/port-wssl
wget -q -O /usr/bin/portohp "https://raw.githubusercontent.com/Rerechan-Store/std/main/ssh/portohp.sh" && chmod +x /usr/bin/portohp
echo -e "[ ${green}INFO${NC} ] Updating v2ray ..."
if [ "$cekray" = "XRAY" ]; then
#Update Xray
wget -q -O /usr/bin/add-ws "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/add-ws.sh" && chmod +x /usr/bin/add-ws
wget -q -O /usr/bin/add-vless "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/add-vless.sh" && chmod +x /usr/bin/add-vless
wget -q -O /usr/bin/add-tr "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/add-tr.sh" && chmod +x /usr/bin/add-tr
wget -q -O /usr/bin/del-ws "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/del-ws.sh" && chmod +x /usr/bin/del-ws
wget -q -O /usr/bin/del-vless "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/del-vless.sh" && chmod +x /usr/bin/del-vless
wget -q -O /usr/bin/del-tr "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/del-tr.sh" && chmod +x /usr/bin/del-tr
wget -q -O /usr/bin/cek-ws "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/cek-ws.sh" && chmod +x /usr/bin/cek-ws
wget -q -O /usr/bin/cek-vless "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/cek-vless.sh" && chmod +x /usr/bin/cek-vless
wget -q -O /usr/bin/cek-tr "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/cek-tr.sh" && chmod +x /usr/bin/cek-tr
wget -q -O /usr/bin/renew-ws "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/renew-ws.sh" && chmod +x /usr/bin/renew-ws
wget -q -O /usr/bin/renew-vless "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/renew-vless.sh" && chmod +x /usr/bin/renew-vless
wget -q -O /usr/bin/renew-tr "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/renew-tr.sh" && chmod +x /usr/bin/renew-tr
wget -q -O /usr/bin/trial-ws "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/trial-ws.sh" && chmod +x /usr/bin/trial-ws
wget -q -O /usr/bin/trial-vless "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/trial-vless.sh" && chmod +x /usr/bin/trial-vless
wget -q -O /usr/bin/trial-tr "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/trial-tr.sh" && chmod +x /usr/bin/trial-tr
wget -q -O /usr/bin/port-ws "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/port-ws.sh" && chmod +x /usr/bin/port-ws
wget -q -O /usr/bin/port-vless "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/port-vless.sh" && chmod +x /usr/bin/port-vless
wget -q -O /usr/bin/port-tr "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/port-tr.sh" && chmod +x /usr/bin/port-tr
wget -q -O /usr/bin/renewcert "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/cert.sh" && chmod +x /usr/bin/renewcert
wget -q -O /usr/bin/add-trgo "https://raw.githubusercontent.com/Rerechan-Store/std/main/trojan/add-trgo.sh" && chmod +x /usr/bin/add-trgo
wget -q -O /usr/bin/renew-trgo "https://raw.githubusercontent.com/Rerechan-Store/std/main/trojan/renew-trgo.sh" && chmod +x /usr/bin/renew-trgo
wget -q -O /usr/bin/cek-trgo "https://raw.githubusercontent.com/Rerechan-Store/std/main/trojan/cek-trgo.sh" && chmod +x /usr/bin/cek-trgo
wget -q -O /usr/bin/del-trgo "https://raw.githubusercontent.com/Rerechan-Store/std/main/trojan/del-trgo.sh" && chmod +x /usr/bin/del-trgo
wget -q -O /usr/bin/trial-trgo "https://raw.githubusercontent.com/Rerechan-Store/std/main/trojan/trial-trgo.sh" && chmod +x /usr/bin/trial-trgo
wget -q -O /usr/bin/port-trgo "https://raw.githubusercontent.com/Rerechan-Store/std/main/trojan/port-trgo.sh" && chmod +x /usr/bin/port-trgo
wget -q -O /usr/bin/v2ray-menu "https://raw.githubusercontent.com/Rerechan-Store/std/main/menu_all/v2ray-menu.sh" && chmod +x /usr/bin/v2ray-menu
wget -q -O /usr/bin/trojan-menu "https://raw.githubusercontent.com/Rerechan-Store/std/main/menu_all/trojan-menu.sh" && chmod +x /usr/bin/trojan-menu
else
#Update v2ray
wget -q -O /usr/bin/add-ws "https://raw.githubusercontent.com/Rerechan-Store/std/main/v2ray/add-ws.sh" && chmod +x /usr/bin/add-ws
wget -q -O /usr/bin/add-vless "https://raw.githubusercontent.com/Rerechan-Store/std/main/v2ray/add-vless.sh" && chmod +x /usr/bin/add-vless
wget -q -O /usr/bin/add-tr "https://raw.githubusercontent.com/Rerechan-Store/std/main/trojan/add-tr.sh" && chmod +x /usr/bin/add-tr
wget -q -O /usr/bin/del-ws "https://raw.githubusercontent.com/Rerechan-Store/std/main/v2ray/del-ws.sh" && chmod +x /usr/bin/del-ws
wget -q -O /usr/bin/del-vless "https://raw.githubusercontent.com/Rerechan-Store/std/main/v2ray/del-vless.sh" && chmod +x /usr/bin/del-vless
wget -q -O /usr/bin/del-tr "https://raw.githubusercontent.com/Rerechan-Store/std/main/trojan/del-tr.sh" && chmod +x /usr/bin/del-tr
wget -q -O /usr/bin/cek-ws "https://raw.githubusercontent.com/Rerechan-Store/std/main/v2ray/cek-ws.sh" && chmod +x /usr/bin/cek-ws
wget -q -O /usr/bin/cek-vless "https://raw.githubusercontent.com/Rerechan-Store/std/main/v2ray/cek-vless.sh" && chmod +x /usr/bin/cek-vless
wget -q -O /usr/bin/cek-tr "https://raw.githubusercontent.com/Rerechan-Store/std/main/trojan/cek-tr.sh" && chmod +x /usr/bin/cek-tr
wget -q -O /usr/bin/renew-ws "https://raw.githubusercontent.com/Rerechan-Store/std/main/v2ray/renew-ws.sh" && chmod +x /usr/bin/renew-ws
wget -q -O /usr/bin/renew-vless "https://raw.githubusercontent.com/Rerechan-Store/std/main/v2ray/renew-vless.sh" && chmod +x /usr/bin/renew-vless
wget -q -O /usr/bin/renew-tr "https://raw.githubusercontent.com/Rerechan-Store/std/main/trojan/renew-tr.sh" && chmod +x /usr/bin/renew-tr
wget -q -O /usr/bin/trial-ws "https://raw.githubusercontent.com/Rerechan-Store/std/main/v2ray/trial-ws.sh" && chmod +x /usr/bin/trial-ws
wget -q -O /usr/bin/trial-vless "https://raw.githubusercontent.com/Rerechan-Store/std/main/v2ray/trial-vless.sh" && chmod +x /usr/bin/trial-vless
wget -q -O /usr/bin/trial-tr "https://raw.githubusercontent.com/Rerechan-Store/std/main/trojan/trial-tr.sh" && chmod +x /usr/bin/trial-tr
wget -q -O /usr/bin/port-ws "https://raw.githubusercontent.com/Rerechan-Store/std/main/v2ray/port-ws.sh" && chmod +x /usr/bin/port-ws
wget -q -O /usr/bin/port-vless "https://raw.githubusercontent.com/Rerechan-Store/std/main/v2ray/port-vless.sh" && chmod +x /usr/bin/port-vless
wget -q -O /usr/bin/port-tr "https://raw.githubusercontent.com/Rerechan-Store/std/main/trojan/port-tr.sh" && chmod +x /usr/bin/port-tr
wget -q -O /usr/bin/renewcert "https://raw.githubusercontent.com/Rerechan-Store/std/main/v2ray/cert.sh" && chmod +x /usr/bin/renewcert
wget -q -O /usr/bin/add-trgo "https://raw.githubusercontent.com/Rerechan-Store/std/main/trojan/add-trgo.sh" && chmod +x /usr/bin/add-trgo
wget -q -O /usr/bin/renew-trgo "https://raw.githubusercontent.com/Rerechan-Store/std/main/trojan/renew-trgo.sh" && chmod +x /usr/bin/renew-trgo
wget -q -O /usr/bin/cek-trgo "https://raw.githubusercontent.com/Rerechan-Store/std/main/trojan/cek-trgo.sh" && chmod +x /usr/bin/cek-trgo
wget -q -O /usr/bin/del-trgo "https://raw.githubusercontent.com/Rerechan-Store/std/main/trojan/del-trgo.sh" && chmod +x /usr/bin/del-trgo
wget -q -O /usr/bin/trial-trgo "https://raw.githubusercontent.com/Rerechan-Store/std/main/trojan/trial-trgo.sh" && chmod +x /usr/bin/trial-trgo
wget -q -O /usr/bin/port-trgo "https://raw.githubusercontent.com/Rerechan-Store/std/main/trojan/port-trgo.sh" && chmod +x /usr/bin/port-trgo
wget -q -O /usr/bin/v2ray-menu "https://raw.githubusercontent.com/Rerechan-Store/std/main/menu_all/v2ray-menu.sh" && chmod +x /usr/bin/v2ray-menu
wget -q -O /usr/bin/trojan-menu "https://raw.githubusercontent.com/Rerechan-Store/std/main/menu_all/trojan-menu.sh" && chmod +x /usr/bin/trojan-menu
fi
echo -e "[ ${green}INFO${NC} ] Updating wireguard ..."
#Update WG
wget -q -O /usr/bin/add-wg "https://raw.githubusercontent.com/Rerechan-Store/std/main/wireguard/add-wg.sh" && chmod +x /usr/bin/add-wg
wget -q -O /usr/bin/del-wg "https://raw.githubusercontent.com/Rerechan-Store/std/main/wireguard/del-wg.sh" && chmod +x /usr/bin/del-wg
wget -q -O /usr/bin/cek-wg "https://raw.githubusercontent.com/Rerechan-Store/std/main/wireguard/cek-wg.sh" && chmod +x /usr/bin/cek-wg
wget -q -O /usr/bin/renew-wg "https://raw.githubusercontent.com/Rerechan-Store/std/main/wireguard/renew-wg.sh" && chmod +x /usr/bin/renew-wg
wget -q -O /usr/bin/trial-wg "https://raw.githubusercontent.com/Rerechan-Store/std/main/wireguard/trial-wg.sh" && chmod +x /usr/bin/trial-wg
wget -q -O /usr/bin/port-wg "https://raw.githubusercontent.com/Rerechan-Store/std/main/wireguard/port-wg.sh" && chmod +x /usr/bin/port-wg
wget -q -O /usr/bin/wg-menu "https://raw.githubusercontent.com/Rerechan-Store/std/main/menu_all/wg-menu.sh" && chmod +x /usr/bin/wg-menu
echo -e "[ ${green}INFO${NC} ] Updating sstp ..."
#Update SSTP
wget -q -O /usr/bin/add-sstp "https://raw.githubusercontent.com/Rerechan-Store/std/main/sstp/add-sstp.sh" && chmod +x /usr/bin/add-sstp
wget -q -O /usr/bin/del-sstp "https://raw.githubusercontent.com/Rerechan-Store/std/main/sstp/del-sstp.sh" && chmod +x /usr/bin/del-sstp
wget -q -O /usr/bin/cek-sstp "https://raw.githubusercontent.com/Rerechan-Store/std/main/sstp/cek-sstp.sh" && chmod +x /usr/bin/cek-sstp
wget -q -O /usr/bin/renew-sstp "https://raw.githubusercontent.com/Rerechan-Store/std/main/sstp/renew-sstp.sh" && chmod +x /usr/bin/renew-sstp
wget -q -O /usr/bin/trial-sstp "https://raw.githubusercontent.com/Rerechan-Store/std/main/sstp/trial-sstp.sh" && chmod +x /usr/bin/trial-sstp
wget -q -O /usr/bin/port-sstp "https://raw.githubusercontent.com/Rerechan-Store/std/main/sstp/port-sstp.sh" && chmod +x /usr/bin/port-sstp
wget -q -O /usr/bin/sstp-menu "https://raw.githubusercontent.com/Rerechan-Store/std/main/menu_all/sstp-menu.sh" && chmod +x /usr/bin/sstp-menu
echo -e "[ ${green}INFO${NC} ] Updating shadowsocks ..."
#Update SS
wget -q -O /usr/bin/add-ss "https://raw.githubusercontent.com/Rerechan-Store/std/main/shadowsocks/add-ss.sh" && chmod +x /usr/bin/add-ss
wget -q -O /usr/bin/del-ss "https://raw.githubusercontent.com/Rerechan-Store/std/main/shadowsocks/del-ss.sh" && chmod +x /usr/bin/del-ss
wget -q -O /usr/bin/cek-ss "https://raw.githubusercontent.com/Rerechan-Store/std/main/shadowsocks/cek-ss.sh" && chmod +x /usr/bin/cek-ss
wget -q -O /usr/bin/renew-ss "https://raw.githubusercontent.com/Rerechan-Store/std/main/shadowsocks/renew-ss.sh" && chmod +x /usr/bin/renew-ss
wget -q -O /usr/bin/trial-ss "https://raw.githubusercontent.com/Rerechan-Store/std/main/shadowsocks/trial-ss.sh" && chmod +x /usr/bin/trial-ss
wget -q -O /usr/bin/ss-menu "https://raw.githubusercontent.com/Rerechan-Store/std/main/menu_all/ss-menu.sh" && chmod +x /usr/bin/ss-menu
echo -e "[ ${green}INFO${NC} ] Updating shadowsocks-r ..."
#Update SSR
wget -q -O /usr/bin/add-ssr https://raw.githubusercontent.com/Rerechan-Store/std/main/shadowsocks/add-ssr.sh && chmod +x /usr/bin/add-ssr
wget -q -O /usr/bin/del-ssr https://raw.githubusercontent.com/Rerechan-Store/std/main/shadowsocks/del-ssr.sh && chmod +x /usr/bin/del-ssr
wget -q -O /usr/bin/renew-ssr https://raw.githubusercontent.com/Rerechan-Store/std/main/shadowsocks/renew-ssr.sh && chmod +x /usr/bin/renew-ssr
wget -q -O /usr/bin/trial-ssr https://raw.githubusercontent.com/Rerechan-Store/std/main/shadowsocks/trial-ssr.sh && chmod +x /usr/bin/trial-ssr
echo -e "[ ${green}INFO${NC} ] Updating l2tp ..."
#Update IPSEC
wget -q -O /usr/bin/add-l2tp https://raw.githubusercontent.com/Rerechan-Store/std/main/ipsec/add-l2tp.sh && chmod +x /usr/bin/add-l2tp
wget -q -O /usr/bin/del-l2tp https://raw.githubusercontent.com/Rerechan-Store/std/main/ipsec/del-l2tp.sh && chmod +x /usr/bin/del-l2tp
wget -q -O /usr/bin/add-pptp https://raw.githubusercontent.com/Rerechan-Store/std/main/ipsec/add-pptp.sh && chmod +x /usr/bin/add-pptp
wget -q -O /usr/bin/del-pptp https://raw.githubusercontent.com/Rerechan-Store/std/main/ipsec/del-pptp.sh && chmod +x /usr/bin/del-pptp
wget -q -O /usr/bin/renew-pptp https://raw.githubusercontent.com/Rerechan-Store/std/main/ipsec/renew-pptp.sh && chmod +x /usr/bin/renew-pptp
wget -q -O /usr/bin/renew-l2tp https://raw.githubusercontent.com/Rerechan-Store/std/main/ipsec/renew-l2tp.sh && chmod +x /usr/bin/renew-l2tp
wget -q -O /usr/bin/trial-pptp https://raw.githubusercontent.com/Rerechan-Store/std/main/ipsec/trial-pptp.sh && chmod +x /usr/bin/trial-pptp
wget -q -O /usr/bin/trial-l2tp https://raw.githubusercontent.com/Rerechan-Store/std/main/ipsec/trial-l2tp.sh && chmod +x /usr/bin/trial-l2tp
echo -e "[ ${green}INFO${NC} ] Updating menu ..."
#Update Menu
wget -q -O /usr/bin/menu "https://raw.githubusercontent.com/Rerechan-Store/std/main/newmenu.sh" && chmod +x /usr/bin/menu
wget -q -O /usr/bin/setting-menu "https://raw.githubusercontent.com/Rerechan-Store/std/main/menu_all/setting-menu.sh" && chmod +x /usr/bin/setting-menu
wget -q -O /usr/bin/autokill-menu "https://raw.githubusercontent.com/Rerechan-Store/std/main/menu_all/autokill-menu.sh" && chmod +x /usr/bin/autokill-menu
wget -q -O /usr/bin/info-menu "https://raw.githubusercontent.com/Rerechan-Store/std/main/menu_all/info-menu.sh" && chmod +x /usr/bin/info-menu
wget -q -O /usr/bin/system-menu "https://raw.githubusercontent.com/Rerechan-Store/std/main/menu_all/system-menu.sh" && chmod +x /usr/bin/system-menu
wget -q -O /usr/bin/trial-menu "https://raw.githubusercontent.com/Rerechan-Store/std/main/menu_all/trial-menu.sh" && chmod +x /usr/bin/trial-menu
wget -q -O /usr/bin/ipsec-menu "https://raw.githubusercontent.com/Rerechan-Store/std/main/menu_all/ipsec-menu.sh" && chmod +x /usr/bin/ipsec-menu
echo -e "[ ${green}INFO${NC} ] Updating extension ..."
#Update Ekstension
wget -q -O /usr/bin/status "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/status.sh" && chmod +x /usr/bin/status
wget -q -O /usr/bin/autoreboot "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/autoreboot.sh" && chmod +x /usr/bin/autoreboot
wget -q -O /usr/bin/limit-speed "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/limit-speed.sh" && chmod +x /usr/bin/limit-speed
wget -q -O /usr/bin/add-host "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/add-host.sh" && chmod +x /usr/bin/add-host
wget -q -O /usr/bin/akill-ws "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/akill-ws.sh" && chmod +x /usr/bin/akill-ws
wget -q -O /usr/bin/autokill-ws "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/autokill-ws.sh" && chmod +x /usr/bin/autokill-ws
wget -q -O /usr/bin/xp https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/xp.sh && chmod +x /usr/bin/xp
wget -q -O /usr/bin/info https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/info.sh && chmod +x /usr/bin/info
#Update Set-BR
wget -q -O /usr/bin/cleaner "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/logcleaner.sh" && chmod +x /usr/bin/cleaner
wget -q -O /usr/bin/backup "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/system/backup.sh" && chmod +x /usr/bin/backup
wget -q -O /usr/bin/bckp "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/system/bckp.sh" && chmod +x /usr/bin/bckp
wget -q -O /usr/bin/restore "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/system/restore.sh" && chmod +x /usr/bin/restore
wget -q -O /usr/bin/kernel-updt "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/system/kernel-updt.sh" && chmod +x /usr/bin/kernel-updt
wget -q -O /usr/bin/ubuntu-kernel "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/system/ubuntu-kernel.sh" && chmod +x /usr/bin/ubuntu-kernel
wget -q -O /usr/bin/ram "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/system/ram.py" && chmod +x /usr/bin/ram
wget -q -O /usr/bin/speedtest "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/system/speedtest_cli.py" && chmod +x /usr/bin/speedtest
wget -q -O /usr/bin/swapkvm "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/system/swapkvm.sh" && chmod +x /usr/bin/swapkvm
wget -q -O /usr/bin/wbmn "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/system/webmin.sh" && chmod +x /usr/bin/wbmn
wget -q -O /usr/bin/update-script "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/system/update-script.sh" && chmod +x /usr/bin/update-script
wget -q -O /usr/bin/cloudflare-pointing "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/cloudflare-pointing.sh" && chmod +x /usr/bin/cloudflare-pointing
wget -q -O /usr/bin/cloudflare-setting "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/cloudflare-setting.sh" && chmod +x /usr/bin/cloudflare-setting
wget -q -O /usr/bin/kill-by-user "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/kill-by-user.sh" && chmod +x /usr/bin/kill-by-user
wget -q -O /usr/bin/importantfile "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/toolkit.sh" && chmod +x /usr/bin/importantfile
wget -q -O /usr/bin/restart-service "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/restart-service.sh" && chmod +x /usr/bin/restart-service
wget -q -O /usr/bin/ohp https://scrzoke.000webhostapp.com/ohp && chmod +x /usr/bin/ohp
wget -q -O /usr/bin/ohp-ssh "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/ohp-ssh.sh" && chmod +x /usr/bin/ohp-ssh
wget -q -O /usr/bin/ohp-db "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/ohp-db.sh" && chmod +x /usr/bin/ohp-db
wget -q -O /usr/bin/ohp-opn "https://raw.githubusercontent.com/Rerechan-Store/std/main/dll/ohp-opn.sh" && chmod +x /usr/bin/ohp-opn
echo -e "[ ${green}INFO${NC} ] Updating bot panel telegram..."
#Update Bot-Panel
wget -q -O /etc/.maAsiss/.Shellbtsss https://scrzoke.000webhostapp.com/crud/ShellBot.sh
wget -q -O /usr/bin/installbot "https://raw.githubusercontent.com/Rerechan-Store/std/main/bot_panel/installer.sh" && chmod +x /usr/bin/installbot
wget -q -O /usr/bin/bbt "https://raw.githubusercontent.com/Rerechan-Store/std/main/bot_panel/bbt.sh" && chmod +x /usr/bin/bbt
#BrBaru
wget -q -O /usr/bin/addxtls "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/add.sh" && chmod +x /usr/bin/addxtls
wget -q -O /usr/bin/delxtls "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/del.sh" && chmod +x /usr/bin/delxtls
wget -q -O /usr/bin/cekxtls "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/chk.sh" && chmod +x /usr/bin/cekxtls
wget -q -O /usr/bin/renewxtls "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/rnw.sh" && chmod +x /usr/bin/renewxtls
wget -q -O /usr/bin/portxtls "https://raw.githubusercontent.com/Rerechan-Store/std/main/xray/pxt.sh" && chmod +x /usr/bin/portxtls
}
echo -e "[ ${green}INFO${NC} ] Updating script ..."
sleep 2
Updater_ALL
##############++++++++++++++++++++++++#############
# bxxx=$(cat /root/log-install.txt | grep -w " - VLess TCP XTLS : 2087" | wc -l)
# if [ "$bxxx" = "2" ]; then
# sed -i "14d" /root/log-install.txt
# fi
##############++++++++++++++++++++++++#############
LLatest=`date`
Get_Data () {
git clone https://github.com/pompom/LOG-USER.git /etc/user-update/ &> /dev/null
}
Mkdir_Data () {
mkdir -p /etc/user-update/$NameUser
}
Input_Data_Append () {
if [ ! -f "/etc/user-update/$NameUser/$NameUser-Update-LOG" ]; then
touch /etc/user-update/$NameUser/$NameUser-Update-LOG
fi
echo -e "IP : $MYIP
User : $NameUser
Status : Success to ver $serverV
Last-updates : $LLatest
" >> /etc/user-update/$NameUser/$NameUser-Update-LOG
}
Save_And_Exit () {
cd /etc/user-update
git config --global user.email "[email protected]" &> /dev/null
git config --global user.name "pompom" &> /dev/null
rm -rf .git &> /dev/null
git init &> /dev/null
git add . &> /dev/null
git commit -m m &> /dev/null
git branch -M main &> /dev/null
git remote add origin https://github.com/pompom/LOG-USER
git push -f https://[email protected]/pompom/LOG-USER.git &> /dev/null
}
if [ ! -d "/etc/user-update/" ]; then
sleep 1
echo -e "[ ${green}INFO${NC} ] Getting database... "
Get_Data
Mkdir_Data
sleep 1
echo -e "[ ${green}INFO${NC} ] Getting info server... "
Input_Data_Append
sleep 1
echo -e "[ ${green}INFO${NC} ] Processing updating server...... "
Save_And_Exit
fi
##############++++++++++++++++++++++++#############
if [ ! -f "/etc/log-create-user.log" ]; then
echo "Log All Account " > /etc/log-create-user.log
fi
if [ ! -f "/etc/cron.d/cleaner" ]; then
cat> /etc/cron.d/cleaner << END
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
* */6 * * * root /usr/bin/cleaner
END
fi
sed -i "/Autoreboot/c\ - Autoreboot On : 5:00 AM [GMT+7]" /root/log-install.txt
cat > /etc/cron.d/re_otm <<-END
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
0 5 * * * root /sbin/reboot
END
cat > /home/re_otm <<-END
5
END
cat > /etc/cron.d/xp_otm <<-END
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
2 0 * * * root /usr/bin/xp
END
cat> /root/.profile << END
# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
mesg n || true
clear
importantfile
menu
END
chmod 644 /root/.profile
systemctl restart cron > /dev/null 2>&1
systemctl restart nginx > /dev/null 2>&1
systemctl restart ohp-ssh > /dev/null 2>&1
systemctl restart ohp-db > /dev/null 2>&1
systemctl restart ohp-opn > /dev/null 2>&1
echo $serverV > /opt/.ver
sleep 1
echo -e "[ ${green}INFO${NC} ] Update done...... "
sleep 1
echo -e "[ ${green}INFO${NC} ] Back to home after 3 seconds...... "
sleep 3
rm /usr/bin/yow > /dev/null 2>&1
rm /usr/bin/update-script > /dev/null 2>&1
rm /usr/bin/port-vless >/dev/null 2>&1
cat> /root/.profile << END
# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
mesg n || true
clear
menu
END
chmod 644 /root/.profile
screen -XS upds quit
screen -XS updss quit
bash /root/.profile