Untitled


SUBMITTED BY: Adenilson666

DATE: Oct. 6, 2024, 9:31 p.m.

FORMAT: ActionScript

SIZE: 2.5 kB

HITS: 110

  1. #!/bin/bash
  2. clear
  3. #--------------------------
  4. # SCRIPT SSHPLUS MANAGER
  5. # DEV: @CRAZY_VPN
  6. # CANAL TELEGRAM: @SSHPLUS
  7. #--------------------------
  8. # - Cores
  9. RED='\033[1;31m'
  10. YELLOW='\033[1;33m'
  11. SCOLOR='\033[0m'
  12. # - Verifica Execucao Como Root
  13. [[ "$EUID" -ne 0 ]] && {
  14. echo -e "${RED}[x] VC PRECISA EXECULTAR COMO USUARIO ROOT !${SCOLOR}"
  15. exit 1
  16. }
  17. # - Verifica Arquitetura Compativel
  18. case "$(uname -m)" in
  19. 'amd64' | 'x86_64')
  20. arch='64'
  21. ;;
  22. 'aarch64')
  23. arch='arm64'
  24. ;;
  25. *)
  26. echo -e "${RED}[x] ARQUITETURA INCOMPATIVEL !${SCOLOR}"
  27. exit 1
  28. ;;
  29. esac
  30. # - Verifica OS Compativel
  31. if grep -qs "ubuntu" /etc/os-release; then
  32. os_version=$(grep 'VERSION_ID' /etc/os-release | cut -d '"' -f 2 | tr -d '.')
  33. [[ "$os_version" -lt 1804 ]] && {
  34. echo -e "${RED}[x] VERSAO DO UBUNTU INCOMPATIVEL !\n${YELLOW}[!] REQUER UBUNTU 18.04 OU SUPERIOR !${SCOLOR}"
  35. exit 1
  36. }
  37. elif [[ -e /etc/debian_version ]]; then
  38. os_version=$(grep -oE '[0-9]+' /etc/debian_version | head -1)
  39. [[ "$os_version" -lt 9 ]] && {
  40. echo -e "${RED}[x] VERSAO DO DEBIAN INCOMPATIVEL !\n${YELLOW}[!] REQUER DEBIAN 9 OU SUPERIOR !${SCOLOR}"
  41. exit 1
  42. }
  43. [[ "$os_version" == 9 ]] && {
  44. echo -e "${RED}[!] ATENCAO O ${SCOLOR}DEBIAN 9 STRETCH${RED} CHEGOU\nOFICIALMENTE AO SEU FIM DE VIDA UTIL ! ${SCOLOR}\n"
  45. echo -e "${YELLOW}VOCE PODE TENTAR ATUALIZAR PARA VERSAO\nDEBIAN 10 [ POR SUA CONTA E RISCO ]${SCOLOR}"
  46. read -p "$(echo -e ${YELLOW}DESEJA TENTAR ATUALIZAR ? [s/n]${SCOLOR}:) " resp
  47. [[ $resp == @(s|S) ]] && {
  48. apt update -y
  49. apt upgrade -y
  50. sed -i 's/stretch/buster/g' /etc/apt/sources.list
  51. apt update -y
  52. apt upgrade -y
  53. apt dist-upgrade -y
  54. } || {
  55. exit 1
  56. }
  57. }
  58. else
  59. echo -e "${RED}[x] OS INCOMPATIVEL !\n${YELLOW}[!] REQUER DISTROS BASE DEBIAN/UBUNTU !${SCOLOR}"
  60. exit 1
  61. fi
  62. # - Atualiza Lista/Pacotes/Sistema
  63. dpkg --configure -a
  64. apt update -y && apt upgrade -y
  65. apt install cron unzip python3 -y
  66. # - Ajusta o sysctl
  67. echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf && sysctl -p
  68. # - Execulta instalador
  69. [[ -e install-sshplus ]] && rm install-sshplus
  70. wget /${arch}/install-sshplus
  71. chmod +x install-sshplus
  72. [[ $(systemctl | grep -ic fuse) != '0' ]] && ./install-sshplus || ./install-sshplus --appimage-extract-and-run
  73. rm install-sshplus > /dev/null 2>&1

comments powered by Disqus