VPSMX1.3.1 PT


SUBMITTED BY: DaniVPS

DATE: Feb. 20, 2021, 3:29 a.m.

UPDATED: Feb. 20, 2021, 6:02 p.m.

FORMAT: AppleScript

SIZE: 18.1 kB

HITS: 476

  1. #!/bin/bash
  2. clear
  3. cd $HOME
  4. SCPdir="/etc/newadm"
  5. mkdir ${SCPdir} &>/dev/null
  6. SCPinstal="$HOME/install"
  7. SCPidioma="${SCPdir}/idioma"
  8. SCPusr="${SCPdir}/ger-user"
  9. SCPfrm="/etc/ger-frm"
  10. SCPinst="/etc/ger-inst"
  11. #SCRIPT INTERNO BY KALIX1
  12. #TESTIANDO SCRIPTS
  13. msg () {
  14. BRAN='\033[1;37m' && VERMELHO='\e[31m' && VERDE='\e[32m' && AMARELO='\e[33m'
  15. AZUL='\e[34m' && MAGENTA='\e[35m' && MAG='\033[1;36m' &&NEGRITO='\e[1m' && SEMCOR='\e[0m'
  16. case $1 in
  17. -ne)cor="${VERMELHO}${NEGRITO}" && echo -ne "${cor}${2}${SEMCOR}";;
  18. -ama)cor="${AMARELO}${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}";;
  19. -verm)cor="${AMARELO}${NEGRITO}[!] ${VERMELHO}" && echo -e "${cor}${2}${SEMCOR}";;
  20. -azu)cor="${MAG}${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}";;
  21. -verd)cor="${VERDE}${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}";; -bra)cor="${BRAN}${NEGRITO}" && echo -ne "${cor}${2}${SEMCOR}";;
  22. -bar2)cor="\e[0;31m========================================\e[0m" && echo -e "${cor}${SEMCOR}";;
  23. -bar)cor="\e[1;31m——————————————————————————————————————————————————————" && echo -e "${cor}${SEMCOR}";;
  24. esac
  25. }
  26. fun_ip () {
  27. MIP=$(ip addr | grep 'inet' | grep -v inet6 | grep -vE '127\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | grep -o -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | head -1)
  28. MIP2=$(wget -qO- ipv4.icanhazip.com)
  29. [[ "$MIP" != "$MIP2" ]] && IP="$MIP2" || IP="$MIP"
  30. }
  31. #IP=$(wget -qO- ipv4.icanhazip.com)
  32. function_verify () {
  33. ### INTALAR VERCION DE SCRIPT
  34. v1=$(curl -sSL "https://raw.githubusercontent.com/lacasitamx/scripts/master/vercion")
  35. echo "$v1" > /etc/versin_script
  36. }
  37. #testiando
  38. fun_ip
  39. clear
  40. msg -bar
  41. msg -verm " ESPERE UN MOMENTO"
  42. msg -bar
  43. dpkg --configure -a &>/dev/null
  44. apt-get install software-properties-common -y &>/dev/null
  45. apt-add-repository universe -y &>/dev/null
  46. myip=`ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0' | head -n1`;
  47. myint=`ifconfig | grep -B1 "inet addr:$myip" | head -n1 | awk '{print $1}'`;
  48. mkdir -p /etc/B-ADMuser &>/dev/null
  49. rm -rf /etc/localtime &>/dev/null
  50. ln -s /usr/share/zoneinfo/America/Mexico_City /etc/localtime &>/dev/null
  51. inst_components () {
  52. echo -e "\033[97m"
  53. echo -e "\033[41m -- INSTALACION DE PAQUETES NECESARIOS PARA VPS-MX -- "
  54. echo -e "\033[100m PONER ATENCION A INSTALACION PARA SIGUIENTE PREGUNTA"
  55. echo -e "\033[97m"
  56. msg -bar
  57. #grep
  58. apt-get install grep -y &>/dev/null
  59. [[ $(dpkg --get-selections|grep -w "grep"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
  60. [[ $(dpkg --get-selections|grep -w "grep"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
  61. echo -e "\033[97m # apt-get install grep............ $ESTATUS "
  62. #net-tools
  63. apt-get install net-tools -y &>/dev/null
  64. [[ $(dpkg --get-selections|grep -w "net-tools"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
  65. [[ $(dpkg --get-selections|grep -w "net-tools"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
  66. echo -e "\033[97m # apt-get install net-tools....... $ESTATUS "
  67. #gawk
  68. apt-get install gawk -y &>/dev/null
  69. [[ $(dpkg --get-selections|grep -w "gawk"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
  70. [[ $(dpkg --get-selections|grep -w "gawk"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
  71. echo -e "\033[97m # apt-get install gawk............ $ESTATUS "
  72. #mlocate
  73. apt-get install mlocate -y &>/dev/null
  74. [[ $(dpkg --get-selections|grep -w "mlocate"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
  75. [[ $(dpkg --get-selections|grep -w "mlocate"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
  76. echo -e "\033[97m # apt-get install mlocate......... $ESTATUS "
  77. #lolcat gem
  78. apt-get install lolcat -y &>/dev/null
  79. sudo gem install lolcat &>/dev/null
  80. [[ $(dpkg --get-selections|grep -w "lolcat"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
  81. [[ $(dpkg --get-selections|grep -w "lolcat"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
  82. echo -e "\033[97m # apt-get install lolcat.......... $ESTATUS "
  83. #at
  84. [[ $(dpkg --get-selections|grep -w "at"|head -1) ]] || apt-get install at -y &>/dev/null
  85. [[ $(dpkg --get-selections|grep -w "at"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
  86. [[ $(dpkg --get-selections|grep -w "at"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
  87. echo -e "\033[97m # apt-get install at.............. $ESTATUS "
  88. #nano
  89. [[ $(dpkg --get-selections|grep -w "nano"|head -1) ]] || apt-get install nano -y &>/dev/null
  90. [[ $(dpkg --get-selections|grep -w "nano"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
  91. [[ $(dpkg --get-selections|grep -w "nano"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
  92. echo -e "\033[97m # apt-get install nano............ $ESTATUS "
  93. #bc
  94. [[ $(dpkg --get-selections|grep -w "bc"|head -1) ]] || apt-get install bc -y &>/dev/null
  95. [[ $(dpkg --get-selections|grep -w "bc"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
  96. [[ $(dpkg --get-selections|grep -w "bc"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
  97. echo -e "\033[97m # apt-get install bc.............. $ESTATUS "
  98. #lsof
  99. [[ $(dpkg --get-selections|grep -w "lsof"|head -1) ]] || apt-get install lsof -y &>/dev/null
  100. [[ $(dpkg --get-selections|grep -w "lsof"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
  101. [[ $(dpkg --get-selections|grep -w "lsof"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
  102. echo -e "\033[97m # apt-get install lsof............ $ESTATUS "
  103. #figlet
  104. [[ $(dpkg --get-selections|grep -w "figlet"|head -1) ]] || apt-get install figlet -y &>/dev/null
  105. [[ $(dpkg --get-selections|grep -w "figlet"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
  106. [[ $(dpkg --get-selections|grep -w "figlet"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
  107. echo -e "\033[97m # apt-get install figlet.......... $ESTATUS "
  108. #cowsay
  109. [[ $(dpkg --get-selections|grep -w "cowsay"|head -1) ]] || apt-get install cowsay -y &>/dev/null
  110. [[ $(dpkg --get-selections|grep -w "cowsay"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
  111. [[ $(dpkg --get-selections|grep -w "cowsay"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
  112. echo -e "\033[97m # apt-get install cowsay.......... $ESTATUS "
  113. #screen
  114. [[ $(dpkg --get-selections|grep -w "screen"|head -1) ]] || apt-get install screen -y &>/dev/null
  115. [[ $(dpkg --get-selections|grep -w "screen"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
  116. [[ $(dpkg --get-selections|grep -w "screen"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
  117. echo -e "\033[97m # apt-get install screen.......... $ESTATUS "
  118. #python
  119. [[ $(dpkg --get-selections|grep -w "python"|head -1) ]] || apt-get install python -y &>/dev/null
  120. [[ $(dpkg --get-selections|grep -w "python"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
  121. [[ $(dpkg --get-selections|grep -w "python"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
  122. echo -e "\033[97m # apt-get install python.......... $ESTATUS "
  123. #python3
  124. [[ $(dpkg --get-selections|grep -w "python3"|head -1) ]] || apt-get install python3 -y &>/dev/null
  125. [[ $(dpkg --get-selections|grep -w "python3"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
  126. [[ $(dpkg --get-selections|grep -w "python3"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
  127. echo -e "\033[97m # apt-get install python3......... $ESTATUS "
  128. #python3-pip
  129. [[ $(dpkg --get-selections|grep -w "python3-pip"|head -1) ]] || apt-get install python3-pip -y &>/dev/null
  130. [[ $(dpkg --get-selections|grep -w "python3-pip"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
  131. [[ $(dpkg --get-selections|grep -w "python3-pip"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
  132. echo -e "\033[97m # apt-get install python3-pip..... $ESTATUS "
  133. #curl
  134. [[ $(dpkg --get-selections|grep -w "curl"|head -1) ]] || apt-get install curl -y &>/dev/null
  135. [[ $(dpkg --get-selections|grep -w "curl"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
  136. [[ $(dpkg --get-selections|grep -w "curl"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
  137. echo -e "\033[97m # apt-get install curl............ $ESTATUS "
  138. #ufw
  139. [[ $(dpkg --get-selections|grep -w "ufw"|head -1) ]] || apt-get install ufw -y &>/dev/null
  140. [[ $(dpkg --get-selections|grep -w "ufw"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
  141. [[ $(dpkg --get-selections|grep -w "ufw"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
  142. echo -e "\033[97m # apt-get install ufw............. $ESTATUS "
  143. #unzip
  144. [[ $(dpkg --get-selections|grep -w "unzip"|head -1) ]] || apt-get install unzip -y &>/dev/null
  145. [[ $(dpkg --get-selections|grep -w "unzip"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
  146. [[ $(dpkg --get-selections|grep -w "unzip"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
  147. echo -e "\033[97m # apt-get install unzip........... $ESTATUS "
  148. #zip
  149. [[ $(dpkg --get-selections|grep -w "zip"|head -1) ]] || apt-get install zip -y &>/dev/null
  150. [[ $(dpkg --get-selections|grep -w "zip"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
  151. [[ $(dpkg --get-selections|grep -w "zip"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
  152. echo -e "\033[97m # apt-get install zip............. $ESTATUS "
  153. #apache2
  154. [[ $(dpkg --get-selections|grep -w "apache2"|head -1) ]] || {
  155. apt-get install apache2 -y &>/dev/null
  156. sed -i "s;Listen 80;Listen 81;g" /etc/apache2/ports.conf
  157. service apache2 restart > /dev/null 2>&1 &
  158. }
  159. [[ $(dpkg --get-selections|grep -w "apache2"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
  160. [[ $(dpkg --get-selections|grep -w "apache2"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
  161. echo -e "\033[97m # apt-get install apache2......... $ESTATUS "
  162. msg -bar2
  163. }
  164. funcao_idioma () {
  165. msg -bar2
  166. figlet " -VPS MX-" | lolcat
  167. echo -e " ESTE SCRIPT ESTA OPTIMIZADO A IDIOMA ESPAÑOL"
  168. msg -bar2
  169. pv="$(echo es)"
  170. [[ ${#id} -gt 2 ]] && id="es" || id="$pv"
  171. byinst="true"
  172. }
  173. install_fim () {
  174. msg -ama " Finalizando Instalacion" && msg bar2
  175. [[ $(find /etc/newadm/ger-user -name nombre.log|grep -w "nombre.log"|head -1) ]] || wget -O /etc/newadm/ger-user/nombre.log https://raw.githubusercontent.com/lacasitamx/VPSMX/master/ArchivosUtilitarios/nombre.log &>/dev/null
  176. [[ $(find /etc/newadm/ger-user -name IDT.log|grep -w "IDT.log"|head -1) ]] || wget -O /etc/newadm/ger-user/IDT.log https://raw.githubusercontent.com/lacasitamx/VPSMX/master/ArchivosUtilitarios/IDT.log &>/dev/null
  177. [[ $(find /etc/newadm/ger-user -name tiemlim.log|grep -w "tiemlim.log"|head -1) ]] || wget -O /etc/newadm/ger-user/tiemlim.log https://raw.githubusercontent.com/lacasitamx/VPSMX/master/ArchivosUtilitarios/tiemlim.log &>/dev/null
  178. msg -bar
  179. sleep 4.s
  180. wget -O /bin/rebootnb https://raw.githubusercontent.com/lacasitamx/VPSMX/master/ArchivosUtilitarios/rebootnb &> /dev/null
  181. chmod +x /bin/rebootnb
  182. wget -O /bin/resetsshdrop https://raw.githubusercontent.com/lacasitamx/VPSMX/master/ArchivosUtilitarios/resetsshdrop &> /dev/null
  183. chmod +x /bin/resetsshdrop
  184. wget -O /etc/versin_script_new https://raw.githubusercontent.com/lacasitamx/scripts/master/vercion &>/dev/null
  185. msg -bar2
  186. #
  187. rm -rf instalscript
  188. echo '#!/bin/sh -e' > /etc/rc.local
  189. sudo chmod +x /etc/rc.local
  190. echo "sudo rebootnb" >> /etc/rc.local
  191. echo "sudo resetsshdrop" >> /etc/rc.local
  192. echo "sleep 2s" >> /etc/rc.local
  193. echo "exit 0" >> /etc/rc.local
  194. /bin/cp /etc/skel/.bashrc ~/
  195. echo 'clear' >> .bashrc
  196. echo 'echo ""' >> .bashrc
  197. echo 'echo -e "\033[91m __ ______ ____ __ ____ __ " '>> .bashrc
  198. echo 'echo -e "\033[91m \ \ / / _ \/ ___| | \/ \ \/ / " '>> .bashrc
  199. echo 'echo -e "\033[91m \ \ / /| |_) \___ \ _____| |\/| |\ / " '>> .bashrc
  200. echo 'echo -e "\033[91m \ V / | __/ ___) |_____| | | |/ \ " '>> .bashrc
  201. echo 'echo -e "\033[91m \_/ |_| |____/ |_| |_/_/\_\ " '>> .bashrc
  202. echo 'echo "" '>> .bashrc
  203. echo 'mess1="$(less /etc/newadm/message.txt)" ' >> .bashrc
  204. echo 'echo "" '>> .bashrc
  205. echo 'echo -e "\033[92m RESELLER : $mess1 "'>> .bashrc
  206. echo 'echo "" '>> .bashrc
  207. echo 'echo -e "\033[97m PARA MOSTAR PANEL BASH ESCRIBA: sudo adm | menu "'>> .bashrc
  208. echo 'echo -e "\e[1;35m VERSIÓN: \e[1;31m$(cat /etc/versin_script_new)"'>> .bashrc
  209. echo 'echo ""'>> .bashrc
  210. echo -e " COMANDOS DISPONIBLES PARA ENTRAR AL PANEL "
  211. echo -e "\033[1;41m sudo adm | menu \033[0;37m" && msg -bar2
  212. sleep 5
  213. }
  214. verificar_arq () {
  215. [[ ! -d ${SCPdir} ]] && mkdir ${SCPdir}
  216. [[ ! -d ${SCPusr} ]] && mkdir ${SCPusr}
  217. [[ ! -d ${SCPfrm} ]] && mkdir ${SCPfrm}
  218. [[ ! -d ${SCPinst} ]] && mkdir ${SCPinst}
  219. case $1 in
  220. "menu"|"message.txt")ARQ="${SCPdir}/";; #Menu
  221. "usercodes")ARQ="${SCPusr}/";; #Panel SSRR
  222. "C-SSR.sh")ARQ="${SCPinst}/";; #Instalacao
  223. "openssh.sh")ARQ="${SCPinst}/";; #Instalacao
  224. "squid.sh")ARQ="${SCPinst}/";; #Instalacao
  225. "dropbear.sh")ARQ="${SCPinst}/";; #Instalacao
  226. "openvpn.sh")ARQ="${SCPinst}/";; #Instalacao
  227. "ssl.sh")ARQ="${SCPinst}/";; #Instalacao
  228. "shadowsocks.sh")ARQ="${SCPinst}/";; #Instalacao
  229. "Shadowsocks-libev.sh")ARQ="${SCPinst}/";; #Instalacao
  230. "Shadowsocks-R.sh")ARQ="${SCPinst}/";; #Instalacao
  231. "v2ray.sh")ARQ="${SCPinst}/";; #Instalacao
  232. "budp.sh")ARQ="${SCPinst}/";; #Instalacao
  233. "sockspy.sh"|"PDirect.py"|"PPub.py"|"PPriv.py"|"POpen.py"|"PGet.py")ARQ="${SCPinst}/";; #Instalacao
  234. *)ARQ="${SCPfrm}/";; #Ferramentas
  235. esac
  236. mv -f ${SCPinstal}/$1 ${ARQ}/$1
  237. chmod +x ${ARQ}/$1
  238. }
  239. echo -e " INSTALANDO PAQUETES........"
  240. inst_components
  241. function_verify
  242. link=https://raw.githubusercontent.com/lacasitamx/scripts/master/REPOSITORY
  243. casita=("ADMbot.sh" "C-SSR.sh" "Crear-Demo.sh" "PDirect.py" "PGet.py" "POpen.py" "PPriv.py" "PPub.py" "Shadowsocks-R.sh" "Shadowsocks-libev.sh" "Unlock-Pass-VULTR.sh" "apacheon.sh" "blockBT.sh" "budp.sh" "dns-netflix.sh" "dropbear.sh" "fai2ban.sh" "gestor.sh" "menu" "message.txt" "openvpn.sh" "paysnd.sh" "ports.sh" "shadowsocks.sh" "sockspy.sh" "speed.sh" "speedtest.py" "squid.sh" "squidpass.sh" "ssl.sh" "tcp.sh" "ultrahost" "usercodes" "utils.sh" "v2ray.sh")
  244. wget -O /usr/bin/trans https://raw.githubusercontent.com/lacasitamx/VPSMX/master/ArchivosUtilitarios/trans &> /dev/null
  245. wget -O /bin/Desbloqueo.sh https://raw.githubusercontent.com/lacasitamx/VPSMX/master/ArchivosUtilitarios/Desbloqueo.sh &> /dev/null
  246. chmod +x /bin/Desbloqueo.sh
  247. wget -O /bin/monitor.sh https://raw.githubusercontent.com/lacasitamx/rex/master/moni/monitor.sh &> /dev/null
  248. chmod +x /bin/monitor.sh
  249. wget -O /var/www/html/estilos.css https://raw.githubusercontent.com/lacasitamx/VPSMX/master/Monitor-Service/estilos.css &> /dev/null
  250. msg -bar2
  251. msg -bar2
  252. msg -ama " [ VPS - MX - SCRIPT \033[1;97m ❌ MOD By @? ❌\033[1;33m ]"
  253. msg -ama " \033[1;96m 🔰Usar Ubuntu 18 a 64 De Preferencia🔰 "
  254. msg -bar2
  255. [[ $1 = "" ]] && funcao_idioma || {
  256. [[ ${#1} -gt 2 ]] && funcao_idioma || id="$1"
  257. }
  258. NOTIFY () {
  259. msg -bar
  260. msg -ama " Notify-BOT (Notificasion Remota)| VPS-MX "
  261. msg -bar
  262. echo -e "\033[1;94m Es una opcion para notificar cuando\n un usuario sea bloquedo o este expirado, e info de VPS."
  263. echo -e "\033[1;97m Deve usar el BOT de Telegram @Noti_VPSMX_Bot"
  264. echo -e "\033[1;92m Para sacar su ID solo Meta el comando /MENU en el BOT @USA1_BOT"
  265. echo -e "\033[1;92m Aparesera un pequeño menu donde aparesera su ? ID"
  266. msg -bar
  267. echo -e "\033[1;97mIgrese un nombre para el VPS:\033[0;37m"; read -p " " nombr
  268. echo "${nombr}" > /etc/newadm/ger-user/nombre.log
  269. echo -e "\033[1;97mIgrese su ID 👤:\033[0;37m"; read -p " " idbot
  270. echo "${idbot}" > /etc/newadm/ger-user/IDT.log
  271. msg -bar
  272. echo -e "\033[1;32m ID AGREGADO CON EXITO"
  273. msg -bar
  274. NOM="$(less /etc/newadm/ger-user/nombre.log)"
  275. NOM1="$(echo $NOM)"
  276. IDB1=`less /etc/newadm/ger-user/IDT.log` > /dev/null 2>&1
  277. IDB2=`echo $IDB1` > /dev/null 2>&1
  278. KEY="862633455:AAGJ9BBJanzV6yYwLSemNAZAVwn7EyjrtcY"
  279. URL="https://api.telegram.org/bot$KEY/sendMessage"
  280. MSG="⚠️ AVISO DE VPS: $NOM1 ⚠️
  281. 👉 MENSAJE DE PRUEBA
  282. 🔰 EXITOSO... SALUDOS"
  283. curl -s --max-time 10 -d "chat_id=$IDB2&disable_web_page_preview=1&text=$MSG" $URL &>/dev/null
  284. echo -e "\033[1;34mSE ENVIO MENSAJE DE PRUEBA SI NO LLEGA CONTACTE A @? "
  285. }
  286. #ESTRAYENDO RECURSOS DE LOS ARCHIVOS
  287. pontos="*"
  288. for arqx in ${casita[@]}; do
  289. stopping="$(source trans -b es:${id} "Descargando Recursos"|sed -e 's/[^a-z -]//ig')"
  290. msg -verm "${stopping}${pontos}"
  291. tput cuu1 && tput dl1
  292. pontos+="*"
  293. wget -c -P ${SCPinstal} $link/${arqx} &>/dev/null && verificar_arq "${arqx}"
  294. done
  295. sleep 1s
  296. msg -bar
  297. Key="VpsMx/LaCasita/Kalix/v8.1/1K45*456*Fr33"
  298. cat /etc/bash.bashrc|grep -v '[[ $UID != 0 ]] && TMOUT=15 && export TMOUT' > /etc/bash.bashrc.2
  299. echo -e '[[ $UID != 0 ]] && TMOUT=15 && export TMOUT' >> /etc/bash.bashrc.2
  300. mv -f /etc/bash.bashrc.2 /etc/bash.bashrc
  301. echo "${SCPdir}/menu" > /usr/bin/menu && chmod +x /usr/bin/menu
  302. echo "${SCPdir}/menu" > /usr/bin/adm && chmod +x /usr/bin/adm
  303. echo "$Key" > ${SCPdir}/key.txt
  304. [[ -d ${SCPinstal} ]] && rm -rf ${SCPinstal}
  305. [[ ${#id} -gt 2 ]] && echo "es" > ${SCPidioma} || echo "${id}" > ${SCPidioma}
  306. echo -e "${cor[2]} DESEAS INSTALAR NOTI-BOT?(Default n)" echo -e "\033[1;34m (Deves tener Telegram y el BOT: @Noti_VPSMX_Bot)"
  307. msg -bar2
  308. read -p " [ s | n ]: " NOTIFY
  309. [[ "$NOTIFY" = "s" || "$NOTIFY" = "S" ]] && NOTIFY
  310. msg -bar
  311. [[ ${byinst} = "true" ]] && install_fim

comments powered by Disqus