Install-Sin-Key.sh 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  1. #!/bin/bash
  2. # INSTALADO --- ACTULIZADO EL 12-01-2023 --By @Kalix1
  3. clear && clear
  4. colores="$(pwd)/colores"
  5. rm -rf ${colores}
  6. wget -O ${colores} "https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Ejecutables/colores" &>/dev/null
  7. [[ ! -e ${colores} ]] && exit
  8. chmod +x ${colores} &>/dev/null
  9. source ${colores}
  10. CTRL_C() {
  11. rm -rf ${colores}
  12. rm -rf /root/LATAM
  13. exit
  14. }
  15. trap "CTRL_C" INT TERM EXIT
  16. #rm $(pwd)/$0 &>/dev/null
  17. #-- VERIFICAR ROOT
  18. if [ $(whoami) != 'root' ]; then
  19. echo ""
  20. echo -e "\e[1;31m NECESITAS SER USER ROOT PARA EJECUTAR EL SCRIPT \n\n\e[97m DIGITE: \e[1;32m sudo su\n"
  21. exit
  22. fi
  23. os_system() {
  24. system=$(cat -n /etc/issue | grep 1 | cut -d ' ' -f6,7,8 | sed 's/1//' | sed 's/ //')
  25. distro=$(echo "$system" | awk '{print $1}')
  26. case $distro in
  27. Debian) vercion=$(echo $system | awk '{print $3}' | cut -d '.' -f1) ;;
  28. Ubuntu) vercion=$(echo $system | awk '{print $2}' | cut -d '.' -f1,2) ;;
  29. esac
  30. }
  31. repo() {
  32. link="https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Source-List/$1.list"
  33. case $1 in
  34. 8 | 9 | 10 | 11 | 16.04 | 18.04 | 20.04 | 20.10 | 21.04 | 21.10 | 22.04) wget -O /etc/apt/sources.list ${link} &>/dev/null ;;
  35. esac
  36. }
  37. ## PRIMER PASO DE INSTALACION
  38. install_inicial() {
  39. clear && clear
  40. #--VERIFICAR IP MANUAL
  41. tu_ip() {
  42. echo ""
  43. echo -ne "\e[1;96m #Digite tu IP Publica (IPV4): \e[32m" && read IP
  44. val_ip() {
  45. local ip=$IP
  46. local stat=1
  47. if [[ $ip =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
  48. OIFS=$IFS
  49. IFS='.'
  50. ip=($ip)
  51. IFS=$OIFS
  52. [[ ${ip[0]} -le 255 && ${ip[1]} -le 255 && ${ip[2]} -le 255 && ${ip[3]} -le 255 ]]
  53. stat=$?
  54. fi
  55. return $stat
  56. }
  57. if val_ip $IP; then
  58. echo "$IP" >/root/.ssh/authrized_key.reg
  59. else
  60. echo ""
  61. echo -e "\e[31mLa IP Digitada no es valida, Verifiquela"
  62. echo ""
  63. sleep 5s
  64. fun_ip
  65. fi
  66. }
  67. #CONFIGURAR SSH-ROOT PRINCIPAL AMAZON, GOOGLE
  68. pass_root() {
  69. wget -O /etc/ssh/sshd_config https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Ejecutables/sshd_config >/dev/null 2>&1
  70. chmod +rwx /etc/ssh/sshd_config
  71. service ssh restart
  72. msgi -bar
  73. echo -ne "\e[1;97m DIGITE NUEVA CONTRASEÑA: \e[1;31m" && read pass
  74. (
  75. echo $pass
  76. echo $pass
  77. ) | passwd root 2>/dev/null
  78. sleep 1s
  79. msgi -bar
  80. echo -e "\e[1;94m CONTRASEÑA AGREGADA O EDITADA CORECTAMENTE"
  81. echo -e "\e[1;97m TU CONTRASEÑA ROOT AHORA ES: \e[41m $pass \e[0;37m"
  82. }
  83. #-- VERIFICAR VERSION
  84. v1=$(curl -sSL "https://raw.githubusercontent.com/NetVPS/Multi-Script/main/Vercion")
  85. echo "$v1" >/etc/SCRIPT-LATAM/temp/version_instalacion
  86. v22=$(cat /etc/SCRIPT-LATAM/temp/version_instalacion)
  87. vesaoSCT="\e[1;31m [ \e[1;32m( $v22 )\e[1;97m\e[1;31m ]"
  88. #-- CONFIGURACION BASICA
  89. os_system
  90. repo "${vercion}"
  91. msgi -bar2
  92. echo -e " \e[5m\e[1;100m =====>> ►► MULTI SCRIPT ◄◄ <<===== \e[1;37m"
  93. msgi -bar2
  94. #-- VERIFICAR VERSION
  95. msgi -ama " PREPARANDO INSTALACION | VERSION: $vesaoSCT"
  96. ## PAQUETES-UBUNTU PRINCIPALES
  97. echo ""
  98. echo -e "\e[1;97m 🔎 IDENTIFICANDO SISTEMA OPERATIVO"
  99. echo -e "\e[1;32m | $distro $vercion |"
  100. echo ""
  101. echo -e "\e[1;97m ◽️ DESACTIVANDO PASS ALFANUMERICO "
  102. sed -i 's/.*pam_cracklib.so.*/password sufficient pam_unix.so sha512 shadow nullok try_first_pass #use_authtok/' /etc/pam.d/common-password >/dev/null 2>&1
  103. barra_intallb "service ssh restart > /dev/null 2>&1 "
  104. echo ""
  105. msgi -bar2
  106. fun_ip() {
  107. TUIP=$(wget -qO- ifconfig.me)
  108. echo "$TUIP" >/root/.ssh/authrized_key.reg
  109. echo -e "\e[1;97m ESTA ES TU IP PUBLICA? \e[32m$TUIP"
  110. msgi -bar2
  111. echo -ne "\e[1;97m Seleccione \e[1;31m[\e[1;93m S \e[1;31m/\e[1;93m N \e[1;31m]\e[1;97m: \e[1;93m" && read tu_ip
  112. #read -p " Seleccione [ S / N ]: " tu_ip
  113. [[ "$tu_ip" = "n" || "$tu_ip" = "N" ]] && tu_ip
  114. }
  115. fun_ip
  116. msgi -bar2
  117. echo -e "\e[1;93m AGREGAR Y EDITAR PASS ROOT\e[1;97m"
  118. msgi -bar
  119. echo -e "\e[1;97m CAMBIAR PASS ROOT? \e[32m"
  120. msgi -bar2
  121. echo -ne "\e[1;97m Seleccione \e[1;31m[\e[1;93m S \e[1;31m/\e[1;93m N \e[1;31m]\e[1;97m: \e[1;93m" && read pass_root
  122. #read -p " Seleccione [ S / N ]: " tu_ip
  123. [[ "$pass_root" = "s" || "$pass_root" = "S" ]] && pass_root
  124. msgi -bar2
  125. echo -e "\e[1;93m\a\a\a SE PROCEDERA A INSTALAR LAS ACTULIZACIONES\n PERTINENTES DEL SISTEMA, ESTE PROCESO PUEDE TARDAR\n VARIOS MINUTOS Y PUEDE PEDIR ALGUNAS CONFIRMACIONES \e[0;37m"
  126. msgi -bar
  127. read -t 120 -n 1 -rsp $'\e[1;97m Preciona Enter Para continuar\n'
  128. clear && clear
  129. apt update
  130. apt upgrade -y
  131. wget -O /bin/install https://raw.githubusercontent.com/NetVPS/VPS-MX_Oficial/master/Instalador/Install-Sin-Key.sh &>/dev/null
  132. chmod +rwx /bin/install
  133. }
  134. post_reboot() {
  135. /bin/cp /etc/skel/.bashrc ~/
  136. install -c
  137. }
  138. time_reboot() {
  139. clear && clear
  140. msgi -bar
  141. echo -e "\e[1;93m CONTINUARA INSTALACION DESPUES DEL REBOOT"
  142. echo -e "\e[1;93m O EJECUTE EL COMANDO: \e[1;92mLATAM -c "
  143. msgi -bar
  144. REBOOT_TIMEOUT="$1"
  145. while [ $REBOOT_TIMEOUT -gt 0 ]; do
  146. print_center -ne "-$REBOOT_TIMEOUT-\r"
  147. sleep 1
  148. : $((REBOOT_TIMEOUT--))
  149. done
  150. reboot
  151. }
  152. dependencias() {
  153. dpkg --configure -a >/dev/null 2>&1
  154. apt -f install -y >/dev/null 2>&1
  155. soft="sudo bsdmainutils zip unzip ufw curl python python3 python3-pip openssl cron iptables lsof pv boxes at mlocate gawk bc jq curl npm nodejs socat netcat netcat-traditional net-tools cowsay figlet lolcat apache2"
  156. for i in $soft; do
  157. paquete="$i"
  158. echo -e "\e[1;97m INSTALANDO PAQUETE \e[93m >>> \e[36m $i"
  159. barra_intall "apt-get install $i -y"
  160. done
  161. }
  162. install_paquetes() {
  163. clear && clear
  164. #------- BARRA DE ESPERA
  165. msgi -bar2
  166. echo -e " \e[5m\e[1;100m =====>> ►► MULTI SCRIPT ◄◄ <<===== \e[1;37m"
  167. msgi -bar
  168. echo -e " \e[1;41m -- INSTALACION DE PAQUETES MULTI -- \e[49m"
  169. msgi -bar
  170. dependencias
  171. sed -i "s;Listen 80;Listen 81;g" /etc/apache2/ports.conf >/dev/null 2>&1
  172. service apache2 restart >/dev/null 2>&1
  173. [[ $(sudo lsof -i :81) ]] || ESTATUSP=$(echo -e "\e[1;91m >>> FALLO DE INSTALACION EN APACHE <<<") &>/dev/null
  174. [[ $(sudo lsof -i :81) ]] && ESTATUSP=$(echo -e "\e[1;92m PUERTO APACHE ACTIVO CON EXITO") &>/dev/null
  175. echo ""
  176. echo -e "$ESTATUSP"
  177. echo ""
  178. echo -e "\e[1;97m REMOVIENDO PAQUETES OBSOLETOS - \e[1;32m OK"
  179. apt autoremove -y &>/dev/null
  180. echo iptables-persistent iptables-persistent/autosave_v4 boolean true | sudo debconf-set-selections
  181. echo iptables-persistent iptables-persistent/autosave_v6 boolean true | sudo debconf-set-selections
  182. msgi -bar2
  183. read -t 30 -n 1 -rsp $'\e[1;97m Preciona Enter Para continuar\n'
  184. }
  185. #SELECTOR DE INSTALACION
  186. while :; do
  187. case $1 in
  188. -s | --start) install_inicial && post_reboot ;;
  189. #&& time_reboot "15"
  190. -c | --continue)
  191. install_paquetes
  192. rm -rf /root/LATAM &>/dev/null
  193. break
  194. ;;
  195. -m | --menu)
  196. clear && clear
  197. break
  198. ;;
  199. *) exit ;;
  200. esac
  201. done
  202. install_latam() {
  203. #CARPETAS PRINCIPALES
  204. mkdir -p /etc/SCRIPT-LATAM >/dev/null 2>&1
  205. mkdir -p /etc/SCRIPT-LATAM/temp >/dev/null 2>&1
  206. mkdir -p /etc/SCRIPT-LATAM/filespy >/dev/null 2>&1
  207. mkdir -p /etc/SCRIPT-LATAM/botmanager >/dev/null 2>&1
  208. mkdir -p /etc/SCRIPT-LATAM/PortM >/dev/null 2>&1
  209. mkdir -p /etc/SCRIPT-LATAM/v2ray >/dev/null 2>&1
  210. mkdir -p /root/.ssh >/dev/null 2>&1
  211. Install_key() {
  212. wget /root/LATAM https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Instalador/LATAM -O /usr/bin/LATAM &>/dev/null
  213. chmod +x /usr/bin/LATAM
  214. /bin/cp /etc/skel/.bashrc ~/
  215. clear && clear
  216. SCPdir="/etc/SCRIPT-LATAM"
  217. SCPinstal="$HOME/install"
  218. Filbot="${SCPdir}/botmanager"
  219. Filpy="${SCPdir}/filespy"
  220. Filotros="${SCPdir}/temp"
  221. IP=$(cat /root/.ssh/authrized_key.reg)
  222. function_verify() {
  223. permited=$(curl -sSL "https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Control-IP")
  224. [[ $(echo $permited | grep "${IP}") = "" ]] && {
  225. clear && clear
  226. echo -e "\n\n\n\e[1;91m————————————————————————————————————————————————————\n ¡ESTA KEY NO CONCUERDA CON EL INSTALADOR! \n CONATACTE A @Kalix1\n————————————————————————————————————————————————————\n\n\n"
  227. # [[ -d /etc/SCRIPT-LATAM ]] && rm -rf /etc/SCRIPT-LATAM
  228. exit 1
  229. } || {
  230. ### INSTALAR VERSION DE SCRIPT
  231. v1=$(curl -sSL "https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Version")
  232. echo "$v1" >/etc/SCRIPT-LATAM/temp/version_instalacion
  233. FIns=$(printf '%(%D-%H:%M:%S)T')
  234. echo "$FIns" >/etc/SCRIPT-LATAM/F-Instalacion
  235. }
  236. }
  237. fun_idi() {
  238. clear && clear
  239. msgi -bar2
  240. echo -e "\e[1;32m————————————————————————————————————————————————————"
  241. figlet -w 85 -f smslant " SCRIPT
  242. LATAM " | lolcat
  243. msgi -ama " [ ----- \e[1;97m 🐲 By @Kalix1 🐲\e[1;33m ----- ]"
  244. echo -e "\e[1;32m————————————————————————————————————————————————————"
  245. pv="$(echo es)"
  246. [[ ${#id} -gt 2 ]] && id="es" || id="$pv"
  247. byinst="true"
  248. }
  249. install_fim() {
  250. echo -e " \e[1;4;32mFinalizando Instalacion\e[0;39m"
  251. wget -O /bin/rebootnb https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Ejecutables/rebootnb.sh &>/dev/null
  252. chmod +x /bin/rebootnb
  253. wget -O /etc/SCRIPT-LATAM/temp/version_actual https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Version &>/dev/null
  254. msgi -bar2
  255. echo '#!/bin/sh -e' >/etc/rc.local
  256. sudo chmod +x /etc/rc.local
  257. echo "sudo rebootnb reboot" >>/etc/rc.local
  258. echo "sleep 2s" >>/etc/rc.local
  259. echo "exit 0" >>/etc/rc.local
  260. echo 'clear && clear' >>.bashrc
  261. echo 'rebootnb login >/dev/null 2>&1' >>.bashrc
  262. echo 'echo -e "\e[1;31m————————————————————————————————————————————————————" ' >>.bashrc
  263. echo 'echo -e "\e[1;93m════════════════════════════════════════════════════" ' >>.bashrc
  264. echo 'sudo figlet -w 85 -f smslant " SCRIPT
  265. LATAM" | lolcat' >>.bashrc
  266. echo 'echo -e "\e[1;93m════════════════════════════════════════════════════" ' >>.bashrc
  267. echo 'echo -e "\e[1;31m————————————————————————————————————————————————————" ' >>.bashrc
  268. echo 'mess1="$(less -f /etc/SCRIPT-LATAM/message.txt)" ' >>.bashrc
  269. echo 'echo "" ' >>.bashrc
  270. echo 'echo -e "\e[92m -->> SLOGAN:\e[93m $mess1 "' >>.bashrc
  271. echo 'echo "" ' >>.bashrc
  272. echo 'echo -e "\e[1;97m ❗️ PARA MOSTAR PANEL BASH ESCRIBA ❗️\e[92m menu "' >>.bashrc
  273. echo 'wget -O /etc/SCRIPT-LATAM/temp/version_actual https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Version &>/dev/null' >>.bashrc
  274. echo 'echo ""' >>.bashrc
  275. #-BASH SOPORTE ONLINE
  276. wget https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Fixs%20Remotos/SPR.sh -O /usr/bin/SPR >/dev/null 2>&1
  277. chmod +x /usr/bin/SPR
  278. SPR >/dev/null 2>&1
  279. timeespera="1"
  280. times="10"
  281. if [ "$timeespera" = "1" ]; then
  282. echo -e "\e[1;97m ❗️ REGISTRANDO IP y KEY EN LA BASE ❗️ "
  283. msgi -bar2
  284. while [ $times -gt 0 ]; do
  285. echo -ne " -$times-\e[0K\r"
  286. sleep 1
  287. : $((times--))
  288. done
  289. tput cuu1 && tput dl1
  290. tput cuu1 && tput dl1
  291. tput cuu1 && tput dl1
  292. msgi -bar2
  293. echo -e " \e[1;92m LISTO REGISTRO COMPLETO "
  294. echo -e " \e[1;97m COMANDO PRINCIPAL PARA ENTRAR AL PANEL "
  295. echo -e " \e[1;41m menu o MENU \e[0;37m" && msgi -bar2
  296. fi
  297. meu_ip() {
  298. if [[ -e /tmp/IP ]]; then
  299. echo "$(cat /tmp/IP)"
  300. else
  301. MEU_IP=$(wget -qO- ifconfig.me)
  302. echo "$MEU_IP" >/tmp/IP
  303. fi
  304. }
  305. meu_ip
  306. exit
  307. }
  308. ofus() {
  309. unset server
  310. server=$(echo ${txt_ofuscatw} | cut -d':' -f1)
  311. unset txtofus
  312. number=$(expr length $1)
  313. for ((i = 1; i < $number + 1; i++)); do
  314. txt[$i]=$(echo "$1" | cut -b $i)
  315. case ${txt[$i]} in
  316. ".") txt[$i]="v" ;;
  317. "v") txt[$i]="." ;;
  318. "1") txt[$i]="@" ;;
  319. "@") txt[$i]="1" ;;
  320. "2") txt[$i]="?" ;;
  321. "?") txt[$i]="2" ;;
  322. "4") txt[$i]="p" ;;
  323. "p") txt[$i]="4" ;;
  324. "-") txt[$i]="L" ;;
  325. "L") txt[$i]="-" ;;
  326. esac
  327. txtofus+="${txt[$i]}"
  328. done
  329. echo "$txtofus" | rev
  330. }
  331. verificar_arq() {
  332. case $1 in
  333. "menu.sh" | "message.txt") ARQ="${SCPdir}/" ;;
  334. "LATAMbot.sh") ARQ="${Filbot}/" ;;
  335. "PDirect.py" | "PPub.py" | "PPriv.py" | "POpen.py" | "PGet.py") ARQ="${Filpy}/" ;;
  336. *) ARQ="${Filotros}/" ;;
  337. esac
  338. mv -f ${SCPinstal}/$1 ${ARQ}/$1
  339. chmod +x ${ARQ}/$1
  340. }
  341. #fun_ip
  342. [[ $1 = "" ]] && fun_idi || {
  343. [[ ${#1} -gt 2 ]] && fun_idi || id="$1"
  344. }
  345. error_fun() {
  346. msgi -bar2
  347. msgi -bar2
  348. sleep 3s
  349. clear && clear
  350. echo "Codificacion Incorrecta" >/etc/SCRIPT-LATAM/errorkey
  351. msgi -bar2
  352. [[ $1 = "" ]] && fun_idi || {
  353. [[ ${#1} -gt 2 ]] && fun_idi || id="$1"
  354. }
  355. echo -e "\e[1;31m ¡# ERROR INESPERADO #¡\n ESTA KEY YA FUE USADA O EXPIRO "
  356. echo -e "\e[0;93m -SI EL ERROR PERCISTE REVISAR PUERTO 81 TCP -"
  357. msgi -bar2
  358. echo -ne "\e[1;97m DESEAS REINTENTAR CON OTRA KEY \e[1;31m[\e[1;93m S \e[1;31m/\e[1;93m N \e[1;31m]\e[1;97m: \e[1;93m" && read incertar_key
  359. service apache2 restart >/dev/null 2>&1
  360. [[ "$incertar_key" = "s" || "$incertar_key" = "S" ]] && incertar_key
  361. clear && clear
  362. msgi -bar2
  363. msgi -bar2
  364. rm -rf lista-arq
  365. echo -e "\e[1;97m ---- INSTALACION CANCELADA -----"
  366. msgi -bar2
  367. msgi -bar2
  368. exit 1
  369. }
  370. invalid_key() {
  371. msgi -bar2
  372. msgi -bar2
  373. sleep 3s
  374. clear && clear
  375. echo "Codificacion Incorrecta" >/etc/SCRIPT-LATAM/errorkey
  376. msgi -bar2
  377. [[ $1 = "" ]] && fun_idi || {
  378. [[ ${#1} -gt 2 ]] && fun_idi || id="$1"
  379. }
  380. echo -e "\e[1;31m CIFRADO INVALIDO -- #¡La Key fue Invalida#! "
  381. msgi -bar2
  382. echo -ne "\e[1;97m DESEAS REINTENTAR CON OTRA KEY \e[1;31m[\e[1;93m S \e[1;31m/\e[1;93m N \e[1;31m]\e[1;93m: \e[1;93m" && read incertar_key
  383. [[ "$incertar_key" = "s" || "$incertar_key" = "S" ]] && incertar_key
  384. clear && clear
  385. msgi -bar2
  386. msgi -bar2
  387. echo -e "\e[1;97m ---- INSTALACION CANCELADA -----"
  388. msgi -bar2
  389. msgi -bar2
  390. exit 1
  391. }
  392. incertar_key() {
  393. [[ -d /etc/SCRIPT-LATAM/errorkey ]] && rm -rf /etc/SCRIPT-LATAM/errorkey >/dev/null 2>&1
  394. echo "By Kalix1" >/etc/SCRIPT-LATAM/errorkey
  395. msgi -bar2
  396. echo -ne "\e[1;96m >>> INTRODUZCA LA KEY ABAJO <<<\n\e[1;31m " && read Key
  397. [[ -z "$Key" ]] && Key="NULL"
  398. tput cuu1 && tput dl1
  399. msgi -ne " \e[1;93m# Verificando Key # : "
  400. cd $HOME
  401. IPL=$(cat /root/.ssh/authrized_key.reg)
  402. wget -O $HOME/lista-arq $(ofus "$Key")/$IPL >/dev/null 2>&1 && echo -e "\e[1;32m Codificacion Correcta" || {
  403. echo -e "\e[1;31m Codificacion Incorrecta"
  404. invalid_key
  405. exit
  406. }
  407. IP=$(ofus "$Key" | 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}') && echo "$IP" >/usr/bin/vendor_code
  408. sleep 1s
  409. function_verify
  410. updatedb
  411. if [[ -e $HOME/lista-arq ]] && [[ ! $(cat /etc/SCRIPT-LATAM/errorkey | grep "Codificacion Incorrecta") ]]; then
  412. msgi -bar2
  413. msgi -verd " Ficheros Copiados \e[97m[\e[93m Key By @Panel_NetVPS_bot \e[97m]"
  414. REQUEST=$(ofus "$Key" | cut -d'/' -f2)
  415. [[ ! -d ${SCPinstal} ]] && mkdir ${SCPinstal}
  416. pontos="."
  417. stopping="Configurando Directorios"
  418. for arqx in $(cat $HOME/lista-arq); do
  419. msgi -verm "${stopping}${pontos}"
  420. wget --no-check-certificate -O ${SCPinstal}/${arqx} ${IP}:81/${REQUEST}/${arqx} >/dev/null 2>&1 && verificar_arq "${arqx}" || {
  421. error_fun
  422. exit
  423. }
  424. tput cuu1 && tput dl1
  425. pontos+="."
  426. done
  427. sleep 1s
  428. msgi -bar2
  429. listaarqs="$(locate "lista-arq" | head -1)" && [[ -e ${listaarqs} ]] && rm $listaarqs
  430. cat /etc/bash.bashrc | grep -v '[[ $UID != 0 ]] && TMOUT=15 && export TMOUT' >/etc/bash.bashrc.2
  431. echo -e '[[ $UID != 0 ]] && TMOUT=15 && export TMOUT' >>/etc/bash.bashrc.2
  432. mv -f /etc/bash.bashrc.2 /etc/bash.bashrc
  433. echo "${SCPdir}/menu.sh" >/usr/bin/menu && chmod +x /usr/bin/menu
  434. echo "${SCPdir}/menu.sh" >/usr/bin/MENU && chmod +x /usr/bin/MENU
  435. echo "$Key" >${SCPdir}/key.txt
  436. [[ -d ${SCPinstal} ]] && rm -rf ${SCPinstal}
  437. [[ ${byinst} = "true" ]] && install_fim
  438. else
  439. invalid_key
  440. fi
  441. }
  442. incertar_key
  443. }
  444. Install_key
  445. }
  446. #MENUS
  447. clear && clear
  448. /bin/cp /etc/skel/.bashrc ~/
  449. /bin/cp /etc/skel/.bashrc /etc/bash.bashrc
  450. msgi -bar2
  451. echo -e " \e[5m\e[1;100m =====>> ►► MENU DE INSTALACION ◄◄ <<===== \e[1;37m"
  452. msgi -bar2
  453. #-- VERIFICAR VERSION
  454. v1=$(curl -sSL "https://raw.githubusercontent.com/NetVPS/Multi-Script/main/Vercion")
  455. echo "$v1" >/etc/SCRIPT-LATAM/temp/version_instalacion
  456. v22=$(cat /etc/SCRIPT-LATAM/temp/version_instalacion)
  457. vesaoSCT="\e[1;31m [ \e[1;32m( $v22 )\e[1;97m\e[1;31m ]"
  458. msgi -ama " PREPARANDO INSTALACION | VERSION: $vesaoSCT"
  459. msgi -bar2
  460. echo -ne "\e[1;93m [\e[1;32m1\e[1;93m]\e[1;31m >\e[1;97m VPS-MX FINAL OFICIAL..(8.5) \e[1;31m 🎁 FREE \e[97m \n"
  461. echo -ne "\e[1;93m [\e[1;32m2\e[1;93m]\e[1;31m >\e[1;97m LACASITAMX............(9.0X) \e[1;31m 🎁 FREE \e[97m \n"
  462. echo -ne "\e[1;93m [\e[1;32m3\e[1;93m]\e[1;31m >\e[1;97m ADMRufu \e[1;31m 🎁 FREE\e[97m \n"
  463. echo -ne "\e[1;93m [\e[1;32m4\e[1;93m]\e[1;31m >\e[1;97m ChumoGH...............(5.6) \e[1;31m 🎁 FREE\e[97m \n"
  464. echo -ne "\e[1;93m [\e[1;32m5\e[1;93m]\e[1;31m >\e[1;97m LATAM.................(2.0) \e[1;96m 💎 VIP\e[97m \n"
  465. msgi -bar2
  466. echo -ne "\e[1;93m [\e[1;32m ARCHIVOS Y LINKS TOTALMENTE ABIERTOS Y PUBLICOS \e[1;93m]\e[1;96m\n https://github.com/NetVPS/Multi-Script\e[97m \n"
  467. msgi -bar2
  468. echo -ne "\e[1;97mDigite solo el numero segun su respuesta:\e[32m "
  469. read opcao
  470. case $opcao in
  471. 1)
  472. install_oficial
  473. ;;
  474. 2)
  475. install_mod
  476. ;;
  477. 3)
  478. install_ADMRufu
  479. ;;
  480. 4)
  481. install_ChumoGH
  482. ;;
  483. 5)
  484. install_latam
  485. ;;
  486. esac
  487. exit