Untitled


SUBMITTED BY: BL420

DATE: Feb. 1, 2021, 2:40 a.m.

FORMAT: Text only

SIZE: 3.9 kB

HITS: 468

  1. #!/bin/bash
  2. #===============================#
  3. # \033[1;36m
  4. # \033[1;33m
  5. # \033[1;31m
  6. # \033[0m
  7. #===============================#
  8. instala_fun () {
  9. echo -e "\033[1;33mINSTALANDO... \033[1;32mAGUARDE"
  10. echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
  11. echo -e " "
  12. # ACTUALIZA REPOSITORIO
  13. echo -e "\033[1;33m ACTUALIZA REPOSITORIO... \033[1;32mAGUARDE"
  14. apt-get update -y > /dev/null 2>&1
  15. apt-get upgrade -y > /dev/null 2>&1
  16. apt-get install curl -y > /dev/null 2>&1
  17. apt-get install apache2 -y > /dev/null 2>&1
  18. sed -i "s;Listen 81;Listen 80;g" /etc/apache2/ports.conf
  19. service apache2 restart > /dev/null 2>&1
  20. mkdir /var/www/html/script > /dev/null 2>&1
  21. mkdir /var/www/html/_S_script > /dev/null 2>&1
  22. touch /var/www/html/script/index.html
  23. touch /var/www/html/_S_script/index.html
  24. echo -e " "
  25. # INSTALL ARQUIVOS
  26. echo -e "\033[1;33m INSTALL ARQUIVOS... \033[1;32mAGUARDE"
  27. wget https://bigbolgames.com/sshpluskey/Plus -O /var/www/html/Plus > /dev/null 2>&1
  28. wget https://bigbolgames.com/sshpluskey/list -O /home/list > /dev/null 2>&1
  29. wget https://bigbolgames.com/sshpluskey/versao -O /home/versao > /dev/null 2>&1 && cat /home/versao >/var/www/html/script/versao
  30. wget https://bigbolgames.com/sshpluskey/keyssh -O /bin/keyssh > /dev/null 2>&1
  31. wget https://bigbolgames.com/sshpluskey/stunnel.pem -O /var/www/html/script/stunnel.pem > /dev/null 2>&1
  32. wget https://bigbolgames.com/sshpluskey/otimizar -O /bin/otimizar > /dev/null 2>&1
  33. echo -e " "
  34. # PERMISOS ARQUIVOS
  35. echo -e "\033[1;33m PERMISOS ARQUIVOS... \033[1;32mAGUARDE"
  36. chmod +x /var/www/html/Plus > /dev/null 2>&1
  37. chmod +x /home/list > /dev/null 2>&1
  38. chmod +x /home/versao > /dev/null 2>&1
  39. chmod +x /bin/keyssh > /dev/null 2>&1
  40. chmod +x /bin/otimizar > /dev/null 2>&1
  41. # HISTORY
  42. cat /dev/null > ~/.bash_history && history -c
  43. echo -e " "
  44. # MONTANDO O SEU LINK-IP
  45. echo -e "\033[1;33m MONTANDO O SEU LINK-IP... \033[1;32mAGUARDE"
  46. apt-get install curl -y > /dev/null 2>&1
  47. IP=$(wget -qO- ipv4.icanhazip.com)
  48. if [[ -e "/var/www/html/Plus" ]]; then
  49. sed -i "s;SEU-IP-AKI;$IP;g" /var/www/html/Plus > /dev/null 2>&1
  50. fi
  51. apt-get install curl -y > /dev/null 2>&1
  52. IP=$(wget -qO- ipv4.icanhazip.com)
  53. if [[ -e "/home/list" ]]; then
  54. sed -i "s;SEU-IP-AKI;$IP;g" /home/list > /dev/null 2>&1
  55. fi
  56. sleep 6s
  57. echo -e " "
  58. # DONWLOAD SERVER
  59. echo -e "\033[1;33m DONWLOAD SERVER... \033[1;32mAGUARDE"
  60. #apt-get install zip -y > /dev/null 2>&1
  61. apt-get install unzip -y > /dev/null 2>&1
  62. apt-get install curl -y > /dev/null 2>&1
  63. [[ ! -d /var/www/html/_S_script ]] && mkdir /var/www/html/_S_script
  64. cd /var/www/html/_S_script
  65. wget https://bigbolgames.com/sshpluskey/sshplus-v32.zip > /dev/null 2>&1
  66. unzip sshplus-v32.zip > /dev/null 2>&1
  67. rm -rf sshplus-v32.zip
  68. cd
  69. # HISTORY
  70. cat /dev/null > ~/.bash_history && history -c
  71. echo -e " "
  72. echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
  73. echo -e "\033[1;37m Perfeito, Use o Comando \033[1;31mkeyssh \033[1;37m
  74. para Gerenciar as Suas Keys e
  75. Atualizar a Base do servidor"
  76. echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
  77. rm -rf $HOME/instala_server > /dev/null 2>&1
  78. }
  79. clear
  80. echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
  81. echo -e "\033[1;31mINSTALADOR KEY SSHPLUS MANAGER\033[0m"
  82. echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
  83. echo -ne "\033[0m"
  84. instala_fun

comments powered by Disqus