1
0

user 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. #!/bin/bash
  2. #source cabecalho
  3. #tput cuu1 >&2 && tput dl1 >&2 && tput cuu1 >&2 && tput dl1 >&2 && tput cuu1 >&2 && tput dl1 >&2 && tput cuu1 >&2 && tput dl1 >&2 && tput cuu1 >&2 && tput dl1 >&2 && tput cuu1 >&2 && tput dl1 >&2 && tput cuu1 >&2 && tput dl1 >&2 && tput cuu1 >&2 && tput dl1 >&2 && tput cuu1 >&2 && tput dl1 >&2 && tput cuu1 >&2 && tput dl1 >&2 && tput cuu1 >&2 && tput dl1 >&2
  4. source cabecalho
  5. tput cuu1 >&2 && tput dl1 >&2
  6. #head -n -2 /etc/adm-lite/cabecalho > headuser.sh && chmod 777 headuser.sh && source headuser.sh
  7. mt=$(free -h | grep Mem | sed 's/\s\+/,/g' | cut -d , -f2)
  8. mf=$(free -h | grep Mem | sed 's/\s\+/,/g' | cut -d , -f4)
  9. _usop=$(printf '%-1s' "$(top -bn1 | awk '/Cpu/ { cpu = "" 100 - $8 "%" }; END { print cpu }')")
  10. if [ "$(find . -type f -iname "*.block" | wc -l)" > 0 ]; then
  11. ul="\033[1;33m( \033[1;31m$(find . -type f -iname "*.block" | wc -l) \033[1;32mLOCKED \033[1;33m)"
  12. else
  13. ul="\033[1;33m( \033[1;32mALL UNLOCK \033[1;33m)"
  14. fi
  15. #[[ -e /root/name ]] && figlet -p -f smslant < /root/name | lolcat || echo -e "\033[7;49;35m =====>>►► 🐲 New ChumoGH💥VPS 🐲 ◄◄<<===== \033[0m"
  16. [[ -z $(ps x | grep "ultimatebot" | grep -v "grep") ]] && bt="\033[1;31mOFF\033[0m" || bt="\033[1;32mON\033[0m"
  17. usoo=$(grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage "%"}')
  18. CPU=$(echo $usoo "%" | awk '{printf("%d\n",$1 + 0.5)}')
  19. msg -bar
  20. echo -e "${cor[2]} 🍀 ${cor[5]}CUENTAS SSH / SSL / DROPBEAR By @ChumoGH 🍀"
  21. echo -e " \033[1;34m ▸ M LIBRE: \033[1;32m$mf \033[1;34m ▸ USO DE CPU:\033[1;32m $_usop "
  22. msg -bar
  23. echo -e "\033[0;35m [\033[0;36m1\033[0;35m]\033[0;31m ➮${cor[3]} CREAR 1 USUARIO DEMO"
  24. echo -e "\033[0;35m [\033[0;36m2\033[0;35m]\033[0;31m ➮${cor[3]} AGREGAR 1 USUARIO PERSONAL"
  25. echo -e "\033[0;35m [\033[0;36m3\033[0;35m]\033[0;31m ➮${cor[3]} BORRAR 1/TODOS LOS USUARIO/s"
  26. echo -e "\033[0;35m [\033[0;36m4\033[0;35m]\033[0;31m ➮${cor[3]} EDITAR USUARIOS REGISTRADOS"
  27. echo -e "\033[0;35m [\033[0;36m5\033[0;35m]\033[0;31m ➮${cor[3]} MOSTRAR USUARIOS REGISTRADOS"
  28. echo -e "\033[0;35m [\033[0;36m6\033[0;35m]\033[0;31m ➮${cor[3]} MOSTRAR USUARIOS CONECTADOS "
  29. echo -e "\033[0;35m [\033[0;36m7\033[0;35m]\033[0;31m ➮${cor[3]} BORRAR USUARIOS VENCIDOS"
  30. echo -e "\033[0;35m [\033[0;36m8\033[0;35m]\033[0;31m ➮${cor[3]} EDITAR BANNER ( SSH/Dropbear )"
  31. echo -e "\033[0;35m [\033[0;36m9\033[0;35m]\033[0;31m ➮${cor[3]} LOG DE CONSUMO ( Artificial )"
  32. echo -e "\033[0;35m [\033[0;36m10\033[0;35m]\033[0;31m ➮${cor[3]} BLOQUEAR USUARIOS TEMPORALMENTE $ul"
  33. echo -e "\033[0;35m [\033[0;36m11\033[0;35m]\033[0;31m ➮${cor[3]} BACKUP USUARIOS \033[0;32m(#OFFICIAL)"
  34. echo -e "\033[0;35m [\033[0;36m12\033[0;35m]\033[0;31m ➮${cor[3]} MENU CUENTAS SSR/SS \033[0;32m(#OFFICIAL)"
  35. echo -e "\033[0;35m [\033[0;36m13\033[0;35m]\033[0;31m ➮${cor[3]} MENU DE CUENTAS V2RAY \033[0;33m(#BETA)"
  36. echo -e "\033[0;35m [\033[0;36m14\033[0;35m]\033[0;31m ➮${cor[3]} CONTROL SSH ( BotTelegram $bt ) "
  37. #echo -e "\033[0;35m [\033[0;36m15\033[0;35m]\033[0;31m ➮${cor[3]} MENU DE CUENTAS TROJAN \033[0;33m(#BETA)"
  38. msg -bar
  39. echo -e " \033[0;35m [\033[0;36m0\033[0;35m]\033[0;31m ➮ $(msg -bra "\033[1;41m[ REGRESAR ]\e[0m")"
  40. msg -bar
  41. if [ -e /etc/cgh/modulo/limiter ]; then
  42. echo -e "\033[1;31m \033[1;36m \033[1;32m(ON)\033[1;36m DESACTIVAR KILL MULTILOGUIN "
  43. else
  44. [[ -z $limiter_on ]] && limiter_on="\033[1;31mOFF\033[0m"
  45. echo -e "\033[0;33m(\033[0;32mContador:$limiter_on\033[0;33m) \033[1;36mActiva en MENU 7-OPCION 6\033[1;31m\033[1;36m\033[1;31m (Kill OFF)\033[0m"
  46. fi
  47. msg -bar
  48. #FUNCION DE SELECCION
  49. selection_fun () {
  50. local selection="null"
  51. local range
  52. for((i=0; i<=$1; i++)); do range[$i]="$i "; done
  53. while [[ ! $(echo ${range[*]}|grep -w "$selection") ]]; do
  54. echo -ne "\033[1;37m Opcion: " >&2
  55. read selection
  56. tput cuu1 >&2 && tput dl1 >&2
  57. done
  58. echo $selection
  59. }
  60. selection=$(selection_fun 14)
  61. case ${selection} in
  62. 0)
  63. rm -f /etc/adm-lite/headuser.sh
  64. menu
  65. ;;
  66. 1)
  67. source usercodes 1
  68. echo -ne "${cor[5]}"
  69. read -p " ${txt[47]}"
  70. source /etc/adm-lite/user
  71. exit
  72. ;;
  73. 2)
  74. source usercodes 2
  75. echo -ne "${cor[5]}"
  76. read -p " ${txt[47]}"
  77. source /etc/adm-lite/user
  78. exit
  79. ;;
  80. 3)
  81. source usercodes 3
  82. echo -ne "${cor[5]}"
  83. read -p " ${txt[47]}"
  84. source /etc/adm-lite/user
  85. exit
  86. ;;
  87. 4)
  88. source usercodes 4
  89. echo -ne "${cor[5]}"
  90. read -p " ${txt[47]}"
  91. source /etc/adm-lite/user
  92. exit
  93. ;;
  94. 5)
  95. source usercodes 5
  96. echo -ne "${cor[5]}"
  97. read -p " ${txt[47]}"
  98. cd /etc/adm-lite
  99. source user
  100. exit
  101. ;;
  102. 6)
  103. source usercodes 6
  104. echo -ne "${cor[5]}"
  105. read -p " ${txt[47]}"
  106. cd /etc/adm-lite
  107. source user
  108. exit
  109. ;;
  110. 7)
  111. source usercodes 7
  112. echo -ne "${cor[5]}"
  113. read -p " ${txt[47]}"
  114. cd /etc/adm-lite
  115. source user
  116. exit
  117. ;;
  118. 8)
  119. source usercodes 8
  120. echo -ne "${cor[5]}"
  121. read -p " ${txt[47]}"
  122. cd /etc/adm-lite
  123. source user
  124. exit
  125. ;;
  126. 9)
  127. source usercodes 9
  128. echo -ne "${cor[5]}"
  129. read -p " ${txt[47]}"
  130. cd /etc/adm-lite
  131. source user
  132. exit
  133. ;;
  134. 10)
  135. source usercodes 10
  136. echo -ne "${cor[5]}"
  137. read -p " ${txt[47]}"
  138. cd /etc/adm-lite
  139. source user
  140. exit
  141. ;;
  142. 11)
  143. source usercodes 11
  144. echo -ne "${cor[5]}"
  145. read -p " ${txt[47]}"
  146. cd /etc/adm-lite
  147. source user
  148. exit
  149. ;;
  150. 12)
  151. source usercodes 12
  152. echo -ne "${cor[5]}"
  153. read -p " ${txt[47]}"
  154. cd /etc/adm-lite
  155. source user
  156. exit
  157. ;;
  158. 13)
  159. source usercodes 13
  160. echo -ne "${cor[5]}"
  161. read -p " ${txt[47]}"
  162. cd /etc/adm-lite
  163. source user
  164. exit
  165. ;;
  166. 14)
  167. source usercodes 14
  168. echo -ne "${cor[5]}"
  169. read -p " ${txt[47]}"
  170. cd /etc/adm-lite
  171. source user
  172. exit
  173. ;;
  174. *)
  175. source /etc/adm-lite/user
  176. exit
  177. ;;
  178. esac