install.sh 34 KB

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