install.sh 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821
  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/Multi-Script/main/Otros/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/Multi-Script/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/Multi-Script/main/Otros/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/version_instalacion
  86. v22=$(cat /etc/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. [[ $(dpkg --get-selections | grep -w "libpam-cracklib" | head -1) ]] || apt-get install libpam-cracklib -y &>/dev/null
  103. echo -e '# Modulo Pass Simple
  104. password [success=1 default=ignore] pam_unix.so obscure sha512
  105. password requisite pam_deny.so
  106. password required pam_permit.so' >/etc/pam.d/common-password && chmod +x /etc/pam.d/common-password
  107. barra_intallb "service ssh restart > /dev/null 2>&1 "
  108. echo ""
  109. msgi -bar2
  110. fun_ip() {
  111. TUIP=$(wget -qO- ifconfig.me)
  112. echo "$TUIP" >/root/.ssh/authrized_key.reg
  113. echo -e "\e[1;97m ESTA ES TU IP PUBLICA? \e[32m$TUIP"
  114. msgi -bar2
  115. 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
  116. #read -p " Seleccione [ S / N ]: " tu_ip
  117. [[ "$tu_ip" = "n" || "$tu_ip" = "N" ]] && tu_ip
  118. }
  119. fun_ip
  120. msgi -bar2
  121. echo -e "\e[1;93m AGREGAR Y EDITAR PASS ROOT\e[1;97m"
  122. msgi -bar
  123. echo -e "\e[1;97m CAMBIAR PASS ROOT? \e[32m"
  124. msgi -bar2
  125. 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
  126. #read -p " Seleccione [ S / N ]: " tu_ip
  127. [[ "$pass_root" = "s" || "$pass_root" = "S" ]] && pass_root
  128. msgi -bar2
  129. 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"
  130. msgi -bar
  131. read -t 120 -n 1 -rsp $'\e[1;97m Preciona Enter Para continuar\n'
  132. clear && clear
  133. apt update
  134. apt upgrade -y
  135. wget -O /usr/bin/install https://raw.githubusercontent.com/NetVPS/Multi-Script/main/0-Instalador/install.sh &>/dev/null
  136. chmod +rwx /usr/bin/install
  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. /bin/cp /etc/skel/.bashrc ~/
  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)
  190. install_inicial && install_paquetes
  191. break
  192. ;;
  193. -c | --continue)
  194. install_paquetes
  195. break
  196. ;;
  197. -m | --menu)
  198. break
  199. ;;
  200. *) exit ;;
  201. esac
  202. done
  203. #VPS-MX 8.5 OFICIAL
  204. install_vps_mx_85_oficial() {
  205. clear && clear
  206. msgi -bar2
  207. echo -ne "\033[1;97m Digite su slogan: \033[1;32m" && read slogan
  208. tput cuu1 && tput dl1
  209. echo -e "$slogan"
  210. msgi -bar2
  211. clear && clear
  212. mkdir /etc/VPS-MX >/dev/null 2>&1
  213. cd /etc
  214. wget https://raw.githubusercontent.com/NetVPS/Multi-Script/main/VPS-MX-8.5-Final%20Oficial/VPS-MX.tar.xz >/dev/null 2>&1
  215. tar -xf VPS-MX.tar.xz >/dev/null 2>&1
  216. chmod +x VPS-MX.tar.xz >/dev/null 2>&1
  217. rm -rf VPS-MX.tar.xz
  218. cd
  219. chmod -R 755 /etc/VPS-MX
  220. rm -rf /etc/VPS-MX/MEUIPvps
  221. echo "/etc/VPS-MX/menu" >/usr/bin/menu && chmod +x /usr/bin/menu
  222. echo "/etc/VPS-MX/menu" >/usr/bin/VPSMX && chmod +x /usr/bin/VPSMX
  223. echo "$slogan" >/etc/VPS-MX/message.txt
  224. [[ ! -d /usr/local/lib ]] && mkdir /usr/local/lib
  225. [[ ! -d /usr/local/lib/ubuntn ]] && mkdir /usr/local/lib/ubuntn
  226. [[ ! -d /usr/local/lib/ubuntn/apache ]] && mkdir /usr/local/lib/ubuntn/apache
  227. [[ ! -d /usr/local/lib/ubuntn/apache/ver ]] && mkdir /usr/local/lib/ubuntn/apache/ver
  228. [[ ! -d /usr/share ]] && mkdir /usr/share
  229. [[ ! -d /usr/share/mediaptre ]] && mkdir /usr/share/mediaptre
  230. [[ ! -d /usr/share/mediaptre/local ]] && mkdir /usr/share/mediaptre/local
  231. [[ ! -d /usr/share/mediaptre/local/log ]] && mkdir /usr/share/mediaptre/local/log
  232. [[ ! -d /usr/share/mediaptre/local/log/lognull ]] && mkdir /usr/share/mediaptre/local/log/lognull
  233. [[ ! -d /etc/VPS-MX/B-VPS-MXuser ]] && mkdir /etc/VPS-MX/B-VPS-MXuser
  234. [[ ! -d /usr/local/protec ]] && mkdir /usr/local/protec
  235. [[ ! -d /usr/local/protec/rip ]] && mkdir /usr/local/protec/rip
  236. [[ ! -d /etc/protecbin ]] && mkdir /etc/protecbin
  237. cd
  238. [[ ! -d /etc/VPS-MX/v2ray ]] && mkdir /etc/VPS-MX/v2ray
  239. [[ ! -d /etc/VPS-MX/Slow ]] && mkdir /etc/VPS-MX/Slow
  240. [[ ! -d /etc/VPS-MX/Slow/install ]] && mkdir /etc/VPS-MX/Slow/install
  241. [[ ! -d /etc/VPS-MX/Slow/Key ]] && mkdir /etc/VPS-MX/Slow/Key
  242. touch /usr/share/lognull &>/dev/null
  243. wget -O /bin/resetsshdrop https://raw.githubusercontent.com/NetVPS/Multi-Script/main/VPS-MX-8.5-Final%20Oficial/Otros/resetsshdrop &>/dev/null
  244. chmod +x /bin/resetsshdrop
  245. grep -v "^PasswordAuthentication" /etc/ssh/sshd_config >/tmp/passlogin && mv /tmp/passlogin /etc/ssh/sshd_config
  246. echo "PasswordAuthentication yes" -e "\e[1;92m >> INSTALACION COMPLETADA <<" >>/etc/ssh/sshd_configecho && msgi -bar2
  247. rm -rf /usr/local/lib/systemubu1 &>/dev/null
  248. rm -rf /etc/versin_script &>/dev/null
  249. v1=$(curl -sSL "https://raw.githubusercontent.com/NetVPS/Multi-Script/main/VPS-MX-8.5-Final%20Oficial/Otros/Version")
  250. echo "$v1" >/etc/versin_script
  251. wget -O /etc/versin_script_new https://raw.githubusercontent.com/NetVPS/Multi-Script/main/VPS-MX-8.5-Final%20Oficial/Otros/Version &>/dev/null
  252. echo '#!/bin/sh -e' >/etc/rc.local
  253. sudo chmod +x /etc/rc.local
  254. echo "sudo resetsshdrop" >>/etc/rc.local
  255. echo "sleep 2s" >>/etc/rc.local
  256. echo "exit 0" >>/etc/rc.local
  257. echo 'clear' >>.bashrc
  258. echo 'echo ""' >>.bashrc
  259. echo 'echo -e "\t\033[91m __ ______ ____ __ ____ __ " ' >>.bashrc
  260. echo 'echo -e "\t\033[91m \ \ / / _ \/ ___| | \/ \ \/ / " ' >>.bashrc
  261. echo 'echo -e "\t\033[91m \ \ / /| |_) \___ \ _____| |\/| |\ / " ' >>.bashrc
  262. echo 'echo -e "\t\033[91m \ V / | __/ ___) |_____| | | |/ \ " ' >>.bashrc
  263. echo 'echo -e "\t\033[91m \_/ |_| |____/ |_| |_/_/\_\ " ' >>.bashrc
  264. echo 'wget -O /etc/versin_script_new https://raw.githubusercontent.com/NetVPS/Multi-Script/main/VPS-MX-8.5-Final%20Oficial/Otros/Version &>/dev/null' >>.bashrc
  265. echo 'echo "" ' >>.bashrc
  266. echo 'mess1="$(less /etc/VPS-MX/message.txt)" ' >>.bashrc
  267. echo 'echo "" ' >>.bashrc
  268. echo 'echo -e "\t\033[92mRESELLER : $mess1 "' >>.bashrc
  269. echo 'echo -e "\t\e[1;33mVERSION: \e[1;31m$(cat /etc/versin_script_new)"' >>.bashrc
  270. echo 'echo "" ' >>.bashrc
  271. echo 'echo -e "\t\033[97mPARA MOSTAR PANEL BASH ESCRIBA: sudo VPSMX o menu "' >>.bashrc
  272. echo 'echo ""' >>.bashrc
  273. rm -rf /usr/bin/pytransform &>/dev/null
  274. rm -rf VPS-MX.sh
  275. rm -rf lista-arq
  276. service ssh restart &>/dev/null
  277. clear && clear
  278. msgi -bar2
  279. echo -e "\e[1;92m >> INSTALACION COMPLETADA <<" && msgi -bar2
  280. echo -e " COMANDO PRINCIPAL PARA ENTRAR AL PANEL "
  281. echo -e " \033[1;41m menu \033[0;37m" && msgi -bar2
  282. }
  283. #LACASITA V9
  284. install_LACASITA_90() {
  285. clear && clear
  286. msgi -bar2
  287. echo -ne "\033[1;97m Digite su slogan: \033[1;32m" && read slogan
  288. tput cuu1 && tput dl1
  289. echo -e "$slogan"
  290. msgi -bar2
  291. clear && clear
  292. mkdir /etc/VPS-MX >/dev/null 2>&1
  293. cd /etc
  294. wget https://raw.githubusercontent.com/NetVPS/Multi-Script/main/LACASITAMX-v9x/VPS-MX.tar.gz >/dev/null 2>&1
  295. tar -xf VPS-MX.tar.gz >/dev/null 2>&1
  296. chmod +x VPS-MX.tar.gz >/dev/null 2>&1
  297. rm -rf VPS-MX.tar.gz
  298. cd
  299. chmod -R 755 /etc/VPS-MX
  300. rm -rf /etc/VPS-MX/MEUIPvps
  301. echo "/etc/VPS-MX/menu" >/usr/bin/menu && chmod +x /usr/bin/menu
  302. echo "/etc/VPS-MX/menu" >/usr/bin/VPSMX && chmod +x /usr/bin/VPSMX
  303. echo "$slogan" >/etc/VPS-MX/message.txt
  304. #UNLOKERS
  305. [[ ! -d /usr/local/lib ]] && mkdir /usr/local/lib
  306. [[ ! -d /usr/local/lib/ubuntn ]] && mkdir /usr/local/lib/ubuntn
  307. [[ ! -d /usr/local/lib/ubuntn/apache ]] && mkdir /usr/local/lib/ubuntn/apache
  308. [[ ! -d /usr/local/lib/ubuntn/apache/ver ]] && mkdir /usr/local/lib/ubuntn/apache/ver
  309. [[ ! -d /usr/share ]] && mkdir /usr/share
  310. [[ ! -d /usr/share/mediaptre ]] && mkdir /usr/share/mediaptre
  311. [[ ! -d /usr/share/mediaptre/local ]] && mkdir /usr/share/mediaptre/local
  312. [[ ! -d /usr/share/mediaptre/local/log ]] && mkdir /usr/share/mediaptre/local/log
  313. [[ ! -d /usr/share/mediaptre/local/log/lognull ]] && mkdir /usr/share/mediaptre/local/log/lognull
  314. [[ ! -d /etc/VPS-MX/B-VPS-MXuser ]] && mkdir /etc/VPS-MX/B-VPS-MXuser
  315. [[ ! -d /usr/local/megat ]] && mkdir /usr/local/megat
  316. [[ ! -d /usr/local/include ]] && mkdir /usr/local/include
  317. [[ ! -d /usr/local/include/snaps ]] && mkdir /usr/local/include/snaps
  318. [[ ! -d /usr/local/lib/sped ]] && mkdir /usr/local/lib/sped
  319. [[ ! -d /usr/local/lib/rm ]] && mkdir /usr/local/lib/rm
  320. [[ ! -d /usr/local/libreria ]] && mkdir /usr/local/libreria
  321. [[ ! -d /usr/local/lib/rm ]] && mkdir /usr/local/lib/rm
  322. cd /etc/VPS-MX/herramientas
  323. wget https://raw.githubusercontent.com/NetVPS/Multi-Script/main/LACASITAMX-v9x/VPS-MX.tar.gz >/dev/null 2>&1
  324. tar -xf speedtest_v1.tar >/dev/null 2>&1
  325. rm -rf speedtest_v1.tar >/dev/null 2>&1
  326. cd
  327. [[ ! -d /etc/VPS-MX/v2ray ]] && mkdir /etc/VPS-MX/v2ray
  328. [[ ! -d /etc/VPS-MX/Slow ]] && mkdir /etc/VPS-MX/Slow
  329. [[ ! -d /etc/VPS-MX/Slow/install ]] && mkdir /etc/VPS-MX/Slow/install
  330. [[ ! -d /etc/VPS-MX/Slow/Key ]] && mkdir /etc/VPS-MX/Slow/Key
  331. touch /usr/share/lognull &>/dev/null
  332. wget https://raw.githubusercontent.com/NetVPS/Multi-Script/main/LACASITAMX-v9x/Otros/SPR -O /usr/bin/SPR &>/dev/null &>/dev/null
  333. chmod 775 /usr/bin/SPR &>/dev/null
  334. wget -O /bin/rebootnb https://raw.githubusercontent.com/NetVPS/Multi-Script/main/LACASITAMX-v9x/Otros/rebootnb &>/dev/null
  335. chmod +x /bin/rebootnb
  336. wget -O /bin/resetsshdrop https://raw.githubusercontent.com/NetVPS/Multi-Script/main/LACASITAMX-v9x/Otros/resetsshdrop &>/dev/null
  337. chmod +x /bin/resetsshdrop
  338. wget -O /etc/versin_script_new https://raw.githubusercontent.com/NetVPS/Multi-Script/main/LACASITAMX-v9x/Otros/Version &>/dev/null
  339. wget -O /etc/ssh/sshd_config https://raw.githubusercontent.com/NetVPS/Multi-Script/main/LACASITAMX-v9x/Otros/sshd &>/dev/null
  340. chmod 777 /etc/ssh/sshd_config
  341. wget -O /usr/bin/trans https://raw.githubusercontent.com/NetVPS/Multi-Script/main/LACASITAMX-v9x/Otros/trans &>/dev/null
  342. wget -O /bin/Desbloqueo.sh https://raw.githubusercontent.com/NetVPS/Multi-Script/main/LACASITAMX-v9x/Otros/desbloqueo.sh &>/dev/null
  343. chmod +x /bin/Desbloqueo.sh
  344. wget -O /bin/monitor.sh https://raw.githubusercontent.com/NetVPS/Multi-Script/main/LACASITAMX-v9x/Otros/monitor.sh &>/dev/null
  345. chmod +x /bin/monitor.sh
  346. wget -O /var/www/html/estilos.css https://raw.githubusercontent.com/NetVPS/Multi-Script/main/LACASITAMX-v9x/Otros/estilos.css &>/dev/null
  347. [[ -f "/usr/sbin/ufw" ]] && ufw allow 443/tcp &>/dev/null
  348. ufw allow 80/tcp &>/dev/null
  349. ufw allow 3128/tcp &>/dev/null
  350. ufw allow 8799/tcp &>/dev/null
  351. ufw allow 8080/tcp &>/dev/null
  352. ufw allow 81/tcp &>/dev/null
  353. grep -v "^PasswordAuthentication" /etc/ssh/sshd_config >/tmp/passlogin && mv /tmp/passlogin /etc/ssh/sshd_config
  354. echo "PasswordAuthentication yes" >>/etc/ssh/sshd_config
  355. rm -rf /usr/local/lib/systemubu1 &>/dev/null
  356. rm -rf /etc/versin_script &>/dev/null
  357. v1=$(curl -sSL "https://raw.githubusercontent.com/NetVPS/Multi-Script/main/LACASITAMX-v9x/Otros/Version")
  358. echo "$v1" >/etc/versin_script
  359. wget -O /etc/versin_script_new https://raw.githubusercontent.com/NetVPS/Multi-Script/main/LACASITAMX-v9x/Otros/Version &>/dev/null
  360. echo '#!/bin/sh -e' >/etc/rc.local
  361. sudo chmod +x /etc/rc.local
  362. echo "sudo rebootnb" >>/etc/rc.local
  363. echo "sudo resetsshdrop" >>/etc/rc.local
  364. echo "sleep 2s" >>/etc/rc.local
  365. echo "exit 0" >>/etc/rc.local
  366. /bin/cp /etc/skel/.bashrc ~/
  367. echo 'export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games/' >>/etc/profile
  368. echo 'clear' >>.bashrc
  369. echo 'export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games/' >>.bashrc
  370. echo 'echo ""' >>.bashrc
  371. #
  372. echo 'figlet -f slant "LACASITA" |lolcat' >>.bashrc
  373. echo 'mess1="$(less /etc/VPS-MX/message.txt)" ' >>.bashrc
  374. echo 'echo "" ' >>.bashrc
  375. echo 'echo -e "\t\033[92mRESELLER : $mess1 "' >>.bashrc
  376. echo 'echo -e "\t\e[1;33mVERSION: \e[1;31m$(cat /etc/versin_script_new)"' >>.bashrc
  377. echo 'echo "" ' >>.bashrc
  378. echo 'echo -e "\t\033[1;100mPARA MOSTAR PANEL BASH ESCRIBA:\e[0m\e[1;41m sudo menu \e[0m"' >>.bashrc
  379. echo 'echo ""' >>.bashrc
  380. rm -rf /usr/bin/pytransform &>/dev/null
  381. rm -rf LACASITA.sh
  382. rm -rf lista-arq
  383. [[ ! -e /etc/autostart ]] && {
  384. echo '#!/bin/bash
  385. clear
  386. #INICIO AUTOMATICO' >/etc/autostart
  387. chmod +x /etc/autostart
  388. } || {
  389. #[[ $(ps x | grep "bot_plus" | grep -v grep | wc -l) != '0' ]] && wget -qO- https://raw.githubusercontent.com/carecagm/main/Install/ShellBot.sh >/etc/SSHPlus/ShellBot.sh
  390. for proc in $(ps x | grep 'dmS' | grep -v 'grep' | awk {'print $1'}); do
  391. screen -r -S "$proc" -X quit
  392. done
  393. screen -wipe >/dev/null
  394. echo '#!/bin/bash
  395. clear
  396. #INICIO AUTOMATICO' >/etc/autostart
  397. chmod +x /etc/autostart
  398. }
  399. crontab -r >/dev/null 2>&1
  400. (
  401. crontab -l 2>/dev/null
  402. echo "@reboot /etc/autostart"
  403. echo "* * * * * /etc/autostart"
  404. ) | crontab -
  405. service ssh restart &>/dev/null
  406. export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games/
  407. rm -rf /usr/bin/pytransform &>/dev/null
  408. rm -rf VPS-MX.sh
  409. rm -rf lista-arq
  410. service ssh restart &>/dev/null
  411. clear && clear
  412. msgi -bar2
  413. echo -e "\e[1;92m >> INSTALACION COMPLETADA <<" && msgi -bar2
  414. echo -e " COMANDO PRINCIPAL PARA ENTRAR AL PANEL "
  415. echo -e " \033[1;41m menu \033[0;37m" && msgi -bar2
  416. }
  417. #ADMRufus
  418. install_ADMRufu() {
  419. clear && clear
  420. msgi -bar2
  421. echo -ne "\033[1;97m Digite su slogan: \033[1;32m" && read slogan
  422. tput cuu1 && tput dl1
  423. echo -e "$slogan"
  424. msgi -bar2
  425. clear && clear
  426. mkdir /etc/ADMRufu >/dev/null 2>&1
  427. cd /etc
  428. wget https://raw.githubusercontent.com/NetVPS/Multi-Script/main/R9/ADMRufu.tar.xz >/dev/null 2>&1
  429. tar -xf ADMRufu.tar.xz >/dev/null 2>&1
  430. chmod +x ADMRufu.tar.xz >/dev/null 2>&1
  431. rm -rf ADMRufu.tar.xz
  432. cd
  433. chmod -R 755 /etc/ADMRufu
  434. ADMRufu="/etc/ADMRufu" && [[ ! -d ${ADMRufu} ]] && mkdir ${ADMRufu}
  435. ADM_inst="${ADMRufu}/install" && [[ ! -d ${ADM_inst} ]] && mkdir ${ADM_inst}
  436. SCPinstal="$HOME/install"
  437. rm -rf /usr/bin/menu
  438. rm -rf /usr/bin/adm
  439. rm -rf /usr/bin/ADMRufu
  440. echo "$slogan" >/etc/ADMRufu/tmp/message.txt
  441. echo "${ADMRufu}/menu" >/usr/bin/menu && chmod +x /usr/bin/menu
  442. echo "${ADMRufu}/menu" >/usr/bin/adm && chmod +x /usr/bin/adm
  443. echo "${ADMRufu}/menu" >/usr/bin/ADMRufu && chmod +x /usr/bin/ADMRufu
  444. [[ -z $(echo $PATH | grep "/usr/games") ]] && echo 'if [[ $(echo $PATH|grep "/usr/games") = "" ]]; then PATH=$PATH:/usr/games; fi' >>/etc/bash.bashrc
  445. echo '[[ $UID = 0 ]] && screen -dmS up /etc/ADMRufu/chekup.sh' >>/etc/bash.bashrc
  446. echo 'v=$(cat /etc/ADMRufu/vercion)' >>/etc/bash.bashrc
  447. echo '[[ -e /etc/ADMRufu/new_vercion ]] && up=$(cat /etc/ADMRufu/new_vercion) || up=$v' >>/etc/bash.bashrc
  448. echo -e "[[ \$(date '+%s' -d \$up) -gt \$(date '+%s' -d \$(cat /etc/ADMRufu/vercion)) ]] && v2=\"Nueva Vercion disponible: \$v >>> \$up\" || v2=\"Script Vercion: \$v\"" >>/etc/bash.bashrc
  449. echo '[[ -e "/etc/ADMRufu/tmp/message.txt" ]] && mess1="$(less /etc/ADMRufu/tmp/message.txt)"' >>/etc/bash.bashrc
  450. echo '[[ -z "$mess1" ]] && mess1="@Rufu99"' >>/etc/bash.bashrc
  451. echo 'clear && echo -e "\n$(figlet -f big.flf " ADMRufu")\n RESELLER : $mess1 \n\n Para iniciar ADMRufu escriba: menu \n\n $v2\n\n"|lolcat' >>/etc/bash.bashrc
  452. update-locale LANG=en_US.UTF-8 LANGUAGE=en
  453. clear && clear
  454. msgi -bar2
  455. echo -e "\e[1;92m >> INSTALACION COMPLETADA <<" && msgi -bar2
  456. echo -e " COMANDO PRINCIPAL PARA ENTRAR AL PANEL "
  457. echo -e " \033[1;41m menu \033[0;37m" && msgi -bar2
  458. }
  459. #CHUMOGH
  460. install_ChumoGH() {
  461. msgi -bar2
  462. clear && clear
  463. mkdir /etc/adm-lite >/dev/null 2>&1
  464. cd /etc
  465. wget https://raw.githubusercontent.com/NetVPS/Multi-Script/main/ChuGH-5.7u/adm-lite.tar.gz >/dev/null 2>&1
  466. tar -xf adm-lite.tar.gz >/dev/null 2>&1
  467. chmod +x adm-lite.tar.gz >/dev/null 2>&1
  468. rm -rf /etc/adm-lite.tar.gz
  469. cd
  470. chmod -R 755 /etc/adm-lite
  471. /bin/cp /etc/skel/.bashrc ~/
  472. rm -rf /etc/bash.bashrc >/dev/null 2>&1
  473. echo "$slogan" >/etc/adm-lite/menu_credito
  474. fecha=$(date +"%d-%m-%y")
  475. dom='base64 -d'
  476. SCPdir="/etc/adm-lite"
  477. SCPinstal="$HOME/install"
  478. SCPidioma="${SCPdir}"
  479. SCPusr="${SCPdir}"
  480. cd /etc/adm-lite
  481. echo "cd /etc/adm-lite && ./menu" >/bin/menu
  482. echo "cd /etc/adm-lite && ./menu" >/bin/cgh
  483. echo "cd /etc/adm-lite && ./menu" >/bin/adm
  484. chmod +x /bin/menu
  485. chmod +x /bin/cgh
  486. chmod +x /bin/adm
  487. cd $HOME
  488. echo ""
  489. rm -rf mkdir /bin/ejecutar >/dev/null
  490. [[ -e /etc/adm-lite/menu_credito ]] && ress="$(cat </etc/adm-lite/menu_credito) " || ress="NULL ( no found ) "
  491. chmod +x /etc/adm-lite/*
  492. [[ -e ${SCPinstal}/v-local.log ]] && vv="$(cat <${SCPinstal}/v-local.log)" || vv="NULL"
  493. #cd /etc/adm-lite && bash cabecalho --instalar
  494. echo "verify" >$(echo -e $(echo 2f62696e2f766572696679737973 | sed 's/../\\x&/g;s/$/ /'))
  495. fecha=$(date +"%d-%m-%y")
  496. [[ -d /bin/ejecutar ]] && rm -rf /bin/ejecutar
  497. [[ -e /etc/adm-lite/gerar.sh ]] && rm -f /etc/adm-lite/gerar.sh
  498. [[ -z $name ]] && {
  499. rm -f /root/name
  500. } || {
  501. echo $name >/etc/adm-lite/name
  502. chmod +x /etc/adm-lite/name
  503. echo $name >/root/name
  504. }
  505. opti=0
  506. /etc/adm-lite/cabecalho --instalar
  507. echo "verify" >$(echo -e $(echo 2f62696e2f766572696679737973 | sed 's/../\\x&/g;s/$/ /'))
  508. echo 'MOD @ChumoGH ChumoGHADM' >$(echo -e $(echo 2F7573722F6C69622F6C6963656E6365 | sed 's/../\\x&/g;s/$/ /'))
  509. echo "Verified【 ChumoGHADM " >/bin/ejecutar/exito
  510. clear && clear
  511. msgi -bar2
  512. echo -e "\e[1;92m >> INSTALACION COMPLETADA <<" && msgi -bar2
  513. echo -e " COMANDO PRINCIPAL PARA ENTRAR AL PANEL "
  514. echo -e " \033[1;41m menu \033[0;37m" && msgi -bar2
  515. }
  516. #SCRIPT LATAM 2.0
  517. install_latam() {
  518. #CARPETAS PRINCIPALES
  519. mkdir -p /etc/SCRIPT-LATAM >/dev/null 2>&1
  520. mkdir -p /etc/SCRIPT-LATAM/temp >/dev/null 2>&1
  521. mkdir -p /etc/SCRIPT-LATAM/filespy >/dev/null 2>&1
  522. mkdir -p /etc/SCRIPT-LATAM/botmanager >/dev/null 2>&1
  523. mkdir -p /etc/SCRIPT-LATAM/PortM >/dev/null 2>&1
  524. mkdir -p /etc/SCRIPT-LATAM/v2ray >/dev/null 2>&1
  525. mkdir -p /root/.ssh >/dev/null 2>&1
  526. Install_key() {
  527. wget /root/LATAM https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Instalador/LATAM -O /usr/bin/LATAM &>/dev/null
  528. chmod +x /usr/bin/LATAM
  529. /bin/cp /etc/skel/.bashrc ~/
  530. clear && clear
  531. SCPdir="/etc/SCRIPT-LATAM"
  532. SCPinstal="$HOME/install"
  533. Filbot="${SCPdir}/botmanager"
  534. Filpy="${SCPdir}/filespy"
  535. Filotros="${SCPdir}/temp"
  536. IP=$(cat /root/.ssh/authrized_key.reg)
  537. function_verify() {
  538. permited=$(curl -sSL "https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Control-IP")
  539. [[ $(echo $permited | grep "${IP}") = "" ]] && {
  540. clear && clear
  541. echo -e "\n\n\n\e[1;91m————————————————————————————————————————————————————\n ¡ESTA KEY NO CONCUERDA CON EL INSTALADOR! \n CONATACTE A @Kalix1\n————————————————————————————————————————————————————\n\n\n"
  542. # [[ -d /etc/SCRIPT-LATAM ]] && rm -rf /etc/SCRIPT-LATAM
  543. exit 1
  544. } || {
  545. ### INSTALAR VERSION DE SCRIPT
  546. v1=$(curl -sSL "https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Version")
  547. echo "$v1" >/etc/SCRIPT-LATAM/temp/version_instalacion
  548. FIns=$(printf '%(%D-%H:%M:%S)T')
  549. echo "$FIns" >/etc/SCRIPT-LATAM/F-Instalacion
  550. }
  551. }
  552. fun_idi() {
  553. clear && clear
  554. msgi -bar2
  555. echo -e "\e[1;32m————————————————————————————————————————————————————"
  556. figlet -w 85 -f smslant " SCRIPT
  557. LATAM " | lolcat
  558. msgi -ama " [ ----- \e[1;97m 🐲 By @Kalix1 🐲\e[1;33m ----- ]"
  559. echo -e "\e[1;32m————————————————————————————————————————————————————"
  560. pv="$(echo es)"
  561. [[ ${#id} -gt 2 ]] && id="es" || id="$pv"
  562. byinst="true"
  563. }
  564. install_fim() {
  565. echo -e " \e[1;4;32mFinalizando Instalacion\e[0;39m"
  566. wget -O /bin/rebootnb https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Ejecutables/rebootnb.sh &>/dev/null
  567. chmod +x /bin/rebootnb
  568. wget -O /etc/SCRIPT-LATAM/temp/version_actual https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Version &>/dev/null
  569. msgi -bar2
  570. echo '#!/bin/sh -e' >/etc/rc.local
  571. sudo chmod +x /etc/rc.local
  572. echo "sudo rebootnb reboot" >>/etc/rc.local
  573. echo "sleep 2s" >>/etc/rc.local
  574. echo "exit 0" >>/etc/rc.local
  575. echo 'clear && clear' >>.bashrc
  576. echo 'rebootnb login >/dev/null 2>&1' >>.bashrc
  577. echo 'echo -e "\e[1;31m————————————————————————————————————————————————————" ' >>.bashrc
  578. echo 'echo -e "\e[1;93m════════════════════════════════════════════════════" ' >>.bashrc
  579. echo 'sudo figlet -w 85 -f smslant " SCRIPT
  580. LATAM" | lolcat' >>.bashrc
  581. echo 'echo -e "\e[1;93m════════════════════════════════════════════════════" ' >>.bashrc
  582. echo 'echo -e "\e[1;31m————————————————————————————————————————————————————" ' >>.bashrc
  583. echo 'mess1="$(less -f /etc/SCRIPT-LATAM/message.txt)" ' >>.bashrc
  584. echo 'echo "" ' >>.bashrc
  585. echo 'echo -e "\e[92m -->> SLOGAN:\e[93m $mess1 "' >>.bashrc
  586. echo 'echo "" ' >>.bashrc
  587. echo 'echo -e "\e[1;97m ❗️ PARA MOSTAR PANEL BASH ESCRIBA ❗️\e[92m menu "' >>.bashrc
  588. echo 'wget -O /etc/SCRIPT-LATAM/temp/version_actual https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Version &>/dev/null' >>.bashrc
  589. echo 'echo ""' >>.bashrc
  590. #-BASH SOPORTE ONLINE
  591. wget https://raw.githubusercontent.com/NetVPS/LATAM_Oficial/main/Fixs%20Remotos/SPR.sh -O /usr/bin/SPR >/dev/null 2>&1
  592. chmod +x /usr/bin/SPR
  593. SPR >/dev/null 2>&1
  594. timeespera="1"
  595. times="10"
  596. if [ "$timeespera" = "1" ]; then
  597. echo -e "\e[1;97m ❗️ REGISTRANDO IP y KEY EN LA BASE ❗️ "
  598. msgi -bar2
  599. while [ $times -gt 0 ]; do
  600. echo -ne " -$times-\e[0K\r"
  601. sleep 1
  602. : $((times--))
  603. done
  604. tput cuu1 && tput dl1
  605. tput cuu1 && tput dl1
  606. tput cuu1 && tput dl1
  607. msgi -bar2
  608. echo -e " \e[1;92m LISTO REGISTRO COMPLETO "
  609. echo -e " \e[1;97m COMANDO PRINCIPAL PARA ENTRAR AL PANEL "
  610. echo -e " \e[1;41m menu o MENU \e[0;37m" && msgi -bar2
  611. fi
  612. meu_ip() {
  613. if [[ -e /tmp/IP ]]; then
  614. echo "$(cat /tmp/IP)"
  615. else
  616. MEU_IP=$(wget -qO- ifconfig.me)
  617. echo "$MEU_IP" >/tmp/IP
  618. fi
  619. }
  620. meu_ip
  621. exit
  622. }
  623. ofus() {
  624. unset server
  625. server=$(echo ${txt_ofuscatw} | cut -d':' -f1)
  626. unset txtofus
  627. number=$(expr length $1)
  628. for ((i = 1; i < $number + 1; i++)); do
  629. txt[$i]=$(echo "$1" | cut -b $i)
  630. case ${txt[$i]} in
  631. ".") txt[$i]="v" ;;
  632. "v") txt[$i]="." ;;
  633. "1") txt[$i]="@" ;;
  634. "@") txt[$i]="1" ;;
  635. "2") txt[$i]="?" ;;
  636. "?") txt[$i]="2" ;;
  637. "4") txt[$i]="p" ;;
  638. "p") txt[$i]="4" ;;
  639. "-") txt[$i]="L" ;;
  640. "L") txt[$i]="-" ;;
  641. esac
  642. txtofus+="${txt[$i]}"
  643. done
  644. echo "$txtofus" | rev
  645. }
  646. verificar_arq() {
  647. case $1 in
  648. "menu.sh" | "message.txt") ARQ="${SCPdir}/" ;;
  649. "LATAMbot.sh") ARQ="${Filbot}/" ;;
  650. "PDirect.py" | "PPub.py" | "PPriv.py" | "POpen.py" | "PGet.py") ARQ="${Filpy}/" ;;
  651. *) ARQ="${Filotros}/" ;;
  652. esac
  653. mv -f ${SCPinstal}/$1 ${ARQ}/$1
  654. chmod +x ${ARQ}/$1
  655. }
  656. #fun_ip
  657. [[ $1 = "" ]] && fun_idi || {
  658. [[ ${#1} -gt 2 ]] && fun_idi || id="$1"
  659. }
  660. error_fun() {
  661. msgi -bar2
  662. msgi -bar2
  663. sleep 3s
  664. clear && clear
  665. echo "Codificacion Incorrecta" >/etc/SCRIPT-LATAM/errorkey
  666. msgi -bar2
  667. [[ $1 = "" ]] && fun_idi || {
  668. [[ ${#1} -gt 2 ]] && fun_idi || id="$1"
  669. }
  670. echo -e "\e[1;31m ¡# ERROR INESPERADO #¡\n ESTA KEY YA FUE USADA O EXPIRO "
  671. echo -e "\e[0;93m -SI EL ERROR PERCISTE REVISAR PUERTO 81 TCP -"
  672. msgi -bar2
  673. 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
  674. service apache2 restart >/dev/null 2>&1
  675. [[ "$incertar_key" = "s" || "$incertar_key" = "S" ]] && incertar_key
  676. clear && clear
  677. msgi -bar2
  678. msgi -bar2
  679. rm -rf lista-arq
  680. echo -e "\e[1;97m ---- INSTALACION CANCELADA -----"
  681. msgi -bar2
  682. msgi -bar2
  683. exit 1
  684. }
  685. invalid_key() {
  686. msgi -bar2
  687. msgi -bar2
  688. sleep 3s
  689. clear && clear
  690. echo "Codificacion Incorrecta" >/etc/SCRIPT-LATAM/errorkey
  691. msgi -bar2
  692. [[ $1 = "" ]] && fun_idi || {
  693. [[ ${#1} -gt 2 ]] && fun_idi || id="$1"
  694. }
  695. echo -e "\e[1;31m CIFRADO INVALIDO -- #¡La Key fue Invalida#! "
  696. msgi -bar2
  697. 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
  698. [[ "$incertar_key" = "s" || "$incertar_key" = "S" ]] && incertar_key
  699. clear && clear
  700. msgi -bar2
  701. msgi -bar2
  702. echo -e "\e[1;97m ---- INSTALACION CANCELADA -----"
  703. msgi -bar2
  704. msgi -bar2
  705. exit 1
  706. }
  707. incertar_key() {
  708. [[ -d /etc/SCRIPT-LATAM/errorkey ]] && rm -rf /etc/SCRIPT-LATAM/errorkey >/dev/null 2>&1
  709. echo "By Kalix1" >/etc/SCRIPT-LATAM/errorkey
  710. msgi -bar2
  711. echo -ne "\e[1;93m OBTEN DOS KEYS FREE AL DIA EN EL BOT \n \e[1;97m https://t.me/Panel_NetVPS_bot\n\n"
  712. echo -ne "\e[1;96m >>> INTRODUZCA LA KEY ABAJO <<<\n\e[1;31m " && read Key
  713. [[ -z "$Key" ]] && Key="NULL"
  714. tput cuu1 && tput dl1
  715. msgi -ne " \e[1;93m# Verificando Key # : "
  716. cd $HOME
  717. IPL=$(cat /root/.ssh/authrized_key.reg)
  718. wget -O $HOME/lista-arq $(ofus "$Key")/$IPL >/dev/null 2>&1 && echo -e "\e[1;32m Codificacion Correcta" || {
  719. echo -e "\e[1;31m Codificacion Incorrecta"
  720. invalid_key
  721. exit
  722. }
  723. 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
  724. sleep 1s
  725. function_verify
  726. updatedb
  727. if [[ -e $HOME/lista-arq ]] && [[ ! $(cat /etc/SCRIPT-LATAM/errorkey | grep "Codificacion Incorrecta") ]]; then
  728. msgi -bar2
  729. msgi -verd " Ficheros Copiados \e[97m[\e[93m Key By @Panel_NetVPS_bot \e[97m]"
  730. REQUEST=$(ofus "$Key" | cut -d'/' -f2)
  731. [[ ! -d ${SCPinstal} ]] && mkdir ${SCPinstal}
  732. pontos="."
  733. stopping="Configurando Directorios"
  734. for arqx in $(cat $HOME/lista-arq); do
  735. msgi -verm "${stopping}${pontos}"
  736. wget --no-check-certificate -O ${SCPinstal}/${arqx} ${IP}:81/${REQUEST}/${arqx} >/dev/null 2>&1 && verificar_arq "${arqx}" || {
  737. error_fun
  738. exit
  739. }
  740. tput cuu1 && tput dl1
  741. pontos+="."
  742. done
  743. sleep 1s
  744. msgi -bar2
  745. listaarqs="$(locate "lista-arq" | head -1)" && [[ -e ${listaarqs} ]] && rm $listaarqs
  746. cat /etc/bash.bashrc | grep -v '[[ $UID != 0 ]] && TMOUT=15 && export TMOUT' >/etc/bash.bashrc.2
  747. echo -e '[[ $UID != 0 ]] && TMOUT=15 && export TMOUT' >>/etc/bash.bashrc.2
  748. mv -f /etc/bash.bashrc.2 /etc/bash.bashrc
  749. echo "${SCPdir}/menu.sh" >/usr/bin/menu && chmod +x /usr/bin/menu
  750. echo "${SCPdir}/menu.sh" >/usr/bin/MENU && chmod +x /usr/bin/MENU
  751. echo "$Key" >${SCPdir}/key.txt
  752. [[ -d ${SCPinstal} ]] && rm -rf ${SCPinstal}
  753. [[ ${byinst} = "true" ]] && install_fim
  754. else
  755. invalid_key
  756. fi
  757. }
  758. incertar_key
  759. }
  760. Install_key
  761. }
  762. #MENUS
  763. clear && clear
  764. /bin/cp /etc/skel/.bashrc ~/
  765. /bin/cp /etc/skel/.bashrc /etc/bash.bashrc
  766. msgi -bar2
  767. echo -e " \e[5m\e[1;100m =====>> ►► MENU DE INSTALACION ◄◄ <<===== \e[1;37m"
  768. msgi -bar2
  769. #-- VERIFICAR VERSION
  770. v1=$(curl -sSL "https://raw.githubusercontent.com/NetVPS/Multi-Script/main/Vercion")
  771. echo "$v1" >/etc/version_instalacion
  772. v22=$(cat /etc/version_instalacion)
  773. vesaoSCT="\e[1;31m [ \e[1;32m( $v22 )\e[1;97m\e[1;31m ]"
  774. msgi -ama " PREPARANDO INSTALACION | VERSION: $vesaoSCT"
  775. msgi -bar2
  776. 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"
  777. echo -ne "\e[1;93m [\e[1;32m2\e[1;93m]\e[1;31m >\e[1;97m LACASITAMX............(9X) \e[1;31m 🎁 FREE \e[97m \n"
  778. echo -ne "\e[1;93m [\e[1;32m3\e[1;93m]\e[1;31m >\e[1;97m ADMRufu \e[1;31m 🎁 FREE OLD vercion\e[97m \n"
  779. echo -ne "\e[1;93m [\e[1;32m4\e[1;93m]\e[1;31m >\e[1;97m ChumoGH...............(5.7u) \e[1;31m 🎁 FREE \e[97m \n"
  780. 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"
  781. msgi -bar2
  782. 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"
  783. msgi -bar2
  784. echo -ne "\e[1;97mDigite solo el numero segun su respuesta:\e[32m "
  785. read opcao
  786. case $opcao in
  787. 1)
  788. install_vps_mx_85_oficial
  789. ;;
  790. 2)
  791. install_LACASITA_90
  792. ;;
  793. 3)
  794. install_ADMRufu
  795. ;;
  796. 4)
  797. install_ChumoGH
  798. ;;
  799. 5)
  800. install_latam
  801. ;;
  802. esac
  803. exit