1
0
mirror of https://github.com/AAAAAEXQOSyIpN2JZ0ehUQ/SSHPLUS-MANAGER-FREE.git synced 2024-11-14 09:47:11 +00:00
SSHPLUS-MANAGER-FREE/Install/Multi-Instalador/sshplus.sh
AAAAAEXQOSyIpN2JZ0ehUQ bae3d714b6 Update Script
2022-02-09 13:42:00 -03:00

183 lines
5.6 KiB
Bash

#!/bin/bash
barra="\033[0m\e[34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
[[ ! -e /bin/mip ]] && echo "/root/sshplus.sh" > /bin/mip && chmod +x /bin/mip #ACCESO RAPIDO
fun_bar () {
comando[0]="$1"
comando[1]="$2"
(
[[ -e $HOME/fim ]] && rm $HOME/fim
${comando[0]} > /dev/null 2>&1
${comando[1]} > /dev/null 2>&1
touch $HOME/fim
) > /dev/null 2>&1 &
tput civis
echo -ne " \033[1;33mAGUARDE \033[1;37m- \033[1;33m["
while true; do
for((i=0; i<18; i++)); do
echo -ne "\033[1;31m#"
sleep 0.1s
done
[[ -e $HOME/fim ]] && rm $HOME/fim && break
echo -e "\033[1;33m]"
sleep 1s
tput cuu1
tput dl1
echo -ne " \033[1;33mAGUARDE \033[1;37m- \033[1;33m["
done
echo -e "\033[1;33m]\033[1;37m -\033[1;32m OK !\033[1;37m"
tput cnorm
}
IP=$(cat /etc/IP)
x="ok"
menu ()
{
#MANAGER SCRIPTS
sshplusfree () {
apt-get update -y; apt-get upgrade -y; wget https://raw.githubusercontent.com/AAAAAEXQOSyIpN2JZ0ehUQ/SSHPLUS-MANAGER-FREE/master/Plus; chmod 777 Plus; ./Plus
}
sshpluskey () {
bash <(wget -qO- sshplus.xyz/scripts/sshplus.sh)
}
#PAINEL WEB SCRIPTS
panel_v20 () {
wget https://raw.githubusercontent.com/AAAAAEXQOSyIpN2JZ0ehUQ/SSHPLUS-MANAGER-FREE/master/Install/Panel_Web/panel_v20/install > /dev/null 2>&1; chmod 777 install* && ./install*
}
panel_v23_2 () {
wget https://raw.githubusercontent.com/AAAAAEXQOSyIpN2JZ0ehUQ/SSHPLUS-MANAGER-FREE/master/Install/Panel_Web/panel_v23_2/install > /dev/null 2>&1; chmod +x install; ./install
}
panel_v25 () {
wget https://raw.githubusercontent.com/AAAAAEXQOSyIpN2JZ0ehUQ/SSHPLUS-MANAGER-FREE/master/Install/Panel_Web/panel_v25/install > /dev/null 2>&1; chmod +x install; ./install
}
#UPDATE VIP-VPS v23 a v25
panel_update2325 () {
wget https://raw.githubusercontent.com/AAAAAEXQOSyIpN2JZ0ehUQ/SSHPLUS-MANAGER-FREE/master/Install/Panel_Web/panel_v23_2/atu-v23-p-v25 > /dev/null 2>&1; chmod +x atu-v23-p-v25; ./atu-v23-p-v25
}
#PANEL WEB VERSIONES
panelwebversiones () {
apt-get update -y; apt-get upgrade -y; wget https://raw.githubusercontent.com/AAAAAEXQOSyIpN2JZ0ehUQ/SSHPLUS-MANAGER-FREE/master/Install/Panel_Web/Panelweb.sh; chmod +x Panelweb.sh; ./Panelweb.sh
}
#GEYGEN SSHPLUS MANAGER
keyssh () {
apt-get update -y; apt-get upgrade -y; wget https://raw.githubusercontent.com/AAAAAEXQOSyIpN2JZ0ehUQ/SSHPLUS-MANAGER-FREE/master/Install/Generador/instgerador.sh; chmod 777 instgerador.sh* && ./instgerador.sh*
}
#TCP-SPEED
fun_tcpspeed () {
rm -rf $HOME/tcptweaker.sh* > /dev/null 2>&1; bash <(wget -qO- https://raw.githubusercontent.com/AAAAAEXQOSyIpN2JZ0ehUQ/SSHPLUS-MANAGER-FREE/master/Install/TCP-Speed/tcptweaker.sh)
}
#OPCIONES DE SISTEMA
atualizar () {
echo ""
fun_bar "apt-get update -y"
fun_bar "apt-get upgrade -y"
fun_att () {
service ssh restart > /dev/null 2>&1
rm -rf $HOME/sshplus.sh* > /dev/null 2>&1
rm -rf /bin/mip > /dev/null 2>&1
wget https://raw.githubusercontent.com/AAAAAEXQOSyIpN2JZ0ehUQ/SSHPLUS-MANAGER-FREE/master/Install/Multi-Instalador/sshplus.sh > /dev/null 2>&1
}
fun_bar 'fun_att'
echo ""
echo -e "\033[1;33m UPDATE COM SUCESSO -\033[1;32m OK !\033[1;37m"
sleep 4s
chmod +x sshplus.sh; ./sshplus.sh
}
remove_multiscripts () {
rm -rf $HOME/sshplus.sh* && rm -rf /bin/mip
}
while true $x != "ok"
do
_usor=$(printf '%-8s' "$(free -m | awk 'NR==2{printf "%.2f%%", $3*100/$2 }')")
_usop=$(printf '%-1s' "$(top -bn1 | awk '/Cpu/ { cpu = "" 100 - $8 "%" }; END { print cpu }')")
clear
echo -e "$barra"
echo -e "\E[41;1;37mMULTI-INSTALADOR PLUS \033[1;32m[\033[1;37m VERSAO: r021 \033[1;32m]\E[0m"
echo -e "$barra"
echo ""
echo -e "\033[1;31m[\033[1;36m01\033[1;31m] \033[1;33mSSHPLUS MANAGER FREE \033[1;32m(FREE) \033[37m∆ "
echo -e "\033[1;31m[\033[1;36m02\033[1;31m] \033[1;33mSSHPLUS MANAGER OFICIAL \033[1;31m(KEYS) "
echo -e "\033[1;31m[\033[1;36m03\033[1;31m] \033[1;33mPAINEL SSHPLUS WEB V.20 \033[1;32m(FREE) "
echo -e "\033[1;31m[\033[1;36m04\033[1;31m] \033[1;33mPAINEL VIP-VPS WEB V.23 \033[1;32m(FREE) "
echo -e "\033[1;31m[\033[1;36m05\033[1;31m] \033[1;33mPAINEL VIP-VPS WEB V.25 \033[1;32m(FREE) "
echo -e "\033[1;31m[\033[1;36m06\033[1;31m] \033[1;33mUPDATE VIP-VPS V.23 PARA V25 \033[1;32m(FREE) "
echo -e "\033[1;31m[\033[1;36m07\033[1;31m] \033[1;33mPAINEL REVENDA SSH (VERSIONES) \033[1;32m(FREE) "
echo -e "\033[1;31m[\033[1;36m08\033[1;31m] \033[1;33mGENERADOR KEY SSHPLUS MANAGER \033[1;32m(FREE) "
echo -e "\033[1;31m[\033[1;36m09\033[1;31m] \033[1;33mTCP-TWEAKER-1.0 (TCP-SPEED) \033[1;32m(FREE) "
echo -e "\033[1;31m[\033[1;36m10\033[1;31m] \033[1;35m[!] \033[1;32mACTUALIZAR \033[1;31mRam:\033[1;37m $_usor "
echo -e "\033[1;31m[\033[1;36m11\033[1;31m] \033[1;35m[!] \033[1;31mDESINSTALAR \033[1;35m[\033[1;37m MIP \033[1;35m] \033[1;31mNucleo:\033[1;37m $_usop "
echo -e "\033[1;31m[\033[1;36m00\033[1;31m] \033[1;37mSALIR \033[1;32m<\033[1;33m<\033[1;31m< \033[0m"
echo -e " \033[1;37m@AAAAAEXQOSyIpN2JZ0ehUQ\033[0m \033[0m"
echo -e "$barra"
echo ""
echo -ne "\033[1;32mOQUE DESEJA FAZER \033[1;33m?\033[1;31m?\033[1;37m : "; read x
case "$x" in
1 | 01)
clear
sshplusfree
exit;
;;
2 | 02)
clear
sshpluskey
exit;
;;
3 | 03)
clear
panel_v20
exit;
;;
4 | 04)
clear
panel_v23_2
exit;
;;
5 | 05)
clear
panel_v25
exit;
;;
6 | 06)
clear
panel_update2325
exit;
;;
7 | 07)
clear
panelwebversiones
exit;
;;
8 | 08)
clear
keyssh
exit;
;;
9 | 09)
clear
fun_tcpspeed
exit;
;;
10)
clear
atualizar
exit;
;;
11)
clear
remove_multiscripts
exit;
;;
0 | 00)
echo -e "\033[1;31mSaindo...\033[0m"
sleep 2
clear
exit;
;;
*)
echo -e "\n\033[1;31mOpcao invalida !\033[0m"
esac
done
}
menu
#fim