-
Notifications
You must be signed in to change notification settings - Fork 1
/
pweb
1164 lines (1101 loc) · 41 KB
/
pweb
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
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/bin/bash
[[ $(awk -F" " '{print $2}' /usr/lib/telegram) == "@smigolvip" ]] && {
### CORES DA BARRA
msg() {
BRAN='\033[1;37m' && VERMELHO='\e[31m' && VERDE='\e[32m' && AMARELO='\e[33m'
AZUL='\e[34m' && MAGENTA='\e[35m' && MAG='\033[1;36m' && NEGRITO='\e[1m' && SEMCOR='\e[0m'
case $1 in
-ne) cor="${VERMELHO}${NEGRITO}" && echo -ne "${cor}${2}${SEMCOR}" ;;
-ama) cor="${AMARELO}${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}" ;;
-verm) cor="${AMARELO}${NEGRITO}[!] ${VERMELHO}" && echo -e "${cor}${2}${SEMCOR}" ;;
-azu) cor="${MAG}${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}" ;;
-verd) cor="${VERDE}${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}" ;;
-bra) cor="${VERMELHO}" && echo -ne "${cor}${2}${SEMCOR}" ;;
-nazu) cor="${COLOR[6]}${NEGRITO}" && echo -ne "${cor}${2}${SEMCOR}" ;;
-gri) cor="\e[5m\033[1;100m" && echo -ne "${cor}${2}${SEMCOR}" ;;
"-bar2" | "-bar") cor="${VERMELHO}————————————————————————————————————————————————————" && echo -e "${SEMCOR}${cor}${SEMCOR}" ;;
esac
}
fun_bar () {
comando[0]="$1"
comando[1]="$2"
(
[[ -e $HOME/fim ]] && rm $HOME/fim
${comando[0]} -y > /dev/null 2>&1
${comando[1]} -y > /dev/null 2>&1
touch $HOME/fim
) > /dev/null 2>&1 &
tput civis
echo -ne "\033[1;33m["
while true; do
for((i=0; i<18; i++)); do
echo -ne "\033[1;31m#"
sleep 0.1s
done
[[ -e $HOME/fim ]] && rm $HOME/fim && break
echo -e "\033[1;33m]"
sleep 2s
tput cuu1
tput dl1
echo -ne "\033[1;33m["
done
echo -e "\033[1;33m]\033[1;37m -\033[1;32m OK !\033[1;37m"
tput cnorm
}
fun_prog ()
{
comando[0]="$1"
${comando[0]} > /dev/null 2>&1 &
tput civis
echo -ne "\033[1;32m.\033[1;33m.\033[1;31m. \033[1;32m"
while [ -d /proc/$! ]
do
for i in / - \\ \|
do
sleep .1
echo -ne "\e[1D$i"
done
done
tput cnorm
echo -e "\e[1DOK"
}
print_center() {
if [[ -z $2 ]]; then
text="$1"
else
col="$1"
text="$2"
fi
while read line; do
unset space
x=$(((54 - ${#line}) / 2))
for ((i = 0; i < $x; i++)); do
space+=' '
done
space+="$line"
if [[ -z $2 ]]; then
msg -azu "$space"
else
msg "$col" "$space"
fi
done <<<$(echo -e "$text")
}
time_reboot() {
echo ""
print_center -ama "REINICIANDO EM "
echo ""
REBOOT_TIMEOUT="$1"
while [ $REBOOT_TIMEOUT -gt 0 ]; do
print_center -ne "-$REBOOT_TIMEOUT-\r"
sleep 2
: $((REBOOT_TIMEOUT--))
done
reboot
}
if [[ "$(grep -c "Ubuntu" /etc/issue.net)" = "1" ]]; then
system=$(cut -d' ' -f1 /etc/issue.net)
system+=$(echo ' ')
system+=$(cut -d' ' -f2 /etc/issue.net |awk -F "." '{print $1}')
elif [[ "$(grep -c "Debian" /etc/issue.net)" = "1" ]]; then
system=$(cut -d' ' -f1 /etc/issue.net)
system+=$(echo ' ')
system+=$(cut -d' ' -f3 /etc/issue.net)
else
system=$(cut -d' ' -f1 /etc/issue.net)
fi
_ons=$(ps -x | grep sshd | grep -v root | grep priv | wc -l)
_ram=$(printf ' %-9s' "$(free -h | grep -i mem | awk {'print $2'})")
_usor=$(printf '%-8s' "$(free -m | awk 'NR==2{printf "%.2f%%", $3*100/$2 }')")
_usop=$(printf '%-5s' "$(top -bn1 | awk '/Cpu/ { cpu = "" 100 - $8 "%" }; END { print cpu }')")
_core=$(printf '%-5s' "$(grep -c cpu[0-9] /proc/stat)")
_system=$(printf '%-14s' "$system")
_hora=$(printf '%(%H:%M:%S)T')
autm=$(grep "pweb;" /etc/profile > /dev/null && echo -e "\033[1;32m ON ◉" || echo -e "\033[1;31mOFF ○")
botp=$(ps x | grep "bot_painel"|grep -v grep > /dev/null && echo -e "\033[1;32m ON ◉" || echo -e "\033[1;31mOFF ○")
firew=$(ps x | grep "firewalld"|grep -v grep > /dev/null && echo -e "\033[1;32m ON ◉" || echo -e "\033[1;31mOFF ○")
fun_update () {
apt-get update -y > /dev/null 2>&1
}
fun_upgrade () {
apt-get upgrade -y > /dev/null 2>&1
}
fun_atpweb () {
[[ ! -d /bin/ppweb ]] && mkdir /bin/ppweb
cd /bin/ppweb || exit
rm *.sh verpweb > /dev/null 2>&1
wget https://github.com/ruck18/Painel-SSH4g/raw/main/verifatt.sh > /dev/null 2>&1
wget https://github.com/ruck18/Painel-SSH4g/raw/main/verpweb > /dev/null 2>&1
chmod 777 *.sh > /dev/null 2>&1
cd /bin || exit
rm pweb > /dev/null 2>&1
wget https://github.com/ruck18/Painel-SSH4g/raw/main/pweb > /dev/null 2>&1
chmod 777 pweb > /dev/null 2>&1
cd || exit
cat /dev/null > ~/.bash_history && history -c
}
autoexec () {
if grep "pweb;" /etc/profile > /dev/null; then
echo ""
echo -e "\033[1;32mDESATIVANDO AUTO EXECUÇÃO DO PWEB\033[0m"
offautpweb () {
sed -i '/pweb;/d' /etc/profile
}
echo ""
fun_bar 'offautpweb'
echo ""
echo -e "\033[1;31mAUTO EXECUÇÃO DESATIVADO!\033[0m"
sleep 2.5s
pweb
else
echo ""
echo -e "\033[1;32mATIVANDO AUTO EXECUÇÃO DO PWEB\033[0m"
autpweb () {
grep -v "^pweb;" /etc/profile > /tmp/tmpass && mv /tmp/tmpass /etc/profile
echo "pweb;" >> /etc/profile
}
echo ""
fun_bar 'autpweb'
echo ""
echo -e "\033[1;32mAUTO EXECUÇÃO ATIVADO!\033[0m"
sleep 2.5s
pweb
fi
}
velocity () {
aguarde () {
comando[0]="$1"
comando[1]="$2"
(
[[ -e $HOME/fim ]] && rm $HOME/fim
[[ ! -d $HOME/speed ]] && rm -rf $HOME/speed
${comando[0]} > /dev/null 2>&1
${comando[1]} > /dev/null 2>&1
touch $HOME/fim
) > /dev/null 2>&1 &
tput civis
echo -ne "\033[1;33mAGUARDE \033[1;37m- \033[1;33m["
while true; do
for((i=0; i<18; i++)); do
echo -ne "\033[1;31m#"
sleep 0.1s
done
[[ -e $HOME/fim ]] && rm $HOME/fim && break
echo -e "\033[1;33m]"
sleep 2s
tput cuu1
tput dl1
echo -ne "\033[1;33mAGUARDE \033[1;37m- \033[1;33m["
done
echo -e "\033[1;33m]\033[1;37m -\033[1;32m OK !\033[1;37m "
tput cnorm
}
fun_tst () {
if [ -e "/usr/bin/testevelocidade" ]; then
testevelocidade --share > speed
else
wget https://github.com/ruck18/Painel-SSH4g/raw/main/speedtest-cli -O testevelocidade
chmod +x testevelocidade
mv testevelocidade /usr/bin/testevelocidade
testevelocidade --share > speed
fi
}
echo ""
echo -e "\033[1;37m◆═════════════════════════════════════════════════════════════◆\033[0m"
echo -e " \E[44;1;37m 🚀 TESTANDO A VELOCIDADE DA VPS 🚀 \E[0m"
echo -e "\033[1;37m◆═════════════════════════════════════════════════════════════◆\033[0m"
echo ""
aguarde 'fun_tst'
echo ""
png=$(cat speed | sed -n '5 p' |awk -F : {'print $NF'})
down=$(cat speed | sed -n '7 p' |awk -F : {'print $NF'})
upl=$(cat speed | sed -n '9 p' |awk -F : {'print $NF'})
host=$(cat speed | sed -n '2 p' |awk -F : {'print $NF'})
echo -e "\033[1;37m═══════════════════════════════════════════════════════════════\033[0m"
echo -e "\033[1;32mHOST SERVER:\033[1;37m$host"
echo ""
echo -e "\033[1;32mPING (LATÊNCIA):\033[1;37m$png"
echo ""
echo -e "\033[1;32mDOWNLOAD:\033[1;37m$down"
echo ""
echo -e "\033[1;32mUPLOAD:\033[1;37m$upl"
echo ""
echo -e "\033[1;37m═══════════════════════════════════════════════════════════════\033[0m"
rm -rf $HOME/speed
}
fun_limpiarepositorios () {
##LIMPA ROOT
rm -rf /root/*.sh* > /dev/null 2>&1
##LIMPA HTML
rm -rf /var/www/html
[[ ! -d /var ]] && mkdir /var
[[ ! -d /var/www ]] && mkdir /var/www
[[ ! -d /var/www/html ]] && mkdir /var/www/html
}
painel_att () {
clear
cd /bin/ppweb || exit
rm verweb > /dev/null 2>&1
wget https://github.com/ruck18/Painel-SSH4g/raw/main/verweb > /dev/null 2>&1
cd || exit
echo ""
echo -e " \033[1;33m● \033[1;32mATUALIZANDO LINUX, PODE DEMORAR \033[1;33m●\033[0m"
fun_update () {
apt-get update -y > /dev/null 2>&1
apt-get install figlet -y > /dev/null 2>&1
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
chmod +x /usr/local/bin/composer
}
##################################
fun_bar 'fun_update'
echo ""
clear
IP=$(wget -qO- ipv4.icanhazip.com)
echo "America/Sao_Paulo" > /etc/timezone
ln -fs /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime > /dev/null 2>&1
dpkg-reconfigure --frontend noninteractive tzdata > /dev/null 2>&1
clear
echo ""
echo -e "\E[44;1;37m ATUALIZANDO O PAINEL \E[0m"
echo ""
echo -e "PAINEL WEB 4G - SSH" | figlet
echo -e " \033[1;31mBy @smigolvip\033[1;36m"
echo ""
clear
senha=$(cut -d"'" -f2 /var/www/html/pages/system/pass.php)
empresaatual=$(cut -d"'" -f2 /var/www/html/empresa)
echo ""
echo -e " \033[1;33m● \033[1;32mFINALIZANDO A ATUALIZAÇÃO, PODE DEMORAR \033[1;33m● \033[1;33mAGUARDE...\033[0m"
cd /var/www/html || exit
find /var/www/html/ -iname "*.php" -type f -exec rm -rfv {} \; > /dev/null 2>&1
find /var/www/html/ -iname "*.html" -type f -exec rm -rfv {} \; > /dev/null 2>&1
find /var/www/html/ -iname "*.html" -type f -exec rm -rfv {} \; > /dev/null 2>&1
find /var/www/html/ -iname "*.svg" -type f -exec rm -rfv {} \; > /dev/null 2>&1
find /var/www/html/ -iname "*.jpg" -type f -exec rm -rfv {} \; > /dev/null 2>&1
find /var/www/html/ -iname "*.png" -type f -exec rm -rfv {} \; > /dev/null 2>&1
find /var/www/html/ -iname "*.png" -type f -exec rm -rfv {} \; > /dev/null 2>&1
find /var/www/html/ -iname "*.lock" -type f -exec rm -rfv {} \; > /dev/null 2>&1
wget https://github.com/ruck18/Painel-SSH4g/raw/main/gestorssh.zip > /dev/null 2>&1
sleep 2
unzip -o gestorssh.zip > /dev/null 2>&1
rm -rf gestorssh.zip index.html sshplus.sql > /dev/null 2>&1
(echo yes; echo yes; echo yes; echo yes) | composer install > /dev/null 2>&1
(echo yes; echo yes; echo yes; echo yes) | composer require phpseclib/phpseclib:~2.0 > /dev/null 2>&1
ln -s /usr/share/phpmyadmin/ /var/www/html > /dev/null 2>&1
chmod 777 -R /var/www/html > /dev/null 2>&1
sed -i "s;49875103u;$senha;g" /var/www/html/pages/system/config.php > /dev/null 2>&1
sed -i "s;localhost;$IP;g" /var/www/html/pages/system/config.php > /dev/null 2>&1
sleep 2
if [[ -e "/var/www/html/pages/system/pass.php" ]]; then
sed -i "s;1020;$senha;g" /var/www/html/pages/system/pass.php > /dev/null 2>&1
fi
##################################
clear
crontab -l > cronset > /dev/null 2>&1
echo "
@reboot /etc/autostart
* * * * * /etc/autostart
0 */12 * * * cd /var/www/html/pages/system/ && bash cron.backup.sh && cd /root
5 */3 * * * cd /var/www/html/pages/system/ && /usr/bin/php cron.backup.php && cd /root
* * * * * cd /var/www/html/pages/system/ && bash cron.userteste.sh && cd /root
2 */3 * * * cd /var/www/html/pages/system/ && bash cron.autobackup.sh && cd /root
* * * * * /usr/bin/php /var/www/html/pages/system/cron.online.ssh.php
@daily /usr/bin/php /var/www/html/pages/system/cron.rev.php
* * * * * /usr/bin/php /var/www/html/pages/system/cron.ssh.php
* * * * * /usr/bin/php /var/www/html/pages/system/cron.php
*/30 * * * * /usr/bin/php /var/www/html/pages/system/hist.online.php" > cronset
crontab cronset && rm cronset > /dev/null 2>&1
##################################
clear
cd || exit
sed -i "s;EMPRESA;$empresaatual;g" /var/www/html/empresa > /dev/null 2>&1
sed -i "s;EMPRESA;$empresaatual;g" /var/www/html/home.php > /dev/null 2>&1
sed -i "s;EMPRESA;$empresaatual;g" /var/www/html/index.php > /dev/null 2>&1
sed -i "s;EMPRESA;$empresaatual;g" /var/www/html/login.php > /dev/null 2>&1
sed -i "s;EMPRESA;$empresaatual;g" /var/www/html/admin/home.php > /dev/null 2>&1
sed -i "s;EMPRESA;$empresaatual;g" /var/www/html/admin/index.php > /dev/null 2>&1
sed -i "s;EMPRESA;$empresaatual;g" /var/www/html/admin/login.php > /dev/null 2>&1
sed -i "s;EMPRESA;$empresaatual;g" /var/www/html/apps/index.html > /dev/null 2>&1
sed -i "s;EMPRESA;$empresaatual;g" /var/www/html/apps/termos.html > /dev/null 2>&1
echo ""
echo -e "\E[44;1;32m PAINELWEB ATUALIZADO COM SUCESSO \E[0m"
echo ""
echo -e "PAINEL WEB 4G - SSH" | figlet
echo ""
echo -e "\033[1;36m PAINEL WEB DIGITE ESSE IP NO NAVEGADOR:\033[1;37m http://$IP/admin\033[0m"
echo ""
echo -e "\033[1;36m LOJA DE APPS:\033[1;37m http://$IP/apps\033[0m"
echo ""
echo -e "\033[1;33m MAIS INFORMAÇÕES \033[1;31m(\033[1;36mTELEGRAM\033[1;31m): \033[1;37m@smigolvip\033[0m"
echo ""
echo -ne "\n\033[1;31mENTER \033[1;33mpara retornar ao \033[1;32mPWEB! \033[0m"; read
cat /dev/null > ~/.bash_history && history -c
service cron restart > /dev/null 2>&1
systemctl restart apache2 > /dev/null 2>&1
clear
pweb
exit;
}
painel_rest () {
clear
mkdir /root/restaurar > /dev/null 2>&1
clear
echo ""
echo -e "\033[1;33mRESTAURAR BANCO DE DADOS DO PAINEL WEB 4G - SSH!\033[0m"
echo ""
echo -e "\n\033[1;33mÉ NECESSÁRIO O PAINEL INSTALADO E O\nARQUIVO (\033[1;32msshplus.sql.bz2 ou sshplus.sql\033[1;33m) NA PASTA (root/restaurar)!\033[0m\n"
echo ""
echo -ne "\033[1;32mDE UM ENTER PRA CONTINUAR...\033[0m"; read -r
bzip2 /root/restaurar/sshplus.sql > /dev/null 2>&1
[[ ! -e /var/www/html/pages/system/pass.php ]] && {
echo -e "\n\033[1;31mO PAINEL NÃO ESTÁ INSTALADO!\033[0m"
echo ""
sleep 3
echo -e "\033[1;31mRETORNANDO...\033[0m"
sleep 3
cat /dev/null > ~/.bash_history && history -c
clear
pweb
exit;
}
[[ ! -e /root/restaurar/sshplus.sql.bz2 ]] && {
echo -e "\n\033[1;31mARQUIVO (\033[1;32msshplus.sql.bz2 ou sshplus.sql\033[1;31m) NÃO ENCONTRADO!\033[0m"
echo ""
sleep 3
echo -e "\033[1;31mRETORNANDO...\033[0m"
sleep 3
cat /dev/null > ~/.bash_history && history -c
clear
pweb
exit;
}
passdb=$(cut -d"'" -f2 /var/www/html/pages/system/pass.php)
[[ $(mysql -h localhost -u root -p$passdb -e "show databases" | grep -wc sshplus) == '0' ]] && {
echo -e "\n\033[1;31mSEU PAINELWEB NÃO É COMPATÍVEL!\033[0m"
echo ""
sleep 3
echo -e "\033[1;31mRETORNANDO...\033[0m"
sleep 3
cat /dev/null > ~/.bash_history && history -c
clear
pweb
exit;
}
bunzip2 /root/restaurar/sshplus.sql.bz2
mysql -h localhost -u root -p$passdb -e "drop database sshplus"
mysql -h localhost -u root -p$passdb -e 'CREATE DATABASE sshplus'
mysql -h localhost -u root -p$passdb --default_character_set utf8 sshplus < /root/restaurar/sshplus.sql
echo ""
echo -e "\n\033[1;32mDADOS RESTAURADO COM SUCESSO!\033[0m"
echo ""
sleep 3
echo -e "\033[1;31mRETORNANDO...\033[0m"
rm -rf /root/restaurar > /dev/null 2>&1
sleep 3
cat /dev/null > ~/.bash_history && history -c
clear
pweb
exit;
}
painel_empresa () {
clear
empresaatual=$(cut -d"'" -f2 /var/www/html/empresa)
echo ""
echo -e "\E[44;1;37m ALTERAR NOME DA LOGO \E[0m"
echo ""
echo -e "\E[44;1;37m Aqui é definido o nome da logo \E[0m"
echo ""
echo ""
echo -e "\033[1;36m NOME DA LOGO ATUAL:\033[1;37m $empresaatual\033[0m"
echo ""
echo -ne "\033[1;32m INFORME O NOVO NOME DA LOGO\033[1;37m: "; read empresa
[[ -z $empresa ]] && {
echo -e "\n\033[1;31mINFORME O NOVO NOME DA LOGO!"
sleep 2
cat /dev/null > ~/.bash_history && history -c
clear
pweb
exit;
}
echo ""
echo -e " \033[1;32mLOGO ALTERADO COM SUCESSO!\033[1;37m"
echo ""
sleep 3s
cd || exit
sed -i "s;$empresaatual;$empresa;g" /var/www/html/empresa > /dev/null 2>&1
sed -i "s;$empresaatual;$empresa;g" /var/www/html/home.php > /dev/null 2>&1
sed -i "s;$empresaatual;$empresa;g" /var/www/html/index.php > /dev/null 2>&1
sed -i "s;$empresaatual;$empresa;g" /var/www/html/login.php > /dev/null 2>&1
sed -i "s;$empresaatual;$empresa;g" /var/www/html/admin/home.php > /dev/null 2>&1
sed -i "s;$empresaatual;$empresa;g" /var/www/html/admin/index.php > /dev/null 2>&1
sed -i "s;$empresaatual;$empresa;g" /var/www/html/admin/login.php > /dev/null 2>&1
sed -i "s;$empresaatual;$empresa;g" /var/www/html/apps/index.php > /dev/null 2>&1
sed -i "s;$empresaatual;$empresa;g" /var/www/html/apps/termos.php > /dev/null 2>&1
echo ""
service apache2 restart > /dev/null 2>&1
cat /dev/null > ~/.bash_history && history -c
clear
pweb
exit;
}
#BOT TELEGRAM
bot_telegram () {
clear
fun_att_api () {
echo ""
echo -e "\033[1;31mAGUARDE \033[1;32m.\033[1;33m.\033[1;31m. \033[1;33m"
sleep 3
clear
screen -r -S "bot_painel" -X quit > /dev/null 2>&1
screen -wipe 1>/dev/null 2>/dev/null
sleep 2
wget -qO- https://github.com/ruck18/Painel-SSH4g/raw/main/apibot -O /bin/ppweb/apibot > /dev/null 2>&1
wget -qO- https://github.com/ruck18/Painel-SSH4g/raw/main/bot -O /bin/ppweb/bot > /dev/null 2>&1
chmod 777 -R /bin/ppweb > /dev/null 2>&1
cd $HOME || exit
echo ""
echo -e "\033[1;36mBOT ATUALIZADO COM SUCESSO!\033[1;37m"
sleep 3
bot_telegram
exit;
}
fun_botpag_api () {
getBotToken(){
echo $1 > /bin/ppweb/botpag/token-bot
}
getMpToken(){
echo $1 > /bin/ppweb/botpag/token-mp
}
getserIP(){
echo $1 > /bin/ppweb/botpag/ip-serv-ssh
}
getsenharoot(){
echo $1 > /bin/ppweb/botpag/senha-serv-ssh
}
getparoot(){
echo $1 > /bin/ppweb/botpag/senha-vps-web
}
getPageOrder(){
echo https://$1/vendas/salvarPedido.php > /bin/ppweb/botpag/info-de-compra
}
revenda(){
echo $1 > /bin/ppweb/botpag/link-revenda
}
valorArquivo(){
echo $1 > /bin/ppweb/botpag/valor-arquivo
}
pararBot(){
clear
echo -e "[-] DESATIVANDO BOTPAG"
sleep 3
screenList=$(screen -ls | grep botpag | awk -F'.' {' print $1 '})
for id in $screenList; do
screen -X -S $id quit
done
echo -e "[-] BOTPAG DESATIVADO COM SUCESSO!"
sleep 3
botpag
exit 1
}
executarBot(){
clear
banner
chave=$(curl -sSL "https://github.com/ruck18/Painel-SSH4g/raw/main/chave") &>/dev/null
key=$(cat /bin/ppweb/botpag/chave_inst) &>/dev/null
if [[ "$key" = "$chave" ]]
then
echo "[-] ATIVANDO BOTPAG"
sleep 3
cd /bin/ppweb/botpag
screen -dmS botpag ./botauto.sh >/dev/null 2>&1
[[ $(grep -wc "botpag" /etc/autostart) = '0' ]] && {
echo -e "ps x | grep 'botpag' | grep -v 'grep' || cd /bin/ppweb/botpag && screen -dmS botpag ./botauto.sh && cd $HOME" >>/etc/autostart
} || {
sed -i '/botpag/d' /etc/autostart
echo -e "ps x | grep 'botpag' | grep -v 'grep' || cd /bin/ppweb/botpag && screen -dmS botpag ./botauto.sh && cd $HOME" >>/etc/autostart
}
cd $HOME || exit
botpag
else
echo "[-] ESSA CHAVE NÃO É VÁLIDA!"
sleep 3
bot_telegram
exit 1
fi
}
verificar_chave(){
clear
banner
chave=$(curl -sSL "https://github.com/ruck18/Painel-SSH4g/raw/main/chave") &>/dev/null
if [[ ! -f /bin/ppweb/botpag/chave_inst ]]
then
read -p "DIGITE A CHAVE DE INSTALAÇÃO: " key
if [[ "$key" = "$chave" ]]
then
echo -e "[*] VALIDANDO A CHAVE DE INSTALAÇÃO"
sleep 3
prepararAmbiente
echo $key > /bin/ppweb/botpag/chave_inst
sleep 1
botpag
else
echo "[-] ESSA CHAVE NÃO É VÁLIDA!"
sleep 3
bot_telegram
exit 1
fi
else
key=$(cat /bin/ppweb/botpag/chave_inst) &>/dev/null
if [[ "$key" = "$chave" ]]
then
botpag
else
echo "[-] ESSA CHAVE NÃO É VÁLIDA!"
sleep 3
bot_telegram
exit 1
fi
fi
}
prepararAmbiente(){
rm /bin/ppweb/botpag/* &>/dev/null
wget https://github.com/ruck18/Painel-SSH4g/raw/main/botpag.zip &>/dev/null
unzip botpag.zip &>/dev/null
rm botpag.zip &>/dev/null
[[ -d /bin/ppweb/botpag ]] || mkdir /bin/ppweb/botpag &>/dev/null
[[ -f useradd.sh ]] && mv useradd.sh /bin/ppweb/botpag &>/dev/null
[[ -f usertest.sh ]] && mv usertest.sh /bin/ppweb/botpag &>/dev/null
[[ -f botauto.sh ]] && mv botauto.sh /bin/ppweb/botpag &>/dev/null
[[ ! -f /bin/ppweb/botpag/chave_inst ]] && touch /bin/ppweb/botpag/chave_inst &>/dev/null
[[ ! -f /bin/ppweb/botpag/token-bot ]] && touch /bin/ppweb/botpag/token-bot &>/dev/null
[[ ! -f /bin/ppweb/botpag/token-mp ]] && touch /bin/ppweb/botpag/token-mp &>/dev/null
[[ ! -f /bin/ppweb/botpag/info-de-compra ]] && touch /bin/ppweb/botpag/info-de-compra &>/dev/null
[[ ! -f /bin/ppweb/botpag/link-revenda ]] && touch /bin/ppweb/botpag/link-revenda &>/dev/null
[[ ! -f /bin/ppweb/botpag/ip-serv-ssh ]] && touch /bin/ppweb/botpag/ip-serv-ssh &>/dev/null
[[ ! -f /bin/ppweb/botpag/senha-serv-ssh ]] && touch /bin/ppweb/botpag/senha-serv-ssh &>/dev/null
[[ ! -f /bin/ppweb/botpag/senha-vps-web ]] && touch /bin/ppweb/botpag/senha-vps-web &>/dev/null
}
banner(){
cat <<FECHA
_________________________________________________
____ ____ ___ ____ ____ ____
|__] | | | |__| |__| | _
|__] |__| | | | | |__|
_________________________________________________
BY @smigolvip
FECHA
}
escolha(){
echo "Escolha o que deseja fazer: "
read -p " ▍" leitor
[[ $leitor == 1 ]] && setup && exit 1
[[ $leitor == 2 ]] && executarBot && exit 1
[[ $leitor == 3 ]] && pararBot && exit 1
[[ $leitor == 0 ]] && bot_telegram && exit 1
[[ $leitor == * ]] && botpag && exit 1
}
botpag(){
clear
banner
printf """
===============================
| 1 ) CONFIGURAR BOTPAG |
===============================
| 2 ) ATIVAR BOTPAG |
===============================
| 3 ) DESATIVAR BOTPAG |
===============================
| 0 ) VOLTAR |
===============================\n
"""
escolha
}
setup(){
read -p "Digite o token do seu bot: " token_bot
getBotToken $token_bot
[[ -z $token_bot ]] && botpag && exit 1
read -p "Digite o token da API Mercado Pago: " token_mp
[[ -z $token_mp ]] && botpag && exit 1
getMpToken $token_mp
read -p "Digite o IP do SERVER SSH: " ip_serv_ssh
[[ -z $ip_serv_ssh ]] && botpag && exit 1
getserIP $ip_serv_ssh
read -p "Digite a SENHA ROOT do SERVER SSH : " senha_root_ssh
[[ -z $senha_root_ssh ]] && botpag && exit 1
getsenharoot $senha_root_ssh
read -p "Digite a SENHA ROOT DO PAINEL WEB: " senha_root_web
[[ -z $senha_root_web ]] && botpag && exit 1
getparoot $senha_root_web
read -p "Digite a pagina para salvar os pedidos. EX> meusite.com.br : " paginaOrder
[[ -z $paginaOrder ]] && botpag && exit 1
getPageOrder $paginaOrder
read -p "Digite o link de telegram da revenda: " linkRevenda
[[ -z $linkRevenda ]] && botpag && exit 1
revenda $linkRevenda
read -p "Digite o valor da conta pro de 30 dias. Ex> 10.00: " valor_arquivo
[[ -z $valor_arquivo ]] && botpag && exit 1
valorArquivo $valor_arquivo
echo -e "[*] BAIXANDO DEPENDÊNCIAS...\n"
sleep 2
apt install pv -y> /dev/null 2>&1
sleep 1
chmod +x /bin/ppweb/botpag/botauto.sh &>/dev/null
chmod +x /bin/ppweb/botpag/useradd.sh &>/dev/null
chmod +x /bin/ppweb/botpag/usertest.sh &>/dev/null
clear
botpag
}
verificar_chave
}
fun_botOnOff() {
[[ $(ps x | grep "bot_painel" | grep -v grep | wc -l) = '0' ]] && {
clear
echo ""
echo -e "\E[44;1;37m ATIVAÇÃO DO BOT PWEB \E[0m\n"
echo -e " \033[1;33m[\033[1;31m!\033[1;33m] \033[1;31mATENÇÃO \033[1;33m[\033[1;31m!\033[1;33m]\033[0m"
echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[1;32m"
echo -e "\n\033[1;32m1° \033[1;37m- \033[1;33mPELO SEU TELEGRAM ACESSE OS SEGUINTES BOT\033[1;37m:\033[0m"
echo -e "\n\033[1;32m2° \033[1;37m- \033[1;33mBOT \033[1;37m@BotFather \033[1;33mCRIE O SEU BOT \033[1;31mOPÇÃO: \033[1;37m/newbot\033[0m"
echo -e "\n\033[1;32m3° \033[1;37m- \033[1;33mBOT \033[1;37m@userinfobot \033[1;33mE PEGUE SEU ID \033[1;31mOPÇÃO: \033[1;37m/id\033[0m"
echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[1;32m"
echo ""
echo -ne "\n\033[1;32mINFORME SEU TOKEN:\033[1;37m: "; read tokenbot
[[ -z $tokenbot ]] && {
echo -e "\n\033[1;31mINFORME SEU TOKEN!"
sleep 2
cat /dev/null > ~/.bash_history && history -c
bot_telegram
exit;
}
echo -ne "\n\033[1;32mINFORME SEU ID:\033[1;37m: "; read iduser
[[ -z $iduser ]] && {
echo -e "\n\033[1;31mINFORME SEU ID!"
sleep 2
cat /dev/null > ~/.bash_history && history -c
bot_telegram
exit;
}
clear
echo -e "\033[1;32mATIVANDO BOT PWEB \033[0m\n"
fun_bot1() {
[[ ! -e "/bin/ppweb/bot" ]] && {
wget -qO- https://github.com/ruck18/Painel-SSH4g/raw/main/apibot -O /bin/ppweb/apibot > /dev/null 2>&1
wget -qO- https://github.com/ruck18/Painel-SSH4g/raw/main/bot -O /bin/ppweb/bot > /dev/null 2>&1
chmod 777 -R /bin/ppweb > /dev/null 2>&1
}
cd /bin/ppweb
screen -dmS bot_painel ./bot $tokenbot $iduser >/dev/null 2>&1
[[ $(grep -wc "bot_painel" /etc/autostart) = '0' ]] && {
echo -e "ps x | grep 'bot_painel' | grep -v 'grep' || cd /bin/ppweb && screen -dmS bot_painel ./bot $tokenbot $iduser && cd $HOME" >>/etc/autostart
} || {
sed -i '/bot_painel/d' /etc/autostart
echo -e "ps x | grep 'bot_painel' | grep -v 'grep' || cd /bin/ppweb && screen -dmS bot_painel ./bot $tokenbot $iduser && cd $HOME" >>/etc/autostart
}
cd $HOME || exit
sleep 3
}
fun_bar 'fun_bot1'
[[ $(ps x | grep "bot_painel" | grep -v grep | wc -l) != '0' ]] && echo -e "\n\033[1;32m BOT PWEB ATIVADO!\033[0m" || echo -e "\n\033[1;31m ERRO! CONFIRA SUAS INFORMAÇÕES\033[0m"
sleep 2
cat /dev/null > ~/.bash_history && history -c
bot_telegram
exit;
} || {
clear
echo -e "\033[1;32mDESATIVANDO BOT PWEB... \033[0m\n"
fun_bot2() {
screen -r -S "bot_painel" -X quit
screen -wipe 1>/dev/null 2>/dev/null
[[ $(grep -wc "bot_painel" /etc/autostart) != '0' ]] && {
sed -i '/bot_painel/d' /etc/autostart
}
sleep 2
}
fun_bar 'fun_bot2'
echo -e "\n\033[1;32m \033[1;31mBOT PWEB DESATIVADO! \033[0m"
sleep 2
cat /dev/null > ~/.bash_history && history -c
bot_telegram
exit;
}
}
stsbot=$(ps x | grep "bot_painel"|grep -v grep > /dev/null && echo -e "\033[1;32m ON ◉" || echo -e "\033[1;31mOFF ○")
stsbot2=$(ps x | grep "botpag"|grep -v grep > /dev/null && echo -e "\033[1;32m ON ◉" || echo -e "\033[1;31mOFF ○")
echo ""
echo -e "\E[44;1;37m GERENCIAR BOT PWEB \E[0m\n"
echo -e " \033[1;33m[\033[1;31m!\033[1;33m] \033[1;31mATENÇÃO \033[1;33m[\033[1;31m!\033[1;33m]\033[0m"
echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[1;32m"
echo -e "\033[1;31m[\033[1;36m01\033[1;31m] \033[1;37m• \033[1;33mGERENCIAR BOTPWEB $stsbot\033[0m"
echo -e "\033[1;31m[\033[1;36m02\033[1;31m] \033[1;37m• \033[1;33mATUALIZAR BOT\033[0m"
echo -e "\033[1;31m[\033[1;36m00\033[1;31m] \033[1;37m• \033[1;33mVOLTAR\033[0m"
echo -e "\033[1;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
echo ""
echo -ne "\033[1;36mSELECIONE UMA OPÇÃO: \033[1;37m"; read -r x
case "$x" in
1|01)
fun_botOnOff
exit;
;;
2|02)
fun_att_api
exit;
;;
0|00)
echo -e "\033[1;31mRetornando...\033[0m"
pweb
exit;
;;
*)
echo -e "\n\033[1;31mOpção inválida !\033[0m"
sleep 2
bot_telegram
esac
}
#SENHA ROOT
senha_root () {
clear
echo ""
echo -e "\E[44;1;65m ALTERANDO SENHA ROOT \E[0m"
echo ""
read -p "DIGITE UMA NOVA SENHA ROOT: " pwdroot
echo "root:$pwdroot" | chpasswd
echo -e "\033[1;33m • \033[1;32mSENHA ROOT ALTERADA COM SUCESSO\033[1;33m • \033[0m"
sleep 3s
clear
echo -e "\033[1;33m • \033[1;32mSISTEMA REINICIANDO\033[1;33m • \033[0m"
echo ""
sleep 4s
shutdown -r now > /dev/null
}
##PAINEL REMOVE
remove_painel () {
clear
echo -e "\033[1;32m SEMPRE CONFIRME COM \033[1;37mY"
echo -e "\033[1;32m PROSSIGA COM \033[1;37mENTER"
sleep 7
service apache2 stop
apt-get purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*
rm -rf /etc/mysql /var/lib/mysql
rm -rf /var/www/html
apt-get autoremove
apt-get autoclean
sed -i "s;Listen 80;Listen 81;g" /etc/apache2/ports.conf
service apache2 restart > /dev/null 2>&1
service apache2 stop
[[ ! -d /var/www ]] && mkdir /var/www
[[ ! -d /var/www/html ]] && mkdir /var/www/html
echo -e "\033[1;36mPAINEL REMOVIDO COM ÊXITO \033[1;32m[!OK]"
pweb
}
oracl() {
clear
echo ""
msg -bar
msg -azu " FIREWALL ORACLE/AWS/AZR"
msg -ama " ESSA OPÇÃO SERVE PARA VPS ORACLE/AWS/AZR E TAMBÉM"
msg -ama " PARA VPS QUE PRECISE ABRIR PORTAS NO FIREWALL!"
msg -bar
echo ""
if ps x | grep -w firewalld | grep -v grep 1>/dev/null 2>/dev/null; then
echo -e "\033[1;33mPORTAS ABERTAS\033[1;37m: \033[1;32m$(firewall-cmd --list-ports)"
else
echo -e "\033[1;31mFIREWALL DESATIVADO"
fi
echo ""
echo -e "\033[1;31m[\033[1;36m01\033[1;31m] \033[1;37m• \033[1;33mABRIR PORTA TCP \033[1;32m>\033[1;33m>\033[1;31m>\033[0m \033[0m"
echo -e "\033[1;31m[\033[1;36m02\033[1;31m] \033[1;37m• \033[1;33mFECHAR PORTA TCP \033[1;32m>\033[1;33m>\033[1;31m>\033[0m \033[0m"
echo -e "\033[1;31m[\033[1;36m03\033[1;31m] \033[1;37m• \033[1;33mABRIR PORTA UDP \033[1;32m>\033[1;33m>\033[1;31m>\033[0m \033[0m"
echo -e "\033[1;31m[\033[1;36m04\033[1;31m] \033[1;37m• \033[1;33mFECHAR PORTA UDP \033[1;32m>\033[1;33m>\033[1;31m>\033[0m \033[0m"
echo -e "\033[1;31m[\033[1;36m05\033[1;31m] \033[1;37m• \033[1;33mDESATIVAR FIREWALL \033[1;32m>\033[1;33m>\033[1;31m>\033[0m \033[0m"
echo -e "\033[1;31m[\033[1;36m00\033[1;31m] \033[1;37m• \033[1;33mVOLTAR \033[1;32m<\033[1;33m<\033[1;31m<\033[0m \033[0m"
echo ""
echo -ne "\033[1;36mSELECIONE UMA OPÇÃO: \033[1;37m"; read -r x
case "$x" in
1 | 01)
verif_portas_tcp
exit;
;;
2 | 02)
oracltcpfechar
exit;
;;
3 | 03)
verif_portas_udp
exit;
;;
4 | 04)
oracludpfechar
exit;
;;
5 | 05)
systemctl stop firewalld > /dev/null 2>&1
systemctl disable firewalld > /dev/null 2>&1
apt remove firewalld -y > /dev/null 2>&1
apt purge firewalld -y > /dev/null 2>&1
apt-get autoremove -y > /dev/null 2>&1
apt-get autoclean -y > /dev/null 2>&1
rm -rf /etc/firewalld > /dev/null 2>&1
echo -e "\n\033[1;31mDESINSTALADO COM SUCESSO!\033[0m"
sleep 3
oracl
exit;
;;
0 | 00)
echo -e "\033[1;31mRetornando...\033[0m"
pweb
exit;
;;
*)
echo -e "\n\033[1;31mOpção inválida!\033[0m"
sleep 2
oracl
esac
}
verif_portas_tcp() {
echo ""
echo -ne "\033[1;34mQUAL PORTA TCP DESEJA ABRIR \033[1;33m?\033[1;37m "
read pt
if (firewall-cmd --zone=public --query-port=$pt/tcp) 1>/dev/null 2>/dev/null; then
echo -e "\n\033[1;31mPorta \033[1;33m$pt \033[1;31mjá esta aberta!\033[0m"
sleep 3
oracl
else
oracltcp
fi
}
verif_portas_udp() {
echo ""
echo -ne "\033[1;34mQUAL PORTA UDP DESEJA ABRIR \033[1;33m?\033[1;37m "
read pt
if (firewall-cmd --zone=public --query-port=$pt/udp) 1>/dev/null 2>/dev/null; then
echo -e "\n\033[1;31mPorta \033[1;33m$pt \033[1;31mjá esta aberta!\033[0m"
sleep 3
oracl
else
oracludp
fi
}
oracltcpfechar() {
if ps x | grep -w firewalld | grep -v grep 1>/dev/null 2>/dev/null; then
echo ""
echo -ne "\033[1;34mQUAL PORTA TCP DESEJA FECHAR \033[1;33m?\033[1;37m "
read pt
echo ""
firewall-cmd --zone=public --permanent --remove-port=$pt/tcp > /dev/null 2>&1
echo -e "\n\033[1;32mPorta $pt fechada com sucesso!"
sleep 2
firewall-cmd --reload > /dev/null 2>&1
oracl
else
apt update -y > /dev/null 2>&1
apt install firewalld -y > /dev/null 2>&1
systemctl enable firewalld > /dev/null 2>&1
systemctl start firewalld > /dev/null 2>&1
firewall-cmd --zone=public --permanent --add-port=22/tcp > /dev/null 2>&1
echo ""
echo -ne "\033[1;34mQUAL PORTA DESEJA FECHAR \033[1;33m?\033[1;37m "
read pt
echo ""
firewall-cmd --zone=public --permanent --remove-port=$pt/tcp > /dev/null 2>&1
echo -e "\n\033[1;32mPorta $pt fechada com sucesso!"
sleep 2
firewall-cmd --reload > /dev/null 2>&1
oracl
fi
}
oracludpfechar() {
if ps x | grep -w firewalld | grep -v grep 1>/dev/null 2>/dev/null; then
echo ""
echo -ne "\033[1;34mQUAL PORTA UDP DESEJA FECHAR \033[1;33m?\033[1;37m "
read pt
echo ""
firewall-cmd --zone=public --permanent --remove-port=$pt/udp > /dev/null 2>&1
echo -e "\n\033[1;32mPorta $pt fechada com sucesso!"
sleep 2
firewall-cmd --reload > /dev/null 2>&1
oracl
else
apt update -y > /dev/null 2>&1
apt install firewalld -y > /dev/null 2>&1
systemctl enable firewalld > /dev/null 2>&1
systemctl start firewalld > /dev/null 2>&1
firewall-cmd --zone=public --permanent --add-port=22/tcp > /dev/null 2>&1
echo ""
echo -ne "\033[1;34mQUAL PORTA DESEJA FECHAR \033[1;33m?\033[1;37m "
read pt
echo ""
firewall-cmd --zone=public --permanent --remove-port=$pt/udp > /dev/null 2>&1
echo -e "\n\033[1;32mPorta $pt fechada com sucesso!"
sleep 2
firewall-cmd --reload > /dev/null 2>&1
oracl
fi
}
oracltcp() {
if ps x | grep -w firewalld | grep -v grep 1>/dev/null 2>/dev/null; then
firewall-cmd --zone=public --permanent --add-port=$pt/tcp > /dev/null 2>&1
echo -e "\n\033[1;32mPorta $pt aberta com sucesso!"
sleep 3
firewall-cmd --reload > /dev/null 2>&1