Install-Sin-Key.sh 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  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. v1=$(curl -sSL "https://raw.githubusercontent.com/NetVPS/Multi-Script/main/Vercion")
  96. msgi -ama " PREPARANDO INSTALACION | VERSION: $vesaoSCT"
  97. ## PAQUETES-UBUNTU PRINCIPALES
  98. echo ""
  99. echo -e "\e[1;97m 🔎 IDENTIFICANDO SISTEMA OPERATIVO"
  100. echo -e "\e[1;32m | $distro $vercion |"
  101. echo ""
  102. echo -e "\e[1;97m ◽️ DESACTIVANDO PASS ALFANUMERICO "
  103. 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
  104. barra_intallb "service ssh restart > /dev/null 2>&1 "
  105. echo ""
  106. msgi -bar2
  107. fun_ip() {
  108. TUIP=$(wget -qO- ifconfig.me)
  109. echo "$TUIP" >/root/.ssh/authrized_key.reg
  110. echo -e "\e[1;97m ESTA ES TU IP PUBLICA? \e[32m$TUIP"
  111. msgi -bar2
  112. 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
  113. #read -p " Seleccione [ S / N ]: " tu_ip
  114. [[ "$tu_ip" = "n" || "$tu_ip" = "N" ]] && tu_ip
  115. }
  116. fun_ip
  117. msgi -bar2
  118. echo -e "\e[1;93m AGREGAR Y EDITAR PASS ROOT\e[1;97m"
  119. msgi -bar
  120. echo -e "\e[1;97m CAMBIAR PASS ROOT? \e[32m"
  121. msgi -bar2
  122. 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
  123. #read -p " Seleccione [ S / N ]: " tu_ip
  124. [[ "$pass_root" = "s" || "$pass_root" = "S" ]] && pass_root
  125. msgi -bar2
  126. 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"
  127. msgi -bar
  128. read -t 120 -n 1 -rsp $'\e[1;97m Preciona Enter Para continuar\n'
  129. clear && clear
  130. apt update
  131. apt upgrade -y
  132. wget -O /bin/install https://raw.githubusercontent.com/NetVPS/VPS-MX_Oficial/master/Instalador/Install-Sin-Key.sh &>/dev/null
  133. chmod +rwx /bin/install
  134. }
  135. post_reboot() {
  136. /bin/cp /etc/skel/.bashrc ~/
  137. install -c
  138. }
  139. time_reboot() {
  140. clear && clear
  141. msgi -bar
  142. echo -e "\e[1;93m CONTINUARA INSTALACION DESPUES DEL REBOOT"
  143. echo -e "\e[1;93m O EJECUTE EL COMANDO: \e[1;92mLATAM -c "
  144. msgi -bar
  145. REBOOT_TIMEOUT="$1"
  146. while [ $REBOOT_TIMEOUT -gt 0 ]; do
  147. print_center -ne "-$REBOOT_TIMEOUT-\r"
  148. sleep 1
  149. : $((REBOOT_TIMEOUT--))
  150. done
  151. reboot
  152. }
  153. dependencias() {
  154. dpkg --configure -a >/dev/null 2>&1
  155. apt -f install -y >/dev/null 2>&1
  156. 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"
  157. for i in $soft; do
  158. paquete="$i"
  159. echo -e "\e[1;97m INSTALANDO PAQUETE \e[93m >>> \e[36m $i"
  160. barra_intall "apt-get install $i -y"
  161. done
  162. }
  163. install_paquetes() {
  164. clear && clear
  165. #------- BARRA DE ESPERA
  166. msgi -bar2
  167. echo -e " \e[5m\e[1;100m =====>> ►► MULTI SCRIPT ◄◄ <<===== \e[1;37m"
  168. msgi -bar
  169. echo -e " \e[1;41m -- INSTALACION DE PAQUETES MULTI -- \e[49m"
  170. msgi -bar
  171. dependencias
  172. sed -i "s;Listen 80;Listen 81;g" /etc/apache2/ports.conf >/dev/null 2>&1
  173. service apache2 restart >/dev/null 2>&1
  174. [[ $(sudo lsof -i :81) ]] || ESTATUSP=$(echo -e "\e[1;91m >>> FALLO DE INSTALACION EN APACHE <<<") &>/dev/null
  175. [[ $(sudo lsof -i :81) ]] && ESTATUSP=$(echo -e "\e[1;92m PUERTO APACHE ACTIVO CON EXITO") &>/dev/null
  176. echo ""
  177. echo -e "$ESTATUSP"
  178. echo ""
  179. echo -e "\e[1;97m REMOVIENDO PAQUETES OBSOLETOS - \e[1;32m OK"
  180. apt autoremove -y &>/dev/null
  181. echo iptables-persistent iptables-persistent/autosave_v4 boolean true | sudo debconf-set-selections
  182. echo iptables-persistent iptables-persistent/autosave_v6 boolean true | sudo debconf-set-selections
  183. msgi -bar2
  184. read -t 30 -n 1 -rsp $'\e[1;97m Preciona Enter Para continuar\n'
  185. }
  186. #SELECTOR DE INSTALACION
  187. while :; do
  188. case $1 in
  189. -s | --start) install_inicial && post_reboot ;;
  190. #&& time_reboot "15"
  191. -c | --continue)
  192. install_paquetes
  193. rm -rf /root/LATAM &>/dev/null
  194. break
  195. ;;
  196. -m | --menu)
  197. clear && clear
  198. break
  199. ;;
  200. *) exit ;;
  201. esac
  202. done
  203. install_latam() {
  204. #CARPETAS PRINCIPALES
  205. mkdir -p /etc/SCRIPT-LATAM >/dev/null 2>&1
  206. mkdir -p /etc/SCRIPT-LATAM/temp >/dev/null 2>&1
  207. mkdir -p /etc/SCRIPT-LATAM/filespy >/dev/null 2>&1
  208. mkdir -p /etc/SCRIPT-LATAM/botmanager >/dev/null 2>&1
  209. mkdir -p /etc/SCRIPT-LATAM/PortM >/dev/null 2>&1
  210. mkdir -p /etc/SCRIPT-LATAM/v2ray >/dev/null 2>&1
  211. mkdir -p /root/.ssh >/dev/null 2>&1
  212. Install_key() {
  213. wget /root/LATAM https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Instalador/LATAM -O /usr/bin/LATAM &>/dev/null
  214. chmod +x /usr/bin/LATAM
  215. /bin/cp /etc/skel/.bashrc ~/
  216. clear && clear
  217. SCPdir="/etc/SCRIPT-LATAM"
  218. SCPinstal="$HOME/install"
  219. Filbot="${SCPdir}/botmanager"
  220. Filpy="${SCPdir}/filespy"
  221. Filotros="${SCPdir}/temp"
  222. IP=$(cat /root/.ssh/authrized_key.reg)
  223. function_verify() {
  224. permited=$(curl -sSL "https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Control-IP")
  225. [[ $(echo $permited | grep "${IP}") = "" ]] && {
  226. clear && clear
  227. echo -e "\n\n\n\e[1;91m————————————————————————————————————————————————————\n ¡ESTA KEY NO CONCUERDA CON EL INSTALADOR! \n CONATACTE A @Kalix1\n————————————————————————————————————————————————————\n\n\n"
  228. # [[ -d /etc/SCRIPT-LATAM ]] && rm -rf /etc/SCRIPT-LATAM
  229. exit 1
  230. } || {
  231. ### INSTALAR VERSION DE SCRIPT
  232. v1=$(curl -sSL "https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Version")
  233. echo "$v1" >/etc/SCRIPT-LATAM/temp/version_instalacion
  234. FIns=$(printf '%(%D-%H:%M:%S)T')
  235. echo "$FIns" >/etc/SCRIPT-LATAM/F-Instalacion
  236. }
  237. }
  238. fun_idi() {
  239. clear && clear
  240. msgi -bar2
  241. echo -e "\e[1;32m————————————————————————————————————————————————————"
  242. figlet -w 85 -f smslant " SCRIPT
  243. LATAM " | lolcat
  244. msgi -ama " [ ----- \e[1;97m 🐲 By @Kalix1 🐲\e[1;33m ----- ]"
  245. echo -e "\e[1;32m————————————————————————————————————————————————————"
  246. pv="$(echo es)"
  247. [[ ${#id} -gt 2 ]] && id="es" || id="$pv"
  248. byinst="true"
  249. }
  250. install_fim() {
  251. echo -e " \e[1;4;32mFinalizando Instalacion\e[0;39m"
  252. wget -O /bin/rebootnb https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Ejecutables/rebootnb.sh &>/dev/null
  253. chmod +x /bin/rebootnb
  254. wget -O /etc/SCRIPT-LATAM/temp/version_actual https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Version &>/dev/null
  255. msgi -bar2
  256. echo '#!/bin/sh -e' >/etc/rc.local
  257. sudo chmod +x /etc/rc.local
  258. echo "sudo rebootnb reboot" >>/etc/rc.local
  259. echo "sleep 2s" >>/etc/rc.local
  260. echo "exit 0" >>/etc/rc.local
  261. echo 'clear && clear' >>.bashrc
  262. echo 'rebootnb login >/dev/null 2>&1' >>.bashrc
  263. echo 'echo -e "\e[1;31m————————————————————————————————————————————————————" ' >>.bashrc
  264. echo 'echo -e "\e[1;93m════════════════════════════════════════════════════" ' >>.bashrc
  265. echo 'sudo figlet -w 85 -f smslant " SCRIPT
  266. LATAM" | lolcat' >>.bashrc
  267. echo 'echo -e "\e[1;93m════════════════════════════════════════════════════" ' >>.bashrc
  268. echo 'echo -e "\e[1;31m————————————————————————————————————————————————————" ' >>.bashrc
  269. echo 'mess1="$(less -f /etc/SCRIPT-LATAM/message.txt)" ' >>.bashrc
  270. echo 'echo "" ' >>.bashrc
  271. echo 'echo -e "\e[92m -->> SLOGAN:\e[93m $mess1 "' >>.bashrc
  272. echo 'echo "" ' >>.bashrc
  273. echo 'echo -e "\e[1;97m ❗️ PARA MOSTAR PANEL BASH ESCRIBA ❗️\e[92m menu "' >>.bashrc
  274. echo 'wget -O /etc/SCRIPT-LATAM/temp/version_actual https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Version &>/dev/null' >>.bashrc
  275. echo 'echo ""' >>.bashrc
  276. #-BASH SOPORTE ONLINE
  277. wget https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Fixs%20Remotos/SPR.sh -O /usr/bin/SPR >/dev/null 2>&1
  278. chmod +x /usr/bin/SPR
  279. SPR >/dev/null 2>&1
  280. timeespera="1"
  281. times="10"
  282. if [ "$timeespera" = "1" ]; then
  283. echo -e "\e[1;97m ❗️ REGISTRANDO IP y KEY EN LA BASE ❗️ "
  284. msgi -bar2
  285. while [ $times -gt 0 ]; do
  286. echo -ne " -$times-\e[0K\r"
  287. sleep 1
  288. : $((times--))
  289. done
  290. tput cuu1 && tput dl1
  291. tput cuu1 && tput dl1
  292. tput cuu1 && tput dl1
  293. msgi -bar2
  294. echo -e " \e[1;92m LISTO REGISTRO COMPLETO "
  295. echo -e " \e[1;97m COMANDO PRINCIPAL PARA ENTRAR AL PANEL "
  296. echo -e " \e[1;41m menu o MENU \e[0;37m" && msgi -bar2
  297. fi
  298. meu_ip() {
  299. if [[ -e /tmp/IP ]]; then
  300. echo "$(cat /tmp/IP)"
  301. else
  302. MEU_IP=$(wget -qO- ifconfig.me)
  303. echo "$MEU_IP" >/tmp/IP
  304. fi
  305. }
  306. meu_ip
  307. exit
  308. }
  309. ofus() {
  310. unset server
  311. server=$(echo ${txt_ofuscatw} | cut -d':' -f1)
  312. unset txtofus
  313. number=$(expr length $1)
  314. for ((i = 1; i < $number + 1; i++)); do
  315. txt[$i]=$(echo "$1" | cut -b $i)
  316. case ${txt[$i]} in
  317. ".") txt[$i]="v" ;;
  318. "v") txt[$i]="." ;;
  319. "1") txt[$i]="@" ;;
  320. "@") txt[$i]="1" ;;
  321. "2") txt[$i]="?" ;;
  322. "?") txt[$i]="2" ;;
  323. "4") txt[$i]="p" ;;
  324. "p") txt[$i]="4" ;;
  325. "-") txt[$i]="L" ;;
  326. "L") txt[$i]="-" ;;
  327. esac
  328. txtofus+="${txt[$i]}"
  329. done
  330. echo "$txtofus" | rev
  331. }
  332. verificar_arq() {
  333. case $1 in
  334. "menu.sh" | "message.txt") ARQ="${SCPdir}/" ;;
  335. "LATAMbot.sh") ARQ="${Filbot}/" ;;
  336. "PDirect.py" | "PPub.py" | "PPriv.py" | "POpen.py" | "PGet.py") ARQ="${Filpy}/" ;;
  337. *) ARQ="${Filotros}/" ;;
  338. esac
  339. mv -f ${SCPinstal}/$1 ${ARQ}/$1
  340. chmod +x ${ARQ}/$1
  341. }
  342. #fun_ip
  343. [[ $1 = "" ]] && fun_idi || {
  344. [[ ${#1} -gt 2 ]] && fun_idi || id="$1"
  345. }
  346. error_fun() {
  347. msgi -bar2
  348. msgi -bar2
  349. sleep 3s
  350. clear && clear
  351. echo "Codificacion Incorrecta" >/etc/SCRIPT-LATAM/errorkey
  352. msgi -bar2
  353. [[ $1 = "" ]] && fun_idi || {
  354. [[ ${#1} -gt 2 ]] && fun_idi || id="$1"
  355. }
  356. echo -e "\e[1;31m ¡# ERROR INESPERADO #¡\n ESTA KEY YA FUE USADA O EXPIRO "
  357. echo -e "\e[0;93m -SI EL ERROR PERCISTE REVISAR PUERTO 81 TCP -"
  358. msgi -bar2
  359. 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
  360. service apache2 restart >/dev/null 2>&1
  361. [[ "$incertar_key" = "s" || "$incertar_key" = "S" ]] && incertar_key
  362. clear && clear
  363. msgi -bar2
  364. msgi -bar2
  365. rm -rf lista-arq
  366. echo -e "\e[1;97m ---- INSTALACION CANCELADA -----"
  367. msgi -bar2
  368. msgi -bar2
  369. exit 1
  370. }
  371. invalid_key() {
  372. msgi -bar2
  373. msgi -bar2
  374. sleep 3s
  375. clear && clear
  376. echo "Codificacion Incorrecta" >/etc/SCRIPT-LATAM/errorkey
  377. msgi -bar2
  378. [[ $1 = "" ]] && fun_idi || {
  379. [[ ${#1} -gt 2 ]] && fun_idi || id="$1"
  380. }
  381. echo -e "\e[1;31m CIFRADO INVALIDO -- #¡La Key fue Invalida#! "
  382. msgi -bar2
  383. 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
  384. [[ "$incertar_key" = "s" || "$incertar_key" = "S" ]] && incertar_key
  385. clear && clear
  386. msgi -bar2
  387. msgi -bar2
  388. echo -e "\e[1;97m ---- INSTALACION CANCELADA -----"
  389. msgi -bar2
  390. msgi -bar2
  391. exit 1
  392. }
  393. incertar_key() {
  394. [[ -d /etc/SCRIPT-LATAM/errorkey ]] && rm -rf /etc/SCRIPT-LATAM/errorkey >/dev/null 2>&1
  395. echo "By Kalix1" >/etc/SCRIPT-LATAM/errorkey
  396. msgi -bar2
  397. echo -ne "\e[1;96m >>> INTRODUZCA LA KEY ABAJO <<<\n\e[1;31m " && read Key
  398. [[ -z "$Key" ]] && Key="NULL"
  399. tput cuu1 && tput dl1
  400. msgi -ne " \e[1;93m# Verificando Key # : "
  401. cd $HOME
  402. IPL=$(cat /root/.ssh/authrized_key.reg)
  403. wget -O $HOME/lista-arq $(ofus "$Key")/$IPL >/dev/null 2>&1 && echo -e "\e[1;32m Codificacion Correcta" || {
  404. echo -e "\e[1;31m Codificacion Incorrecta"
  405. invalid_key
  406. exit
  407. }
  408. 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
  409. sleep 1s
  410. function_verify
  411. updatedb
  412. if [[ -e $HOME/lista-arq ]] && [[ ! $(cat /etc/SCRIPT-LATAM/errorkey | grep "Codificacion Incorrecta") ]]; then
  413. msgi -bar2
  414. msgi -verd " Ficheros Copiados \e[97m[\e[93m Key By @Panel_NetVPS_bot \e[97m]"
  415. REQUEST=$(ofus "$Key" | cut -d'/' -f2)
  416. [[ ! -d ${SCPinstal} ]] && mkdir ${SCPinstal}
  417. pontos="."
  418. stopping="Configurando Directorios"
  419. for arqx in $(cat $HOME/lista-arq); do
  420. msgi -verm "${stopping}${pontos}"
  421. wget --no-check-certificate -O ${SCPinstal}/${arqx} ${IP}:81/${REQUEST}/${arqx} >/dev/null 2>&1 && verificar_arq "${arqx}" || {
  422. error_fun
  423. exit
  424. }
  425. tput cuu1 && tput dl1
  426. pontos+="."
  427. done
  428. sleep 1s
  429. msgi -bar2
  430. listaarqs="$(locate "lista-arq" | head -1)" && [[ -e ${listaarqs} ]] && rm $listaarqs
  431. cat /etc/bash.bashrc | grep -v '[[ $UID != 0 ]] && TMOUT=15 && export TMOUT' >/etc/bash.bashrc.2
  432. echo -e '[[ $UID != 0 ]] && TMOUT=15 && export TMOUT' >>/etc/bash.bashrc.2
  433. mv -f /etc/bash.bashrc.2 /etc/bash.bashrc
  434. echo "${SCPdir}/menu.sh" >/usr/bin/menu && chmod +x /usr/bin/menu
  435. echo "${SCPdir}/menu.sh" >/usr/bin/MENU && chmod +x /usr/bin/MENU
  436. echo "$Key" >${SCPdir}/key.txt
  437. [[ -d ${SCPinstal} ]] && rm -rf ${SCPinstal}
  438. [[ ${byinst} = "true" ]] && install_fim
  439. else
  440. invalid_key
  441. fi
  442. }
  443. incertar_key
  444. }
  445. Install_key
  446. }
  447. #MENUS
  448. clear && clear
  449. /bin/cp /etc/skel/.bashrc ~/
  450. /bin/cp /etc/skel/.bashrc /etc/bash.bashrc
  451. msgi -bar2
  452. echo -e " \e[5m\e[1;100m =====>> ►► MENU DE INSTALACION ◄◄ <<===== \e[1;37m"
  453. msgi -bar2
  454. #-- VERIFICAR VERSION
  455. v1=$(curl -sSL "https://raw.githubusercontent.com/NetVPS/Multi-Script/main/Vercion")
  456. echo "$v1" >/etc/SCRIPT-LATAM/temp/version_instalacion
  457. v22=$(cat /etc/SCRIPT-LATAM/temp/version_instalacion)
  458. vesaoSCT="\e[1;31m [ \e[1;32m( $v22 )\e[1;97m\e[1;31m ]"
  459. msgi -ama " PREPARANDO INSTALACION | VERSION: $vesaoSCT"
  460. msgi -bar2
  461. 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"
  462. 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"
  463. 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"
  464. 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"
  465. 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"
  466. msgi -bar2
  467. 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"
  468. msgi -bar2
  469. echo -ne "\e[1;97mDigite solo el numero segun su respuesta:\e[32m "
  470. read opcao
  471. case $opcao in
  472. 1)
  473. install_oficial
  474. ;;
  475. 2)
  476. install_mod
  477. ;;
  478. 3)
  479. install_ADMRufu
  480. ;;
  481. 4)
  482. install_ChumoGH
  483. ;;
  484. 5)
  485. install_latam
  486. ;;
  487. esac
  488. exit