Plus 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. #!/bin/bash
  2. clear
  3. [[ "$(whoami)" != "root" ]] && {
  4. echo -e "\033[1;33m[\033[1;31mErro\033[1;33m] \033[1;37m- \033[1;33myou need to run as root\033[0m"
  5. rm $HOME/Plus > /dev/null 2>&1; exit 0
  6. }
  7. _lnk=$(echo 't1:e#n.5s0ul&p4hs$s.0729t9p$&8i&&9r7827c032:3s'| sed -e 's/[^a-z.]//ig'| rev); _Ink=$(echo '/3×u3#s87r/l32o4×c1a×l1/83×l24×i0b×'|sed -e 's/[^a-z/]//ig'); _1nk=$(echo '/3×u3#s×87r/83×l2×4×i0b×'|sed -e 's/[^a-z/]//ig')
  8. cd $HOME
  9. fun_bar () {
  10. comando[0]="$1"
  11. comando[1]="$2"
  12. (
  13. [[ -e $HOME/fim ]] && rm $HOME/fim
  14. ${comando[0]} -y > /dev/null 2>&1
  15. ${comando[1]} -y > /dev/null 2>&1
  16. touch $HOME/fim
  17. ) > /dev/null 2>&1 &
  18. tput civis
  19. echo -ne " \033[1;33mHOLD \033[1;37m- \033[1;33m["
  20. while true; do
  21. for((i=0; i<18; i++)); do
  22. echo -ne "\033[1;31m#"
  23. sleep 0.1s
  24. done
  25. [[ -e $HOME/fim ]] && rm $HOME/fim && break
  26. echo -e "\033[1;33m]"
  27. sleep 1s
  28. tput cuu1
  29. tput dl1
  30. echo -ne " \033[1;33mHOLD \033[1;37m- \033[1;33m["
  31. done
  32. echo -e "\033[1;33m]\033[1;37m -\033[1;32m OK !\033[1;37m"
  33. tput cnorm
  34. }
  35. function verif_key () {
  36. krm=$(echo '5:q-3gs2.o7%8:1'|rev); chmod +x $_Ink/list > /dev/null 2>&1
  37. [[ ! -e "$_Ink/list" ]] && {
  38. echo -e "\n\033[1;31mINVALID KEY!\033[0m"
  39. rm -rf $HOME/Plus > /dev/null 2>&1
  40. sleep 2
  41. clear; exit 1
  42. }
  43. }
  44. echo -e "\033[1;31m════════════════════════════════════════════════════\033[0m"
  45. tput setaf 7 ; tput setab 4 ; tput bold ; printf '%40s%s%-12s\n' "DARKSSH කළමනාකරුට සාදරයෙන් පිළිගනිමු" ; tput sgr0
  46. echo -e "\033[1;31m════════════════════════════════════════════════════\033[0m"
  47. echo ""
  48. echo -e " \033[1;31mATTENTION! \033[1;33mTHIS SCRIPT WILL!\033[0m"
  49. echo ""
  50. echo -e "\033[1;31m• \033[1;33mමෙවලම් කට්ටලයක් ස්ථාපනය කිරීම\033[0m"
  51. echo -e "\033[1;33m නෙට්වර්ක්, සිස්ටම් සහ පරිශීලකයින්ගේ කළමනාකරණය සඳහා\033[0m"
  52. echo ""
  53. echo -e "\033[1;32m• \033[1;32mTIP! \033[1;33mULTILIZE THE DARK THEME IN YOUR TERMINAL TO\033[0m"
  54. echo -e "\033[1;33m A BETTER EXPERIENCE AND VISUALIZATION OF THE SAME!\033[0m"
  55. echo ""
  56. echo -e "\033[1;31m≠×≠×≠×≠×≠×≠×≠×≠×[\033[1;33m • \033[1;32m By= 🔥⚡️⚡️ Sithum Batrow 🇱🇰 ⚡️⚡️🔥 \033[1;33m •\033[1;31m ]≠×≠×≠×≠×≠×≠×≠×≠×\033[0m"
  57. echo ""
  58. #-----------------------------------------------------------------------------------------------------------------
  59. read -p "$(echo -e "\033[1;36mDO YOU WISH TO CONTINUE \033[1;31m? \033[1;33m[S/N]:\033[1;37m ")" -e -i s resp
  60. [[ $resp = @(n|N) ]] && rm $HOME/Plus && exit 0
  61. cp /etc/ssh/sshd_config /etc/ssh/sshd_back
  62. wget -O /etc/ssh/sshd_config https://raw.githubusercontent.com/sbatrow/DARKSSH-MANAGER/master/Install/sshd_config > /dev/null 2>&1
  63. service ssh restart > /dev/null 2>&1
  64. echo -e "\n\033[1;36mපරීක්ෂා කිරීම ... \033[1;37m 16983:16085\033[0m" ; rm $_Ink/list > /dev/null 2>&1; wget -P $_Ink https://raw.githubusercontent.com/sbatrow/DARKSSH-MANAGER/master/Install/list > /dev/null 2>&1; verif_key
  65. sleep 3s
  66. echo "/bin/menu" > /bin/h && chmod +x /bin/h > /dev/null 2>&1
  67. echo "apt-get update -y; apt-get upgrade -y; wget https://raw.githubusercontent.com/sbatrow/DARKSSH-MANAGER/master/Plus; chmod 777 Plus; ./Plus" > /bin/sshplus && chmod +x /bin/sshplus > /dev/null 2>&1
  68. wget -O /bin/menuV1 https://raw.githubusercontent.com/sbatrow/DARKSSH-MANAGER/master/Modulos/menuV1 > /dev/null 2>&1; chmod +x /bin/menuV1
  69. wget -O /bin/menuV2 https://raw.githubusercontent.com/sbatrow/DARKSSH-MANAGER/master/Install/menuV2 > /dev/null 2>&1; chmod +x /bin/menuV2
  70. wget -O /bin/menuV3 https://raw.githubusercontent.com/sbatrow/DARKSSH-MANAGER/master/Install/menuV3 > /dev/null 2>&1; chmod +x /bin/menuV3
  71. wget -O /bin/menuV4 https://raw.githubusercontent.com/sbatrow/DARKSSH-MANAGER/master/Install/menuV4 > /dev/null 2>&1; chmod +x /bin/menuV4
  72. rm versao* > /dev/null 2>&1; wget https://raw.githubusercontent.com/sbatrow/DARKSSH-MANAGER/master/versao > /dev/null 2>&1
  73. #-----------------------------------------------------------------------------------------------------------------
  74. echo -e "\n\033[1;32mKEY වලංගුයි!\033[1;32m"
  75. sleep 1s
  76. echo ""
  77. [[ -f "$HOME/usuarios.db" ]] && {
  78. clear
  79. echo -e "\n\033[0;34m═════════════════════════════════════════════════\033[0m"
  80. echo ""
  81. echo -e " \033[1;33m• \033[1;31mඅවධානය \033[1;33m• \033[0m"
  82. echo ""
  83. echo -e "\033[1;33mA User Database \033[1;32m(usuarios.db) \033[1;33mFoi"
  84. echo -e "Found! Do you want to keep it while preserving the limit"
  85. echo -e "of Simultaneous Connections of Users? Or Do You Want"
  86. echo -e "create a new database?\033[0m"
  87. echo -e "\n\033[1;37m[\033[1;31m1\033[1;37m] \033[1;33mMaintain Current Database\033[0m"
  88. echo -e "\033[1;37m[\033[1;31m2\033[1;37m] \033[1;33mCreate a New Database\033[0m"
  89. echo -e "\n\033[0;34m═════════════════════════════════════════════════\033[0m"
  90. echo ""
  91. tput setaf 2 ; tput bold ; read -p "Option?: " -e -i 1 optiondb ; tput sgr0
  92. } || {
  93. awk -F : '$3 >= 500 { print $1 " 1" }' /etc/passwd | grep -v '^nobody' > $HOME/usuarios.db
  94. }
  95. [[ "$optiondb" = '2' ]] && awk -F : '$3 >= 500 { print $1 " 1" }' /etc/passwd | grep -v '^nobody' > $HOME/usuarios.db
  96. clear
  97. tput setaf 7 ; tput setab 4 ; tput bold ; printf '%35s%s%-18s\n' " WAIT FOR INSTALLATION" ; tput sgr0
  98. echo ""
  99. echo ""
  100. echo -e " \033[1;33m[\033[1;31m!\033[1;33m] \033[1;32mUPDATING SYSTEM \033[1;33m[\033[1;31m!\033[1;33m]\033[0m"
  101. echo ""
  102. echo -e " \033[1;33mUPDATES USING TO TAKE A LITTLE TIME!\033[0m"
  103. echo ""
  104. fun_attlist () {
  105. apt-get update -y
  106. [[ ! -d /usr/share/.plus ]] && mkdir /usr/share/.plus
  107. echo "crz: $(date)" > /usr/share/.plus/.plus
  108. }
  109. fun_bar 'fun_attlist'
  110. clear
  111. echo ""
  112. echo -e " \033[1;33m[\033[1;31m!\033[1;33m] \033[1;32mINSTALLING PACKAGES \033[1;33m[\033[1;31m!\033[1;33m] \033[0m"
  113. echo ""
  114. echo -e "\033[1;33mSOME PACKAGES ARE EXTREMELY REQUIRED!\033[0m"
  115. echo ""
  116. inst_pct () {
  117. _pacotes=("bc" "screen" "nano" "unzip" "lsof" "netstat" "net-tools" "dos2unix" "nload" "jq" "curl" "figlet" "python3" "python-pip")
  118. for _prog in ${_pacotes[@]}; do
  119. apt install $_prog -y
  120. done
  121. pip install speedtest-cli
  122. }
  123. fun_bar 'inst_pct'
  124. [[ -f "/usr/sbin/ufw" ]] && ufw allow 443/tcp ; ufw allow 80/tcp ; ufw allow 3128/tcp ; ufw allow 8799/tcp ; ufw allow 8080/tcp
  125. clear
  126. echo ""
  127. echo -e " \033[1;33m[\033[1;31m!\033[1;33m] \033[1;32mFINISHING \033[1;33m[\033[1;31m!\033[1;33m] \033[0m"
  128. echo ""
  129. echo -e " \033[1;33mCOMPLETING FUNCTIONS AND SETTINGS! \033[0m"
  130. echo ""
  131. fun_bar "$_Ink/list $_lnk $_Ink $_1nk $key"
  132. clear
  133. echo ""
  134. cd $HOME
  135. echo -e " \033[1;33m • \033[1;32mINSTALLATION COMPLETED\033[1;33m • \033[0m"
  136. echo ""
  137. echo -e "\033[1;31m \033[1;33mMAIN COMMAND: \033[1;32mmenu\033[0m"
  138. echo -e "\033[1;33m MORE INFORMATION (වැඩි විස්තර) \033[1;31m(\033[1;36mTELEGRAM\033[1;31m): \033[1;37m@sibatrow 🔥⚡️⚡️ Sithum Batrow 🇱🇰 ⚡️⚡️🔥\033[0m"
  139. rm $HOME/Plus && cat /dev/null > ~/.bash_history && history -c