install.sh 34 KB

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