Start
This commit is contained in:
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
135
README.md
Normal file
135
README.md
Normal file
@@ -0,0 +1,135 @@
|
||||
Para instalar use o comando abaixo:
|
||||
|
||||
```sh
|
||||
bash <(wget -qO- https://raw.githubusercontent.com/Penguinehis/DragonCoreSSH-Beta/main/install.sh)
|
||||
```
|
||||
|
||||
Documentação para integração:
|
||||
|
||||
Criar usuario:
|
||||
|
||||
Validade deve estar em Dias
|
||||
Usuario não pode ser invalido para o sistema linux
|
||||
Senha precisa ser valido para o sistema linux
|
||||
Limite precisa ser um numero valido como 1~99999999
|
||||
|
||||
```sh
|
||||
php /opt/DragonCore/menu.php criaruser $validade $usuario $senha $limite
|
||||
```
|
||||
|
||||
Gerar teste:
|
||||
|
||||
Validade deve estar em minutos!
|
||||
|
||||
```sh
|
||||
php /opt/DragonCore/menu.php gerarteste $validade
|
||||
```
|
||||
|
||||
Deletar usuario:S
|
||||
|
||||
Usuario deve ser valido!
|
||||
|
||||
```sh
|
||||
php /opt/DragonCore/menu.php deluser $usuario
|
||||
```
|
||||
|
||||
Alterar validade:
|
||||
|
||||
Validade deve estar em dias!
|
||||
Usuario deve ser valido!
|
||||
|
||||
```sh
|
||||
php /opt/DragonCore/menu.php alterardata $usuario $validade
|
||||
```
|
||||
|
||||
Alterar limite:
|
||||
|
||||
Usuario deve ser valido!
|
||||
Limite precisa ser um numero valido como 1~99999999
|
||||
|
||||
```sh
|
||||
php /opt/DragonCore/menu.php uplimit $usuario $limite
|
||||
```
|
||||
|
||||
Verificar limite do usuario:
|
||||
|
||||
Usuario deve ser valido!
|
||||
|
||||
```sh
|
||||
php /opt/DragonCore/menu.php printlim2 $usuario
|
||||
```
|
||||
|
||||
Alterar senha:
|
||||
|
||||
Usuario deve ser valido!
|
||||
Senha precisa ser valido para o sistema linux
|
||||
|
||||
```sh
|
||||
php /opt/DragonCore/menu.php uppass $usuario $senha
|
||||
```
|
||||
|
||||
Remover expirados:
|
||||
|
||||
```sh
|
||||
php /opt/DragonCore/menu.php removeexpired
|
||||
```
|
||||
|
||||
Gerar Backup DragonCoreSSH
|
||||
|
||||
O backup se encontra na pasta /root
|
||||
|
||||
Nome: dragoncoressh.json
|
||||
|
||||
```sh
|
||||
php /opt/DragonCore/menu.php createbackup
|
||||
```
|
||||
|
||||
Restaurar backup usuarios:
|
||||
|
||||
```sh
|
||||
php /opt/DragonCore/menu.php restorebackupuser
|
||||
```
|
||||
|
||||
|
||||
Restaurar backup conexão:
|
||||
|
||||
```sh
|
||||
php /opt/DragonCore/menu.php restorebackupconnect
|
||||
```
|
||||
|
||||
Relatorio de usuarios
|
||||
|
||||
este relatorio mostrara todos usuarios senhas e limites
|
||||
|
||||
```sh
|
||||
php /opt/DragonCore/menu.php relatoriouser
|
||||
```
|
||||
|
||||
Checkar % de uso de Ram
|
||||
|
||||
```sh
|
||||
php /opt/DragonCore/menu.php ram
|
||||
```
|
||||
Checkar % de uso de CPU
|
||||
|
||||
```sh
|
||||
php /opt/DragonCore/menu.php cpu
|
||||
```
|
||||
|
||||
Usuarios criados
|
||||
|
||||
```sh
|
||||
php /opt/DragonCore/menu.php retrieveDataAndCount
|
||||
```
|
||||
|
||||
Usuarios Online
|
||||
|
||||
```sh
|
||||
php /opt/DragonCore/menu.php onlines
|
||||
```
|
||||
Uso de rede
|
||||
|
||||
```sh
|
||||
php /opt/DragonCore/menu.php network
|
||||
```
|
||||
Para suporte: https://t.me/dragoncoresshgp
|
||||
BIN
aarch64/ProxyDragon
Normal file
BIN
aarch64/ProxyDragon
Normal file
Binary file not shown.
BIN
aarch64/badvpn-udpgw
Normal file
BIN
aarch64/badvpn-udpgw
Normal file
Binary file not shown.
BIN
aarch64/dragon_go
Normal file
BIN
aarch64/dragon_go
Normal file
Binary file not shown.
BIN
aarch64/libcrypto.so.3
Normal file
BIN
aarch64/libcrypto.so.3
Normal file
Binary file not shown.
BIN
aarch64/libssl.so.3
Normal file
BIN
aarch64/libssl.so.3
Normal file
Binary file not shown.
797
aarch64/menu
Normal file
797
aarch64/menu
Normal file
@@ -0,0 +1,797 @@
|
||||
#!/bin/bash
|
||||
colorWhite="\033[0;37m"
|
||||
colorReset="\033[0m"
|
||||
menu() {
|
||||
echo -e "${colorWhite}"
|
||||
php /opt/DragonCore/menu.php menu
|
||||
echo -ne "> "; read cake
|
||||
#--------------------
|
||||
if [ "$cake" == "1" ]; then
|
||||
menuuser
|
||||
elif [ "$cake" == "2" ]; then
|
||||
menucon
|
||||
#--------------------
|
||||
elif [ "$cake" == "3" ]; then
|
||||
menuferrament
|
||||
#--------------------
|
||||
#--------------------
|
||||
#elif [ "$cake" == "4" ]; then
|
||||
#clear
|
||||
#echo "Analizando CPU/RAM/REDE ...";
|
||||
#php /opt/DragonCore/menu.php statusvps
|
||||
#echo -ne "Pressione enter para continuar"; read enter
|
||||
#menu
|
||||
#--------------------
|
||||
elif [ "$cake" == "0" ]; then
|
||||
clear
|
||||
echo -e "${colorReset}"
|
||||
exit
|
||||
else
|
||||
menu
|
||||
fi
|
||||
}
|
||||
|
||||
menucon(){
|
||||
clear
|
||||
php /opt/DragonCore/menu.php menuconnect
|
||||
echo -ne "> "; read cake
|
||||
#--------------------
|
||||
if [ -z "$cake" ]; then
|
||||
menucon
|
||||
#--------------------
|
||||
elif [ "$cake" == "0" ]; then
|
||||
menu
|
||||
#--------------------
|
||||
#elif [ "$cake" == "1" ]; then
|
||||
#wdragon="$(php /opt/DragonCore/menu.php pdragonon)"
|
||||
#if [ "$wdragon" == "ON" ];then
|
||||
#clear
|
||||
#echo -ne "Deseja Desativar o Dragon SSH Open? s/n: "; read sn
|
||||
#if [ "$sn" == "s" ];then
|
||||
#php /opt/DragonCore/menu.php pdragonstop
|
||||
#echo -ne "Pressione enter para continuar"; read enter
|
||||
#menucon
|
||||
#else
|
||||
#menucon
|
||||
#fi
|
||||
#menucon
|
||||
#else
|
||||
#clear
|
||||
#echo -ne "Porta > "; read port
|
||||
#if [ -z "$port" ]; then
|
||||
#clear
|
||||
#echo -ne "Porta não pode estar vazia!"; read enter
|
||||
#menucon
|
||||
#else
|
||||
#clear
|
||||
#php /opt/DragonCore/menu.php pdragon $port
|
||||
#echo ""
|
||||
#echo -ne "Pressione enter para continuar"; read enter
|
||||
#menucon
|
||||
#fi
|
||||
#fi
|
||||
elif [ "$cake" == "1" ]; then
|
||||
napon="$(php /opt/DragonCore/menu.php napsteron)"
|
||||
if [ "$napon" == "ON" ];then
|
||||
clear
|
||||
echo -ne "Deseja Desativar o Dragon X GO SSH? s/n: "; read sn
|
||||
if [ "$sn" == "s" ];then
|
||||
php /opt/DragonCore/menu.php napsterstop
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menucon
|
||||
else
|
||||
menucon
|
||||
fi
|
||||
menucon
|
||||
else
|
||||
clear
|
||||
echo -ne "Porta > "; read port
|
||||
if [ -z "$port" ]; then
|
||||
clear
|
||||
echo -ne "Porta não pode estar vazia!"; read enter
|
||||
menucon
|
||||
else
|
||||
clear
|
||||
php /opt/DragonCore/menu.php napster $port
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menucon
|
||||
fi
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "2" ]; then
|
||||
clear
|
||||
ston="$(dpkg -l | grep -q stunnel4 && echo 1 || echo 0)"
|
||||
if [ "$ston" == "1" ];then
|
||||
echo "Deseja remover o Stunnel4?"
|
||||
echo ""
|
||||
echo -ne "s/n: "; read sn
|
||||
if [ "$sn" == "s" ];then
|
||||
bash <(php /opt/DragonCore/menu.php installst)
|
||||
rm -rf /etc/stunnel
|
||||
echo ""
|
||||
echo "Stunnel4 Removido!"
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menucon
|
||||
else
|
||||
menucon
|
||||
fi
|
||||
menucon
|
||||
else
|
||||
clear
|
||||
echo -ne "Porta > "; read port
|
||||
if [ -z "$port" ]; then
|
||||
clear
|
||||
echo -ne "Porta não pode estar vazia!"; read enter
|
||||
menucon
|
||||
else
|
||||
clear
|
||||
bash <(php /opt/DragonCore/menu.php update)
|
||||
bash <(php /opt/DragonCore/menu.php upgrade)
|
||||
bash <(php /opt/DragonCore/menu.php installst)
|
||||
bash <(php /opt/DragonCore/menu.php createconf $port)
|
||||
bash <(php /opt/DragonCore/menu.php ssl_certif)
|
||||
bash <(php /opt/DragonCore/menu.php restartst)
|
||||
echo ""
|
||||
clear
|
||||
echo ""
|
||||
echo "Stunnel4 instalado porta: $port"
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menucon
|
||||
fi
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "3" ]; then
|
||||
clear
|
||||
ovpnin="$(php /opt/DragonCore/menu.php checkinstall)"
|
||||
if [ "$ovpnin" == "OK" ];then
|
||||
ovpnni="$(php /opt/DragonCore/menu.php checkovpon)"
|
||||
if [ "$ovpnni" == "OK" ];then
|
||||
clear
|
||||
echo -ne "Deseja Desativar o OVPN? (1) ou Remover? (2) 1/2: "; read sn
|
||||
if [ "$sn" == "1" ];then
|
||||
php /opt/DragonCore/menu.php stopovpn
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menucon
|
||||
elif [ "$sn" == "2" ];then
|
||||
php /opt/DragonCore/menu.php stopovpn
|
||||
apt purge openvpn -y && rm -rf /etc/openvpn
|
||||
menucon
|
||||
else
|
||||
menucon
|
||||
fi
|
||||
else
|
||||
clear
|
||||
bash <(php /opt/DragonCore/menu.php startovpn)
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menucon
|
||||
fi
|
||||
else
|
||||
bash <(php /opt/DragonCore/menu.php ovpnin)
|
||||
php /opt/DragonCore/menu.php setupOpenVPN
|
||||
bash <(php /opt/DragonCore/menu.php ipv4)
|
||||
bash <(php /opt/DragonCore/menu.php ipv42)
|
||||
php /opt/DragonCore/menu.php client
|
||||
php /opt/DragonCore/menu.php client2
|
||||
bash <(php /opt/DragonCore/menu.php startovpn)
|
||||
echo ""
|
||||
clear
|
||||
echo ""
|
||||
echo "OpenVPN instalado porta: 1194"
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menucon
|
||||
fi
|
||||
#--------------------
|
||||
#elif [ "$cake" == "5" ]; then
|
||||
#menuv2
|
||||
#--------------------
|
||||
elif [ "$cake" == "4" ]; then
|
||||
clear
|
||||
echo "Portas Ativas"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php infoport
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menucon
|
||||
else
|
||||
menucon
|
||||
fi
|
||||
}
|
||||
|
||||
menuferrament(){
|
||||
clear
|
||||
php /opt/DragonCore/menu.php menuferramenta
|
||||
echo -ne "> "; read cake
|
||||
#--------------------
|
||||
if [ -z "$cake" ]; then
|
||||
menuferrament
|
||||
#--------------------
|
||||
elif [ "$cake" == "0" ]; then
|
||||
menu
|
||||
#--------------------
|
||||
elif [ "$cake" == "1" ]; then
|
||||
clear
|
||||
echo ""
|
||||
echo -ne "Restaurar Backup? S/N > "; read att
|
||||
echo ""
|
||||
lowercaseInput=$(echo "$att" | tr '[:upper:]' '[:lower:]')
|
||||
if [[ "$lowercaseInput" == 'y' || "$lowercaseInput" == 's' ]]; then
|
||||
clear
|
||||
bk=$(php /opt/DragonCore/menu.php checkbackup)
|
||||
if [ "$bk" = "OK" ]; then
|
||||
php /opt/DragonCore/menu.php unpck
|
||||
php /opt/DragonCore/menu.php paswd
|
||||
php /opt/DragonCore/menu.php db
|
||||
rm -rf /root/temp
|
||||
echo ""
|
||||
echo "Restauracao concluida"
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
clear
|
||||
echo "backup.vps nao encontrado na pasta /root/"
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
fi
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "2" ]; then
|
||||
bdon="$(php /opt/DragonCore/menu.php badvpnon)"
|
||||
if [ "$bdon" == "ON" ];then
|
||||
clear
|
||||
echo -ne "Deseja Desativar o BadVpnX? s/n: "; read sn
|
||||
if [ "$sn" == "s" ];then
|
||||
bash <(php /opt/DragonCore/menu.php badvpnstop)
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
else
|
||||
clear
|
||||
bash <(php /opt/DragonCore/menu.php badvpn)
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
fi
|
||||
#--------------------
|
||||
#elif [ "$cake" == "3" ]; then
|
||||
#clear
|
||||
#echo "Uso CPU/RAM"
|
||||
#echo ""
|
||||
#php /opt/DragonCore/menu.php getVpsInformation
|
||||
#echo ""
|
||||
#echo -ne "Pressione enter para continuar"; read enter
|
||||
#menuferrament
|
||||
#--------------------
|
||||
elif [ "$cake" == "3" ]; then
|
||||
clear
|
||||
onnet=$(php /opt/DragonCore/menu.php checknet)
|
||||
if [ "$onnet" == "ON" ];then
|
||||
echo -ne "Deseja desativar o balanceamento? S/N > "; read sn
|
||||
lowercaseInput=$(echo "$sn" | tr '[:upper:]' '[:lower:]')
|
||||
if [[ "$lowercaseInput" == 'y' || "$lowercaseInput" == 's' ]]; then
|
||||
php /opt/DragonCore/menu.php insertnet
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
else
|
||||
php /opt/DragonCore/menu.php insertnet
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
fi
|
||||
menuferrament
|
||||
#--------------------
|
||||
elif [ "$cake" == "4" ]; then
|
||||
chkuser="$(php /opt/DragonCore/menu.php checkuseron)"
|
||||
if [ "$chkuser" == "ON" ];then
|
||||
clear
|
||||
echo -ne "Deseja Desativar o CheckUser Mult APP? s/n: "; read sn
|
||||
if [ "$sn" == "s" ];then
|
||||
php /opt/DragonCore/menu.php checkuserstop
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
else
|
||||
clear
|
||||
php /opt/DragonCore/menu.php checkuserstart
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "5" ]; then
|
||||
clear
|
||||
bck2=$(php /opt/DragonCore/menu.php ckbkdragon)
|
||||
if [ "$bck2" == "OK" ];then
|
||||
echo -ne "Deseja Restaurar o backup? S/N > "; read sn
|
||||
lowercaseInput=$(echo "$sn" | tr '[:upper:]' '[:lower:]')
|
||||
if [[ "$lowercaseInput" == 'y' || "$lowercaseInput" == 's' ]]; then
|
||||
php /opt/DragonCore/menu.php restorebackupuser
|
||||
php /opt/DragonCore/menu.php restorebackupconnect
|
||||
rm /root/dragoncoressh.json
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
else
|
||||
echo -ne "Gerar backup do DragonCoreSSH? S/n > "; read sn
|
||||
lowercaseInput=$(echo "$sn" | tr '[:upper:]' '[:lower:]')
|
||||
if [[ "$lowercaseInput" == 'y' || "$lowercaseInput" == 's' ]]; then
|
||||
php /opt/DragonCore/menu.php createbackup
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
fi
|
||||
menuferrament
|
||||
#--------------------
|
||||
elif [ "$cake" == "6" ]; then
|
||||
clear
|
||||
autock=$(php /opt/DragonCore/menu.php ckautomenu)
|
||||
if [ "$autock" == "notok" ];then
|
||||
echo -ne "Deseja Ativar o Auto Menu? S/N > "; read sn
|
||||
lowercaseInput=$(echo "$sn" | tr '[:upper:]' '[:lower:]')
|
||||
if [[ "$lowercaseInput" == 'y' || "$lowercaseInput" == 's' ]]; then
|
||||
php /opt/DragonCore/menu.php automenu
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
else
|
||||
echo -ne "Deseja Desativar o Auto Menu? S/n > "; read sn
|
||||
lowercaseInput=$(echo "$sn" | tr '[:upper:]' '[:lower:]')
|
||||
if [[ "$lowercaseInput" == 'y' || "$lowercaseInput" == 's' ]]; then
|
||||
php /opt/DragonCore/menu.php noautomenu
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
fi
|
||||
menuferrament
|
||||
#--------------------
|
||||
elif [ "$cake" == "7" ]; then
|
||||
clear
|
||||
echo "Speedtest By Ookle"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php speedtest
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
#--------------------
|
||||
elif [ "$cake" == "8" ]; then
|
||||
chklimiter="$(php /opt/DragonCore/menu.php limitadoron)"
|
||||
if [ "$chklimiter" == "ON" ];then
|
||||
clear
|
||||
echo -ne "Deseja Desativar o Dragon Limiter? s/n: "; read sn
|
||||
if [ "$sn" == "s" ];then
|
||||
php /opt/DragonCore/menu.php limitadorstop
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
else
|
||||
clear
|
||||
php /opt/DragonCore/menu.php limitador
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "9" ]; then
|
||||
local_version=$(cat /opt/DragonCore/version.txt)
|
||||
remote_version=$(wget -qO- https://raw.githubusercontent.com/Penguinehis/DragonCoreSSH-Beta/main/version.txt)
|
||||
if [[ "$local_version" == "$remote_version" ]]; then
|
||||
clear
|
||||
echo ""
|
||||
echo "ja esta atualizado."
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menu
|
||||
else
|
||||
clear
|
||||
echo ""
|
||||
echo "Um update esta disponivel. Sua versao: $local_version, Versao atual: $remote_version"
|
||||
echo ""
|
||||
echo -ne "Atualizar script? S/N > "; read att
|
||||
echo ""
|
||||
lowercaseInput=$(echo "$att" | tr '[:upper:]' '[:lower:]')
|
||||
if [[ "$lowercaseInput" == 'y' || "$lowercaseInput" == 's' ]]; then
|
||||
bash <(wget -qO- https://raw.githubusercontent.com/Penguinehis/DragonCoreSSH-Beta/main/install.sh)
|
||||
clear
|
||||
echo ""
|
||||
echo "Por favor digite menu novamente!"
|
||||
else
|
||||
menu
|
||||
fi
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "10" ]; then
|
||||
clear
|
||||
php /opt/DragonCore/menu.php getVpsInformation
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
#--------------------
|
||||
elif [ "$cake" == "11" ]; then
|
||||
bottg="$(php /opt/DragonCore/menu.php ulekboton)"
|
||||
if [ "$bottg" == "ON" ];then
|
||||
clear
|
||||
echo -ne "Deseja Desativar o Bot Telegram Ulek? s/n: "; read sn
|
||||
if [ "$sn" == "s" ];then
|
||||
php /opt/DragonCore/menu.php ulekbotstop
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
menuferrament
|
||||
else
|
||||
clear
|
||||
echo -ne "Para pegar o ID use o bot @dragoncorebot comando /id"
|
||||
echo ""
|
||||
echo -ne "Telegram ID > "; read id
|
||||
if [ -z "$id" ]; then
|
||||
clear
|
||||
echo -ne "ID não pode estar vazia!"; read enter
|
||||
menuferrament
|
||||
else
|
||||
echo -ne "Para pegar o Bot Token use o bot @BotFather"
|
||||
echo ""
|
||||
echo -ne "Bot Token > "; read token
|
||||
if [ -z "$token" ]; then
|
||||
clear
|
||||
echo -ne "Token não pode estar vazia!"; read enter
|
||||
menuferrament
|
||||
else
|
||||
clear
|
||||
php /opt/DragonCore/menu.php ulekbot $token $id
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "12" ]; then
|
||||
clear
|
||||
echo -ne "Remover todos os usuarios? S/n > "; read sn
|
||||
lowercaseInput=$(echo "$sn" | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
if [[ "$lowercaseInput" == 'y' || "$lowercaseInput" == 's' ]]; then
|
||||
echo -ne "Tem Certeza? essa acao nao pode ser revertida! S/n > "; read sn
|
||||
lowercaseInput=$(echo "$sn" | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
if [[ "$lowercaseInput" == 'y' || "$lowercaseInput" == 's' ]]; then
|
||||
php /opt/DragonCore/menu.php deleteall
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "13" ]; then
|
||||
clear
|
||||
echo -ne "Remover Script e todos usuarios? S/n > "; read sn
|
||||
lowercaseInput=$(echo "$sn" | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
if [[ "$lowercaseInput" == 'y' || "$lowercaseInput" == 's' ]]; then
|
||||
echo -ne "Tem Certeza? essa acao nao pode ser revertida! S/n > "; read sn
|
||||
lowercaseInput=$(echo "$sn" | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
if [[ "$lowercaseInput" == 'y' || "$lowercaseInput" == 's' ]]; then
|
||||
php /opt/DragonCore/menu.php deleteall
|
||||
apt purge openvpn -y
|
||||
apt purge stunnel4 -y
|
||||
apt purge php*
|
||||
apt purge postgresql* -y
|
||||
rm -rf /etc/openvpn
|
||||
rm -rf /opt/DragonCoreSSH
|
||||
screen -X -S proxydragon quit
|
||||
screen -X -S openvpn quit
|
||||
screen -X -S badvpn quit
|
||||
screen -X -S checkuser quit
|
||||
screen -X -S napster quit
|
||||
screen -X -S limiter quit
|
||||
rm /bin/menu
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
#--------------------
|
||||
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
menuuser(){
|
||||
clear
|
||||
php /opt/DragonCore/menu.php menuusuario
|
||||
echo -ne "> "; read cake
|
||||
#--------------------
|
||||
if [ "$cake" == "1" ]; then
|
||||
clear
|
||||
echo -ne "Usuario > "; read user
|
||||
if [ -z "$user" ]; then
|
||||
menuuser
|
||||
else
|
||||
echo -ne "Senha > "; read pass
|
||||
if [ -z "$pass" ]; then
|
||||
menuuser
|
||||
else
|
||||
echo -ne "Validade > "; read val
|
||||
if [ -z "$val" ]; then
|
||||
menuuser
|
||||
else
|
||||
echo -ne "Limite > "; read lim
|
||||
if [ -z "$lim" ]; then
|
||||
menuuser
|
||||
else
|
||||
php /opt/DragonCore/menu.php criaruser $val $user $pass $lim
|
||||
clear
|
||||
echo "Usuario: $user"
|
||||
echo "Senha: $pass"
|
||||
echo "Validade: $val"
|
||||
echo "Limite: $lim"
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuuser
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "2" ]; then
|
||||
clear
|
||||
echo "Gerar Teste:"
|
||||
echo ""
|
||||
echo -ne "Validade em Minutos > "; read data
|
||||
if [ -z "$data" ]; then
|
||||
menuuser
|
||||
else
|
||||
clear
|
||||
php /opt/DragonCore/menu.php gerarteste $data
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuuser
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "0" ]; then
|
||||
menu
|
||||
#--------------------
|
||||
elif [ "$cake" == "3" ]; then
|
||||
clear
|
||||
echo "Remover Usuario:"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php printusers
|
||||
echo ""
|
||||
echo -ne "ID > "; read user
|
||||
if [ -z "$user" ];then
|
||||
menuuser
|
||||
else
|
||||
php /opt/DragonCore/menu.php delusernew $user
|
||||
menuuser
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "4" ]; then
|
||||
clear
|
||||
echo "Usuarios online"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php sshmonitor
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuuser
|
||||
#--------------------
|
||||
elif [ "$cake" == "5" ]; then
|
||||
clear
|
||||
echo "Alterar Data:"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php printvalinew
|
||||
echo ""
|
||||
echo -ne "ID > "; read user
|
||||
echo -ne "Dias > "; read data
|
||||
if [ -z "$user" ]; then
|
||||
menuuser
|
||||
elif [ -z "$data" ]; then
|
||||
menuuser
|
||||
else
|
||||
php /opt/DragonCore/menu.php alterardatanew $user $data
|
||||
clear
|
||||
php /opt/DragonCore/menu.php printvalidnew $user
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuuser
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "6" ]; then
|
||||
clear
|
||||
echo "Alterar Limite:"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php printlimnew
|
||||
echo ""
|
||||
echo -ne "ID > "; read user
|
||||
echo -ne "Limit > "; read lim
|
||||
if [ -z "$user" ]; then
|
||||
menuuser
|
||||
elif [ -z "$lim" ]; then
|
||||
menuuser
|
||||
else
|
||||
php /opt/DragonCore/menu.php uplimitnew $user $lim
|
||||
clear
|
||||
php /opt/DragonCore/menu.php printlim2new $user
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuuser
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "7" ]; then
|
||||
clear
|
||||
echo "Alterar Senha:"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php printpass
|
||||
echo ""
|
||||
echo -ne "ID > "; read user
|
||||
echo -ne "Senha > "; read pass
|
||||
if [ -z "$user" ]; then
|
||||
menuuser
|
||||
elif [ -z "$pass" ]; then
|
||||
menuuser
|
||||
else
|
||||
clear
|
||||
php /opt/DragonCore/menu.php uppassnew $user $pass
|
||||
#clear
|
||||
php /opt/DragonCore/menu.php printpassnew $user
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuuser
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "8" ]; then
|
||||
clear
|
||||
echo "Relatorio de Usuarios:"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php relatoriouser
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuuser
|
||||
#--------------------
|
||||
elif [ "$cake" == "9" ]; then
|
||||
clear
|
||||
echo "Remover Expirados:"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php removeexpired
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuuser
|
||||
#--------------------
|
||||
else
|
||||
menuuser
|
||||
fi
|
||||
|
||||
|
||||
}
|
||||
|
||||
menuv2(){
|
||||
clear
|
||||
php /opt/DragonCore/menu.php menuv2
|
||||
echo -ne "> "; read cake
|
||||
if [ "$cake" == "0" ]; then
|
||||
menucon
|
||||
#____________
|
||||
elif [ -z $cake ]; then
|
||||
menuv2
|
||||
#_____________
|
||||
elif [ "$cake" == "1" ]; then
|
||||
clear
|
||||
echo "Criar Usuario:"
|
||||
echo ""
|
||||
echo -ne "Usuario > "; read user
|
||||
if [ -z $user ]; then
|
||||
menuv2
|
||||
else
|
||||
php /opt/DragonCore/menu.php addv2user $user
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuv2
|
||||
fi
|
||||
#----
|
||||
elif [ "$cake" == "2" ]; then
|
||||
clear
|
||||
echo "Remover Usuario:"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php v2users
|
||||
echo -ne "ID > "; read user
|
||||
if [ -z $user ]; then
|
||||
menuv2
|
||||
else
|
||||
uid=$(php /opt/DragonCore/menu.php v2uid $user)
|
||||
php /opt/DragonCore/menu.php delv2 $uid
|
||||
php /opt/DragonCore/menu.php dlv2 $user
|
||||
echo "UUID: $uid REMOVIDO!"
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuv2
|
||||
fi
|
||||
elif [ "$cake" == "3" ]; then
|
||||
clear
|
||||
echo "Usuarios:"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php v2users
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuv2
|
||||
#----
|
||||
elif [ "$cake" == "4" ]; then
|
||||
clear
|
||||
echo "Link VMESS:"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php v2users
|
||||
echo -ne "ID > "; read user
|
||||
if [ -z $user ]; then
|
||||
menuv2
|
||||
else
|
||||
uid=$(php /opt/DragonCore/menu.php v2uid $user)
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php extractVmessUrlByUUID $uid
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuv2
|
||||
fi
|
||||
#-----
|
||||
elif [ "$cake" == "5" ];then
|
||||
clear
|
||||
bash <(php /opt/DragonCore/menu.php v2protocol)
|
||||
menuv2
|
||||
#-----
|
||||
elif [ "$cake" == "6" ];then
|
||||
clear
|
||||
bash <(php /opt/DragonCore/menu.php v2tls)
|
||||
menuv2
|
||||
#-----
|
||||
elif [ "$cake" == "7" ];then
|
||||
clear
|
||||
bash <(php /opt/DragonCore/menu.php v2port)
|
||||
menuv2
|
||||
#-----
|
||||
elif [ "$cake" == "8" ];then
|
||||
clear
|
||||
bash <(php /opt/DragonCore/menu.php intallv2)
|
||||
menuv2
|
||||
#-----
|
||||
else
|
||||
menuv2
|
||||
fi
|
||||
}
|
||||
|
||||
menu
|
||||
BIN
aarch64/ulekbot
Normal file
BIN
aarch64/ulekbot
Normal file
Binary file not shown.
2
alterardata.php
Normal file
2
alterardata.php
Normal file
File diff suppressed because one or more lines are too long
2
alterarlimite.php
Normal file
2
alterarlimite.php
Normal file
File diff suppressed because one or more lines are too long
2
alterarsenha.php
Normal file
2
alterarsenha.php
Normal file
File diff suppressed because one or more lines are too long
2
automenu.php
Normal file
2
automenu.php
Normal file
File diff suppressed because one or more lines are too long
2
autostart.php
Normal file
2
autostart.php
Normal file
File diff suppressed because one or more lines are too long
2
backup.php
Normal file
2
backup.php
Normal file
File diff suppressed because one or more lines are too long
2
badvpn.php
Normal file
2
badvpn.php
Normal file
File diff suppressed because one or more lines are too long
2
checkatt.php
Normal file
2
checkatt.php
Normal file
File diff suppressed because one or more lines are too long
2
checkuser.php
Normal file
2
checkuser.php
Normal file
File diff suppressed because one or more lines are too long
2
checkusercontrol.php
Normal file
2
checkusercontrol.php
Normal file
File diff suppressed because one or more lines are too long
2
criarusuario.php
Normal file
2
criarusuario.php
Normal file
File diff suppressed because one or more lines are too long
2
database.php
Normal file
2
database.php
Normal file
File diff suppressed because one or more lines are too long
2
dbconvert.php
Normal file
2
dbconvert.php
Normal file
File diff suppressed because one or more lines are too long
2
expirado.php
Normal file
2
expirado.php
Normal file
File diff suppressed because one or more lines are too long
2
gbackup.php
Normal file
2
gbackup.php
Normal file
File diff suppressed because one or more lines are too long
2
infovps.php
Normal file
2
infovps.php
Normal file
File diff suppressed because one or more lines are too long
211
install.sh
Normal file
211
install.sh
Normal file
@@ -0,0 +1,211 @@
|
||||
#!/bin/bash
|
||||
if grep -q 'NAME="Debian GNU/Linux"' /etc/os-release; then
|
||||
system="debian"
|
||||
else
|
||||
system="ubuntu"
|
||||
fi
|
||||
|
||||
if [ "$system" = "debian" ]; then
|
||||
apt-get install -y sudo
|
||||
fi
|
||||
|
||||
sudo apt update
|
||||
sudo apt install -y lsb-release ca-certificates apt-transport-https software-properties-common gnupg curl wget
|
||||
|
||||
if [ "$system" = "debian" ]; then
|
||||
repos=$(find /etc/apt/ -name '*.list' -exec cat {} + | grep ^[[:space:]]*deb | grep -q "packages.sury.org/php" && echo 1 || echo 0)
|
||||
if [ "$repos" = "0" ]; then
|
||||
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/sury-php.list
|
||||
curl -fsSL https://packages.sury.org/php/apt.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/sury-keyring.gpg
|
||||
sudo apt update
|
||||
fi
|
||||
else
|
||||
repos=$(find /etc/apt/ -name '*.list' -exec cat {} + | grep ^[[:space:]]*deb | grep -q "/ondrej/php" && echo 1 || echo 0)
|
||||
if [ "$repos" = "0" ]; then
|
||||
sudo apt install lsb-release ca-certificates apt-transport-https software-properties-common -y
|
||||
sudo add-apt-repository ppa:ondrej/php
|
||||
sudo apt update
|
||||
fi
|
||||
fi
|
||||
|
||||
php_version="$(command php --version 2>'/dev/null' \
|
||||
| command head -n 1 \
|
||||
| command cut --characters=5-7)"
|
||||
if [ "$system" = "ubuntu" ] && [ "$(lsb_release -rs)" = "18.04" ]; then
|
||||
sudo apt install php7.2-cli php7.2-curl php7.2-sqlite3 php7.2-pgsql git -y
|
||||
cake=$(uname -m)
|
||||
if [ "$cake" = "x86_64" ]; then
|
||||
wget --user-agent "Mozilla" http://www.sourceguardian.com/loaders/download/loaders.linux-x86_64.tar.gz
|
||||
tar -xvzf loaders.linux-x86_64.tar.gz
|
||||
rm loaders.linux-x86_64.tar.gz
|
||||
else
|
||||
wget --user-agent "Mozilla" https://www.sourceguardian.com/loaders/download/loaders.linux-aarch64.tar.gz
|
||||
tar -xvzf loaders.linux-aarch64.tar.gz
|
||||
rm loaders.linux-aarch64.tar.gz
|
||||
fi
|
||||
sudo mv ixed.7.2.lin $(php -i | grep extension_dir | awk '{print $3}' | head -n 1)
|
||||
|
||||
elif [ "$php_version" != "8.1" ]; then
|
||||
sudo apt purge php-cli php-curl php-sqlite3 php-pgsql -y
|
||||
sudo apt purge php8.2-cli php8.2-curl php8.2-sqlite3 git -y
|
||||
sudo apt autoremove -y
|
||||
sudo apt install php8.1-cli php8.1-curl php8.1-sqlite3 php8.1-pgsql git -y
|
||||
sudo update-alternatives --set php /usr/bin/php8.1
|
||||
|
||||
PREFERENCES_FILE="/etc/apt/preferences.d/php-pin-8.1.pref"
|
||||
if [ ! -f "$PREFERENCES_FILE" ]; then
|
||||
sudo tee "$PREFERENCES_FILE" <<EOF
|
||||
Package: php*
|
||||
Pin: version 8.1*
|
||||
Pin-Priority: 1001
|
||||
EOF
|
||||
sudo apt update
|
||||
sudo apt upgrade -y
|
||||
fi
|
||||
php_version="$(command php --version 2>'/dev/null' \
|
||||
| command head -n 1 \
|
||||
| command cut --characters=5-7)"
|
||||
cake=$(uname -m)
|
||||
if [ "$cake" = "x86_64" ]; then
|
||||
wget --user-agent "Mozilla" http://www.sourceguardian.com/loaders/download/loaders.linux-x86_64.tar.gz
|
||||
tar -xvzf loaders.linux-x86_64.tar.gz
|
||||
rm loaders.linux-x86_64.tar.gz
|
||||
else
|
||||
wget --user-agent "Mozilla" https://www.sourceguardian.com/loaders/download/loaders.linux-aarch64.tar.gz
|
||||
tar -xvzf loaders.linux-aarch64.tar.gz
|
||||
rm loaders.linux-aarch64.tar.gz
|
||||
fi
|
||||
sudo mv ixed.${php_version}.lin $(php -i | grep extension_dir | awk '{print $3}' | head -n 1)
|
||||
else
|
||||
|
||||
sudo apt install php8.1-cli php8.1-curl php8.1-sqlite3 php8.1-pgsql git -y
|
||||
sudo update-alternatives --set php /usr/bin/php8.1
|
||||
|
||||
PREFERENCES_FILE="/etc/apt/preferences.d/php-pin-8.1.pref"
|
||||
if [ ! -f "$PREFERENCES_FILE" ]; then
|
||||
sudo tee "$PREFERENCES_FILE" <<EOF
|
||||
Package: php*
|
||||
Pin: version 8.1*
|
||||
Pin-Priority: 1001
|
||||
EOF
|
||||
sudo apt update
|
||||
sudo apt upgrade -y
|
||||
fi
|
||||
php_version="$(command php --version 2>'/dev/null' \
|
||||
| command head -n 1 \
|
||||
| command cut --characters=5-7)"
|
||||
cake=$(uname -m)
|
||||
if [ "$cake" = "x86_64" ]; then
|
||||
wget --user-agent "Mozilla" http://www.sourceguardian.com/loaders/download/loaders.linux-x86_64.tar.gz
|
||||
tar -xvzf loaders.linux-x86_64.tar.gz
|
||||
rm loaders.linux-x86_64.tar.gz
|
||||
else
|
||||
wget --user-agent "Mozilla" https://www.sourceguardian.com/loaders/download/loaders.linux-aarch64.tar.gz
|
||||
tar -xvzf loaders.linux-aarch64.tar.gz
|
||||
rm loaders.linux-aarch64.tar.gz
|
||||
fi
|
||||
sudo mv ixed.${php_version}.lin $(php -i | grep extension_dir | awk '{print $3}' | head -n 1)
|
||||
fi
|
||||
php_version2="$(command php --version 2>'/dev/null' \
|
||||
| command head -n 1 \
|
||||
| command cut --characters=5-7)"
|
||||
cat > /etc/php/${php_version2}/cli/conf.d/sourceguardian.ini << EOF
|
||||
zend_extension=ixed.${php_version2}.lin
|
||||
EOF
|
||||
rm ixed.*
|
||||
rm README
|
||||
rm "SourceGuardian Loader License.pdf"
|
||||
rm version
|
||||
|
||||
if [ ! -e "/bin/php" ]; then
|
||||
sudo ln -s "$(command -v php)" /bin/php
|
||||
fi
|
||||
|
||||
cd /opt/
|
||||
rm -rf DragonCore
|
||||
cd $HOME
|
||||
git clone https://github.com/Penguinehis/DragonCoreSSH-Beta.git /opt/DragonCore
|
||||
rm -rf /opt/DragonCore/aarch64
|
||||
rm -rf /opt/DragonCore/x86_64
|
||||
rm -rf /opt/DragonCore/install.sh
|
||||
curl -s -L -o /opt/DragonCore/menu https://raw.githubusercontent.com/Penguinehis/DragonCoreSSH-Beta/main/$(uname -m)/menu
|
||||
curl -s -L -o /opt/DragonCore/dragon_go https://raw.githubusercontent.com/Penguinehis/DragonCoreSSH-Beta/main/$(uname -m)/dragon_go
|
||||
curl -s -L -o /opt/DragonCore/badvpn-udpgw https://raw.githubusercontent.com/Penguinehis/DragonCoreSSH-Beta/main/$(uname -m)/badvpn-udpgw
|
||||
curl -s -L -o /opt/DragonCore/libcrypto.so.3 https://raw.githubusercontent.com/Penguinehis/DragonCoreSSH-Beta/main/$(uname -m)/libcrypto.so.3
|
||||
curl -s -L -o /opt/DragonCore/libssl.so.3 https://raw.githubusercontent.com/Penguinehis/DragonCoreSSH-Beta/main/$(uname -m)/libssl.so.3
|
||||
curl -s -L -o /opt/DragonCore/ProxyDragon https://raw.githubusercontent.com/Penguinehis/DragonCoreSSH-Beta/main/$(uname -m)/ProxyDragon
|
||||
curl -s -L -o /opt/DragonCore/ulekbot https://raw.githubusercontent.com/Penguinehis/DragonCoreSSH-Beta/main/$(uname -m)/ulekbot
|
||||
cd /opt/DragonCore
|
||||
chmod +x *
|
||||
cd $HOME
|
||||
echo -n "/opt/DragonCore/menu" > /bin/menu
|
||||
chmod +x /bin/menu
|
||||
existing_cron=$(crontab -l 2>/dev/null | grep -F "*/5 * * * * find /run/user -maxdepth 1 -mindepth 1 -type d -exec mount -o remount,size=1M {} \;")
|
||||
if [ -z "$existing_cron" ]; then
|
||||
(crontab -l 2>/dev/null; echo "*/5 * * * * find /run/user -maxdepth 1 -mindepth 1 -type d -exec mount -o remount,size=1M {} \;") | crontab -
|
||||
fi
|
||||
existing_crono=$(crontab -l 2>/dev/null | grep -F "@reboot sleep 30 && /usr/bin/php /opt/DragonCore/menu.php autostart")
|
||||
if [ -z "$existing_crono" ]; then
|
||||
(crontab -l 2>/dev/null; echo "@reboot sleep 30 && /usr/bin/php /opt/DragonCore/menu.php autostart") | crontab -
|
||||
fi
|
||||
existing_lima=$(crontab -l 2>/dev/null | grep -F '@reboot sleep 30 && find /etc/DragonTeste -name "*.sh" -exec {} \;')
|
||||
if [ -z "$existing_lima" ]; then
|
||||
(crontab -l 2>/dev/null; echo '@reboot sleep 30 && find /etc/DragonTeste -name "*.sh" -exec {} \;') | crontab -
|
||||
fi
|
||||
if dpkg -s libssl1.1 &>/dev/null; then
|
||||
echo "libssl1.1 is already installed."
|
||||
else
|
||||
echo "deb http://security.ubuntu.com/ubuntu focal-security main" | tee /etc/apt/sources.list.d/focal-security.list
|
||||
apt-get update && apt-get install -y libssl1.1
|
||||
fi
|
||||
bash <(php /opt/DragonCore/postinstall.php installpostgre)
|
||||
#Gerar DBS:
|
||||
php /opt/DragonCore/menu.php createautostart
|
||||
php /opt/DragonCore/menu.php createTable
|
||||
php /opt/DragonCore/menu.php createdbdragon
|
||||
php /opt/DragonCore/menu.php createv2table
|
||||
php /opt/DragonCore/dbconvert.php convertdba
|
||||
php /opt/DragonCore/dbconvert.php finishdba
|
||||
php /opt/DragonCore/menu.php deletecone ws
|
||||
sed -i '/# HostKeyAlgorithms/ a\HostKeyAlgorithms +ssh-rsa' /etc/ssh/sshd_config
|
||||
sed -i '/# PubkeyAcceptedKeyTypes/ a\PubkeyAcceptedKeyTypes +ssh-rsa' /etc/ssh/sshd_config
|
||||
reposi2=$(find /etc/apt/ -name *.list | xargs cat | grep ^[[:space:]]*deb | grep -q "ookla" && echo 1 || echo 0)
|
||||
if [ "$reposi2" = "1" ]; then
|
||||
echo "OK"
|
||||
else
|
||||
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | bash
|
||||
apt install speedtest
|
||||
fi
|
||||
install_netstat() {
|
||||
GREEN='\033[0;32m'
|
||||
RED='\033[0;31m'
|
||||
NC='\033[0m'
|
||||
if command -v netstat &> /dev/null; then
|
||||
echo "${GREEN}Netstat is already installed.${NC}"
|
||||
else
|
||||
echo "Netstat is not installed. Trying to install..."
|
||||
if [ -x "$(command -v apt)" ]; then
|
||||
apt update
|
||||
apt install -y net-tools
|
||||
echo -e "${GREEN}Netstat installation complete.${NC}"
|
||||
else
|
||||
echo -e "${RED}Unsupported system. Please install netstat manually.${NC}"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
install_netstat
|
||||
#Bolo
|
||||
apt install screen nload htop lsof -y
|
||||
#continua o script
|
||||
screen -X -S proxydragon quit
|
||||
screen -X -S openvpn quit
|
||||
screen -X -S badvpn quit
|
||||
screen -X -S checkuser quit
|
||||
screen -X -S napster quit
|
||||
screen -X -S limiter quit
|
||||
screen -X -S botulek quit
|
||||
php /opt/DragonCore/menu.php autostart
|
||||
echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
echo "Script instalado use o comando menu"
|
||||
6
iptables.sh
Normal file
6
iptables.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#/bin/bash
|
||||
cake="$(ip route get 1 | grep -Po '(?<=dev )(\S+)')"
|
||||
iptables -t nat -C POSTROUTING -s "10.8.0.0/24" -o eth0 -j MASQUERADE || iptables -t nat -A POSTROUTING -s "10.8.0.0/24" -o eth0 -j MASQUERADE
|
||||
iptables -C INPUT -i tun0 -j ACCEPT || iptables -A INPUT -i tun0 -j ACCEPT
|
||||
iptables -C INPUT -i lo -j ACCEPT || iptables -A INPUT -i lo -j ACCEPT
|
||||
iptables -C INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT || iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
|
||||
2
limiter.php
Normal file
2
limiter.php
Normal file
File diff suppressed because one or more lines are too long
2
limiterstart.php
Normal file
2
limiterstart.php
Normal file
File diff suppressed because one or more lines are too long
2
napster.php
Normal file
2
napster.php
Normal file
File diff suppressed because one or more lines are too long
2
network.php
Normal file
2
network.php
Normal file
File diff suppressed because one or more lines are too long
2
networkms.php
Normal file
2
networkms.php
Normal file
File diff suppressed because one or more lines are too long
2
openvpn.php
Normal file
2
openvpn.php
Normal file
File diff suppressed because one or more lines are too long
2
postinstall.php
Normal file
2
postinstall.php
Normal file
File diff suppressed because one or more lines are too long
2
proxydragon.php
Normal file
2
proxydragon.php
Normal file
File diff suppressed because one or more lines are too long
2
relatoriouser.php
Normal file
2
relatoriouser.php
Normal file
File diff suppressed because one or more lines are too long
2
removertodos.php
Normal file
2
removertodos.php
Normal file
File diff suppressed because one or more lines are too long
2
removeruser.php
Normal file
2
removeruser.php
Normal file
File diff suppressed because one or more lines are too long
2
speedtest.php
Normal file
2
speedtest.php
Normal file
File diff suppressed because one or more lines are too long
2
sshmonitor.php
Normal file
2
sshmonitor.php
Normal file
File diff suppressed because one or more lines are too long
2
statusvps.php
Normal file
2
statusvps.php
Normal file
File diff suppressed because one or more lines are too long
2
stunnel.php
Normal file
2
stunnel.php
Normal file
File diff suppressed because one or more lines are too long
2
userteste.php
Normal file
2
userteste.php
Normal file
File diff suppressed because one or more lines are too long
269
v2ray
Normal file
269
v2ray
Normal file
@@ -0,0 +1,269 @@
|
||||
#!/bin/bash
|
||||
# EDIT: @kiritossh
|
||||
# github: https://github.com/Jrohy/multi-v2ray
|
||||
|
||||
#定时任务北京执行时间(0~23)
|
||||
BEIJING_UPDATE_TIME=3
|
||||
|
||||
#记录最开始运行脚本的路径
|
||||
BEGIN_PATH=$(pwd)
|
||||
|
||||
#安装方式, 0为全新安装, 1为保留v2ray配置更新
|
||||
INSTALL_WAY=0
|
||||
|
||||
#定义操作变量, 0为否, 1为是
|
||||
HELP=0
|
||||
|
||||
REMOVE=0
|
||||
|
||||
CHINESE=0
|
||||
|
||||
BASE_SOURCE_PATH="https://multi.netlify.app"
|
||||
|
||||
UTIL_PATH="/etc/v2ray_util/util.cfg"
|
||||
|
||||
UTIL_CFG="$BASE_SOURCE_PATH/v2ray_util/util_core/util.cfg"
|
||||
|
||||
BASH_COMPLETION_SHELL="$BASE_SOURCE_PATH/v2ray"
|
||||
|
||||
CLEAN_IPTABLES_SHELL="$BASE_SOURCE_PATH/v2ray_util/global_setting/clean_iptables.sh"
|
||||
|
||||
#Centos 临时取消别名
|
||||
[[ -f /etc/redhat-release && -z $(echo $SHELL|grep zsh) ]] && unalias -a
|
||||
|
||||
[[ -z $(echo $SHELL|grep zsh) ]] && ENV_FILE=".bashrc" || ENV_FILE=".zshrc"
|
||||
|
||||
#######color code########
|
||||
RED="31m"
|
||||
GREEN="32m"
|
||||
YELLOW="33m"
|
||||
BLUE="36m"
|
||||
FUCHSIA="35m"
|
||||
|
||||
colorEcho(){
|
||||
COLOR=$1
|
||||
echo -e "\033[${COLOR}${@:2}\033[0m"
|
||||
}
|
||||
|
||||
#######get params#########
|
||||
while [[ $# > 0 ]];do
|
||||
key="$1"
|
||||
case $key in
|
||||
--remove)
|
||||
REMOVE=1
|
||||
;;
|
||||
-h|--help)
|
||||
HELP=1
|
||||
;;
|
||||
-k|--keep)
|
||||
INSTALL_WAY=1
|
||||
colorEcho ${BLUE} "keep config to update\n"
|
||||
;;
|
||||
--zh)
|
||||
CHINESE=1
|
||||
colorEcho ${BLUE} "安装中文版..\n"
|
||||
;;
|
||||
*)
|
||||
# unknown option
|
||||
;;
|
||||
esac
|
||||
shift # past argument or value
|
||||
done
|
||||
#############################
|
||||
|
||||
help(){
|
||||
echo "bash v2ray.sh [-h|--help] [-k|--keep] [--remove]"
|
||||
echo " -h, --help Show help"
|
||||
echo " -k, --keep keep the config.json to update"
|
||||
echo " --remove remove v2ray,xray && multi-v2ray"
|
||||
echo " no params to new install"
|
||||
return 0
|
||||
}
|
||||
|
||||
removeV2Ray() {
|
||||
#卸载V2ray脚本
|
||||
bash <(curl -L -s https://multi.netlify.app/go.sh) --remove >/dev/null 2>&1
|
||||
rm -rf /etc/v2ray >/dev/null 2>&1
|
||||
rm -rf /var/log/v2ray >/dev/null 2>&1
|
||||
|
||||
#卸载Xray脚本
|
||||
bash <(curl -L -s https://multi.netlify.app/go.sh) --remove -x >/dev/null 2>&1
|
||||
rm -rf /etc/xray >/dev/null 2>&1
|
||||
rm -rf /var/log/xray >/dev/null 2>&1
|
||||
|
||||
#清理v2ray相关iptable规则
|
||||
bash <(curl -L -s $CLEAN_IPTABLES_SHELL)
|
||||
|
||||
#卸载multi-v2ray
|
||||
pip uninstall v2ray_util -y
|
||||
rm -rf /usr/share/bash-completion/completions/v2ray.bash >/dev/null 2>&1
|
||||
rm -rf /usr/share/bash-completion/completions/v2ray >/dev/null 2>&1
|
||||
rm -rf /usr/share/bash-completion/completions/xray >/dev/null 2>&1
|
||||
rm -rf /etc/bash_completion.d/v2ray.bash >/dev/null 2>&1
|
||||
rm -rf /usr/local/bin/v2ray >/dev/null 2>&1
|
||||
rm -rf /etc/v2ray_util >/dev/null 2>&1
|
||||
|
||||
#删除v2ray定时更新任务
|
||||
crontab -l|sed '/SHELL=/d;/v2ray/d'|sed '/SHELL=/d;/xray/d' > crontab.txt
|
||||
crontab crontab.txt >/dev/null 2>&1
|
||||
rm -f crontab.txt >/dev/null 2>&1
|
||||
|
||||
if [[ ${PACKAGE_MANAGER} == 'dnf' || ${PACKAGE_MANAGER} == 'yum' ]];then
|
||||
systemctl restart crond >/dev/null 2>&1
|
||||
else
|
||||
systemctl restart cron >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
#删除multi-v2ray环境变量
|
||||
sed -i '/v2ray/d' ~/$ENV_FILE
|
||||
sed -i '/xray/d' ~/$ENV_FILE
|
||||
source ~/$ENV_FILE
|
||||
|
||||
colorEcho ${GREEN} "uninstall success!"
|
||||
}
|
||||
|
||||
closeSELinux() {
|
||||
#禁用SELinux
|
||||
if [ -s /etc/selinux/config ] && grep 'SELINUX=enforcing' /etc/selinux/config; then
|
||||
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
|
||||
setenforce 0
|
||||
fi
|
||||
}
|
||||
|
||||
checkSys() {
|
||||
#检查是否为Root
|
||||
[ $(id -u) != "0" ] && { colorEcho ${RED} "Error: You must be root to run this script"; exit 1; }
|
||||
|
||||
if [[ `command -v apt-get` ]];then
|
||||
PACKAGE_MANAGER='apt-get'
|
||||
elif [[ `command -v dnf` ]];then
|
||||
PACKAGE_MANAGER='dnf'
|
||||
elif [[ `command -v yum` ]];then
|
||||
PACKAGE_MANAGER='yum'
|
||||
else
|
||||
colorEcho $RED "Not support OS!"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
#安装依赖
|
||||
installDependent(){
|
||||
if [[ ${PACKAGE_MANAGER} == 'dnf' || ${PACKAGE_MANAGER} == 'yum' ]];then
|
||||
${PACKAGE_MANAGER} install socat crontabs bash-completion which -y
|
||||
else
|
||||
${PACKAGE_MANAGER} update
|
||||
${PACKAGE_MANAGER} install socat cron bash-completion ntpdate -y
|
||||
fi
|
||||
|
||||
#install python3 & pip
|
||||
source <(curl -sL https://python3.netlify.app/install.sh)
|
||||
}
|
||||
|
||||
updateProject() {
|
||||
[[ ! $(type pip 2>/dev/null) ]] && colorEcho $RED "pip no install!" && exit 1
|
||||
|
||||
pip install -U v2ray_util
|
||||
|
||||
if [[ -e $UTIL_PATH ]];then
|
||||
[[ -z $(cat $UTIL_PATH|grep lang) ]] && echo "lang=en" >> $UTIL_PATH
|
||||
else
|
||||
mkdir -p /etc/v2ray_util
|
||||
curl $UTIL_CFG > $UTIL_PATH
|
||||
fi
|
||||
|
||||
[[ $CHINESE == 1 ]] && sed -i "s/lang=en/lang=zh/g" $UTIL_PATH
|
||||
|
||||
rm -f /usr/local/bin/v2ray >/dev/null 2>&1
|
||||
ln -s $(which v2ray-util) /usr/local/bin/v2ray
|
||||
rm -f /usr/local/bin/xray >/dev/null 2>&1
|
||||
ln -s $(which v2ray-util) /usr/local/bin/xray
|
||||
|
||||
#移除旧的v2ray bash_completion脚本
|
||||
[[ -e /etc/bash_completion.d/v2ray.bash ]] && rm -f /etc/bash_completion.d/v2ray.bash
|
||||
[[ -e /usr/share/bash-completion/completions/v2ray.bash ]] && rm -f /usr/share/bash-completion/completions/v2ray.bash
|
||||
|
||||
#更新v2ray bash_completion脚本
|
||||
curl $BASH_COMPLETION_SHELL > /usr/share/bash-completion/completions/v2ray
|
||||
curl $BASH_COMPLETION_SHELL > /usr/share/bash-completion/completions/xray
|
||||
if [[ -z $(echo $SHELL|grep zsh) ]];then
|
||||
source /usr/share/bash-completion/completions/v2ray
|
||||
source /usr/share/bash-completion/completions/xray
|
||||
fi
|
||||
|
||||
#安装V2ray主程序
|
||||
[[ ${INSTALL_WAY} == 0 ]] && bash <(curl -L -s https://multi.netlify.app/go.sh)
|
||||
}
|
||||
|
||||
#时间同步
|
||||
timeSync() {
|
||||
if [[ ${INSTALL_WAY} == 0 ]];then
|
||||
echo -e "${Info} Time Synchronizing.. ${Font}"
|
||||
if [[ `command -v ntpdate` ]];then
|
||||
ntpdate pool.ntp.org
|
||||
elif [[ `command -v chronyc` ]];then
|
||||
chronyc -a makestep
|
||||
fi
|
||||
|
||||
if [[ $? -eq 0 ]];then
|
||||
echo -e "${OK} Time Sync Success ${Font}"
|
||||
echo -e "${OK} now: `date -R`${Font}"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
profileInit() {
|
||||
|
||||
#清理v2ray模块环境变量
|
||||
[[ $(grep v2ray ~/$ENV_FILE) ]] && sed -i '/v2ray/d' ~/$ENV_FILE && source ~/$ENV_FILE
|
||||
|
||||
#解决Python3中文显示问题
|
||||
[[ -z $(grep PYTHONIOENCODING=utf-8 ~/$ENV_FILE) ]] && echo "export PYTHONIOENCODING=utf-8" >> ~/$ENV_FILE && source ~/$ENV_FILE
|
||||
|
||||
#全新安装的新配置
|
||||
[[ ${INSTALL_WAY} == 0 ]] && v2ray new
|
||||
|
||||
echo ""
|
||||
}
|
||||
|
||||
installFinish() {
|
||||
#回到原点
|
||||
cd ${BEGIN_PATH}
|
||||
|
||||
[[ ${INSTALL_WAY} == 0 ]] && WAY="install" || WAY="update"
|
||||
colorEcho ${GREEN} "multi-v2ray ${WAY} success!\n"
|
||||
|
||||
if [[ ${INSTALL_WAY} == 0 ]]; then
|
||||
clear
|
||||
|
||||
echo -e "\n\033[1;32mV2RAY INSTALADO COM SUCESSO !\033[0m"
|
||||
v2ray info
|
||||
|
||||
echo -e "Por favor insira o comando 'v2ray' para gerenciar v2ray\n"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
main() {
|
||||
|
||||
[[ ${HELP} == 1 ]] && help && return
|
||||
|
||||
[[ ${REMOVE} == 1 ]] && removeV2Ray && return
|
||||
|
||||
[[ ${INSTALL_WAY} == 0 ]] && colorEcho ${BLUE} "new install\n"
|
||||
|
||||
checkSys
|
||||
|
||||
installDependent
|
||||
|
||||
closeSELinux
|
||||
|
||||
timeSync
|
||||
|
||||
updateProject
|
||||
|
||||
profileInit
|
||||
|
||||
installFinish
|
||||
}
|
||||
|
||||
main
|
||||
1
version.txt
Normal file
1
version.txt
Normal file
@@ -0,0 +1 @@
|
||||
28 Year Of the Dragon
|
||||
2
websocket.php
Normal file
2
websocket.php
Normal file
File diff suppressed because one or more lines are too long
BIN
x86_64/ProxyDragon
Normal file
BIN
x86_64/ProxyDragon
Normal file
Binary file not shown.
BIN
x86_64/badvpn-udpgw
Normal file
BIN
x86_64/badvpn-udpgw
Normal file
Binary file not shown.
BIN
x86_64/dragon_go
Normal file
BIN
x86_64/dragon_go
Normal file
Binary file not shown.
BIN
x86_64/libcrypto.so.3
Normal file
BIN
x86_64/libcrypto.so.3
Normal file
Binary file not shown.
BIN
x86_64/libssl.so.3
Normal file
BIN
x86_64/libssl.so.3
Normal file
Binary file not shown.
797
x86_64/menu
Normal file
797
x86_64/menu
Normal file
@@ -0,0 +1,797 @@
|
||||
#!/bin/bash
|
||||
colorWhite="\033[0;37m"
|
||||
colorReset="\033[0m"
|
||||
menu() {
|
||||
echo -e "${colorWhite}"
|
||||
php /opt/DragonCore/menu.php menu
|
||||
echo -ne "> "; read cake
|
||||
#--------------------
|
||||
if [ "$cake" == "1" ]; then
|
||||
menuuser
|
||||
elif [ "$cake" == "2" ]; then
|
||||
menucon
|
||||
#--------------------
|
||||
elif [ "$cake" == "3" ]; then
|
||||
menuferrament
|
||||
#--------------------
|
||||
#--------------------
|
||||
#elif [ "$cake" == "4" ]; then
|
||||
#clear
|
||||
#echo "Analizando CPU/RAM/REDE ...";
|
||||
#php /opt/DragonCore/menu.php statusvps
|
||||
#echo -ne "Pressione enter para continuar"; read enter
|
||||
#menu
|
||||
#--------------------
|
||||
elif [ "$cake" == "0" ]; then
|
||||
clear
|
||||
echo -e "${colorReset}"
|
||||
exit
|
||||
else
|
||||
menu
|
||||
fi
|
||||
}
|
||||
|
||||
menucon(){
|
||||
clear
|
||||
php /opt/DragonCore/menu.php menuconnect
|
||||
echo -ne "> "; read cake
|
||||
#--------------------
|
||||
if [ -z "$cake" ]; then
|
||||
menucon
|
||||
#--------------------
|
||||
elif [ "$cake" == "0" ]; then
|
||||
menu
|
||||
#--------------------
|
||||
#elif [ "$cake" == "1" ]; then
|
||||
#wdragon="$(php /opt/DragonCore/menu.php pdragonon)"
|
||||
#if [ "$wdragon" == "ON" ];then
|
||||
#clear
|
||||
#echo -ne "Deseja Desativar o Dragon SSH Open? s/n: "; read sn
|
||||
#if [ "$sn" == "s" ];then
|
||||
#php /opt/DragonCore/menu.php pdragonstop
|
||||
#echo -ne "Pressione enter para continuar"; read enter
|
||||
#menucon
|
||||
#else
|
||||
#menucon
|
||||
#fi
|
||||
#menucon
|
||||
#else
|
||||
#clear
|
||||
#echo -ne "Porta > "; read port
|
||||
#if [ -z "$port" ]; then
|
||||
#clear
|
||||
#echo -ne "Porta não pode estar vazia!"; read enter
|
||||
#menucon
|
||||
#else
|
||||
#clear
|
||||
#php /opt/DragonCore/menu.php pdragon $port
|
||||
#echo ""
|
||||
#echo -ne "Pressione enter para continuar"; read enter
|
||||
#menucon
|
||||
#fi
|
||||
#fi
|
||||
elif [ "$cake" == "1" ]; then
|
||||
napon="$(php /opt/DragonCore/menu.php napsteron)"
|
||||
if [ "$napon" == "ON" ];then
|
||||
clear
|
||||
echo -ne "Deseja Desativar o Dragon X GO SSH? s/n: "; read sn
|
||||
if [ "$sn" == "s" ];then
|
||||
php /opt/DragonCore/menu.php napsterstop
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menucon
|
||||
else
|
||||
menucon
|
||||
fi
|
||||
menucon
|
||||
else
|
||||
clear
|
||||
echo -ne "Porta > "; read port
|
||||
if [ -z "$port" ]; then
|
||||
clear
|
||||
echo -ne "Porta não pode estar vazia!"; read enter
|
||||
menucon
|
||||
else
|
||||
clear
|
||||
php /opt/DragonCore/menu.php napster $port
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menucon
|
||||
fi
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "2" ]; then
|
||||
clear
|
||||
ston="$(dpkg -l | grep -q stunnel4 && echo 1 || echo 0)"
|
||||
if [ "$ston" == "1" ];then
|
||||
echo "Deseja remover o Stunnel4?"
|
||||
echo ""
|
||||
echo -ne "s/n: "; read sn
|
||||
if [ "$sn" == "s" ];then
|
||||
bash <(php /opt/DragonCore/menu.php installst)
|
||||
rm -rf /etc/stunnel
|
||||
echo ""
|
||||
echo "Stunnel4 Removido!"
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menucon
|
||||
else
|
||||
menucon
|
||||
fi
|
||||
menucon
|
||||
else
|
||||
clear
|
||||
echo -ne "Porta > "; read port
|
||||
if [ -z "$port" ]; then
|
||||
clear
|
||||
echo -ne "Porta não pode estar vazia!"; read enter
|
||||
menucon
|
||||
else
|
||||
clear
|
||||
bash <(php /opt/DragonCore/menu.php update)
|
||||
bash <(php /opt/DragonCore/menu.php upgrade)
|
||||
bash <(php /opt/DragonCore/menu.php installst)
|
||||
bash <(php /opt/DragonCore/menu.php createconf $port)
|
||||
bash <(php /opt/DragonCore/menu.php ssl_certif)
|
||||
bash <(php /opt/DragonCore/menu.php restartst)
|
||||
echo ""
|
||||
clear
|
||||
echo ""
|
||||
echo "Stunnel4 instalado porta: $port"
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menucon
|
||||
fi
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "3" ]; then
|
||||
clear
|
||||
ovpnin="$(php /opt/DragonCore/menu.php checkinstall)"
|
||||
if [ "$ovpnin" == "OK" ];then
|
||||
ovpnni="$(php /opt/DragonCore/menu.php checkovpon)"
|
||||
if [ "$ovpnni" == "OK" ];then
|
||||
clear
|
||||
echo -ne "Deseja Desativar o OVPN? (1) ou Remover? (2) 1/2: "; read sn
|
||||
if [ "$sn" == "1" ];then
|
||||
php /opt/DragonCore/menu.php stopovpn
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menucon
|
||||
elif [ "$sn" == "2" ];then
|
||||
php /opt/DragonCore/menu.php stopovpn
|
||||
apt purge openvpn -y && rm -rf /etc/openvpn
|
||||
menucon
|
||||
else
|
||||
menucon
|
||||
fi
|
||||
else
|
||||
clear
|
||||
bash <(php /opt/DragonCore/menu.php startovpn)
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menucon
|
||||
fi
|
||||
else
|
||||
bash <(php /opt/DragonCore/menu.php ovpnin)
|
||||
php /opt/DragonCore/menu.php setupOpenVPN
|
||||
bash <(php /opt/DragonCore/menu.php ipv4)
|
||||
bash <(php /opt/DragonCore/menu.php ipv42)
|
||||
php /opt/DragonCore/menu.php client
|
||||
php /opt/DragonCore/menu.php client2
|
||||
bash <(php /opt/DragonCore/menu.php startovpn)
|
||||
echo ""
|
||||
clear
|
||||
echo ""
|
||||
echo "OpenVPN instalado porta: 1194"
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menucon
|
||||
fi
|
||||
#--------------------
|
||||
#elif [ "$cake" == "5" ]; then
|
||||
#menuv2
|
||||
#--------------------
|
||||
elif [ "$cake" == "4" ]; then
|
||||
clear
|
||||
echo "Portas Ativas"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php infoport
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menucon
|
||||
else
|
||||
menucon
|
||||
fi
|
||||
}
|
||||
|
||||
menuferrament(){
|
||||
clear
|
||||
php /opt/DragonCore/menu.php menuferramenta
|
||||
echo -ne "> "; read cake
|
||||
#--------------------
|
||||
if [ -z "$cake" ]; then
|
||||
menuferrament
|
||||
#--------------------
|
||||
elif [ "$cake" == "0" ]; then
|
||||
menu
|
||||
#--------------------
|
||||
elif [ "$cake" == "1" ]; then
|
||||
clear
|
||||
echo ""
|
||||
echo -ne "Restaurar Backup? S/N > "; read att
|
||||
echo ""
|
||||
lowercaseInput=$(echo "$att" | tr '[:upper:]' '[:lower:]')
|
||||
if [[ "$lowercaseInput" == 'y' || "$lowercaseInput" == 's' ]]; then
|
||||
clear
|
||||
bk=$(php /opt/DragonCore/menu.php checkbackup)
|
||||
if [ "$bk" = "OK" ]; then
|
||||
php /opt/DragonCore/menu.php unpck
|
||||
php /opt/DragonCore/menu.php paswd
|
||||
php /opt/DragonCore/menu.php db
|
||||
rm -rf /root/temp
|
||||
echo ""
|
||||
echo "Restauracao concluida"
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
clear
|
||||
echo "backup.vps nao encontrado na pasta /root/"
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
fi
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "2" ]; then
|
||||
bdon="$(php /opt/DragonCore/menu.php badvpnon)"
|
||||
if [ "$bdon" == "ON" ];then
|
||||
clear
|
||||
echo -ne "Deseja Desativar o BadVpnX? s/n: "; read sn
|
||||
if [ "$sn" == "s" ];then
|
||||
bash <(php /opt/DragonCore/menu.php badvpnstop)
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
else
|
||||
clear
|
||||
bash <(php /opt/DragonCore/menu.php badvpn)
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
fi
|
||||
#--------------------
|
||||
#elif [ "$cake" == "3" ]; then
|
||||
#clear
|
||||
#echo "Uso CPU/RAM"
|
||||
#echo ""
|
||||
#php /opt/DragonCore/menu.php getVpsInformation
|
||||
#echo ""
|
||||
#echo -ne "Pressione enter para continuar"; read enter
|
||||
#menuferrament
|
||||
#--------------------
|
||||
elif [ "$cake" == "3" ]; then
|
||||
clear
|
||||
onnet=$(php /opt/DragonCore/menu.php checknet)
|
||||
if [ "$onnet" == "ON" ];then
|
||||
echo -ne "Deseja desativar o balanceamento? S/N > "; read sn
|
||||
lowercaseInput=$(echo "$sn" | tr '[:upper:]' '[:lower:]')
|
||||
if [[ "$lowercaseInput" == 'y' || "$lowercaseInput" == 's' ]]; then
|
||||
php /opt/DragonCore/menu.php insertnet
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
else
|
||||
php /opt/DragonCore/menu.php insertnet
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
fi
|
||||
menuferrament
|
||||
#--------------------
|
||||
elif [ "$cake" == "4" ]; then
|
||||
chkuser="$(php /opt/DragonCore/menu.php checkuseron)"
|
||||
if [ "$chkuser" == "ON" ];then
|
||||
clear
|
||||
echo -ne "Deseja Desativar o CheckUser Mult APP? s/n: "; read sn
|
||||
if [ "$sn" == "s" ];then
|
||||
php /opt/DragonCore/menu.php checkuserstop
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
else
|
||||
clear
|
||||
php /opt/DragonCore/menu.php checkuserstart
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "5" ]; then
|
||||
clear
|
||||
bck2=$(php /opt/DragonCore/menu.php ckbkdragon)
|
||||
if [ "$bck2" == "OK" ];then
|
||||
echo -ne "Deseja Restaurar o backup? S/N > "; read sn
|
||||
lowercaseInput=$(echo "$sn" | tr '[:upper:]' '[:lower:]')
|
||||
if [[ "$lowercaseInput" == 'y' || "$lowercaseInput" == 's' ]]; then
|
||||
php /opt/DragonCore/menu.php restorebackupuser
|
||||
php /opt/DragonCore/menu.php restorebackupconnect
|
||||
rm /root/dragoncoressh.json
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
else
|
||||
echo -ne "Gerar backup do DragonCoreSSH? S/n > "; read sn
|
||||
lowercaseInput=$(echo "$sn" | tr '[:upper:]' '[:lower:]')
|
||||
if [[ "$lowercaseInput" == 'y' || "$lowercaseInput" == 's' ]]; then
|
||||
php /opt/DragonCore/menu.php createbackup
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
fi
|
||||
menuferrament
|
||||
#--------------------
|
||||
elif [ "$cake" == "6" ]; then
|
||||
clear
|
||||
autock=$(php /opt/DragonCore/menu.php ckautomenu)
|
||||
if [ "$autock" == "notok" ];then
|
||||
echo -ne "Deseja Ativar o Auto Menu? S/N > "; read sn
|
||||
lowercaseInput=$(echo "$sn" | tr '[:upper:]' '[:lower:]')
|
||||
if [[ "$lowercaseInput" == 'y' || "$lowercaseInput" == 's' ]]; then
|
||||
php /opt/DragonCore/menu.php automenu
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
else
|
||||
echo -ne "Deseja Desativar o Auto Menu? S/n > "; read sn
|
||||
lowercaseInput=$(echo "$sn" | tr '[:upper:]' '[:lower:]')
|
||||
if [[ "$lowercaseInput" == 'y' || "$lowercaseInput" == 's' ]]; then
|
||||
php /opt/DragonCore/menu.php noautomenu
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
fi
|
||||
menuferrament
|
||||
#--------------------
|
||||
elif [ "$cake" == "7" ]; then
|
||||
clear
|
||||
echo "Speedtest By Ookle"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php speedtest
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
#--------------------
|
||||
elif [ "$cake" == "8" ]; then
|
||||
chklimiter="$(php /opt/DragonCore/menu.php limitadoron)"
|
||||
if [ "$chklimiter" == "ON" ];then
|
||||
clear
|
||||
echo -ne "Deseja Desativar o Dragon Limiter? s/n: "; read sn
|
||||
if [ "$sn" == "s" ];then
|
||||
php /opt/DragonCore/menu.php limitadorstop
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
else
|
||||
clear
|
||||
php /opt/DragonCore/menu.php limitador
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "9" ]; then
|
||||
local_version=$(cat /opt/DragonCore/version.txt)
|
||||
remote_version=$(wget -qO- https://raw.githubusercontent.com/Penguinehis/DragonCoreSSH-Beta/main/version.txt)
|
||||
if [[ "$local_version" == "$remote_version" ]]; then
|
||||
clear
|
||||
echo ""
|
||||
echo "ja esta atualizado."
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menu
|
||||
else
|
||||
clear
|
||||
echo ""
|
||||
echo "Um update esta disponivel. Sua versao: $local_version, Versao atual: $remote_version"
|
||||
echo ""
|
||||
echo -ne "Atualizar script? S/N > "; read att
|
||||
echo ""
|
||||
lowercaseInput=$(echo "$att" | tr '[:upper:]' '[:lower:]')
|
||||
if [[ "$lowercaseInput" == 'y' || "$lowercaseInput" == 's' ]]; then
|
||||
bash <(wget -qO- https://raw.githubusercontent.com/Penguinehis/DragonCoreSSH-Beta/main/install.sh)
|
||||
clear
|
||||
echo ""
|
||||
echo "Por favor digite menu novamente!"
|
||||
else
|
||||
menu
|
||||
fi
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "10" ]; then
|
||||
clear
|
||||
php /opt/DragonCore/menu.php getVpsInformation
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
#--------------------
|
||||
elif [ "$cake" == "11" ]; then
|
||||
bottg="$(php /opt/DragonCore/menu.php ulekboton)"
|
||||
if [ "$bottg" == "ON" ];then
|
||||
clear
|
||||
echo -ne "Deseja Desativar o Bot Telegram Ulek? s/n: "; read sn
|
||||
if [ "$sn" == "s" ];then
|
||||
php /opt/DragonCore/menu.php ulekbotstop
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
menuferrament
|
||||
else
|
||||
clear
|
||||
echo -ne "Para pegar o ID use o bot @dragoncorebot comando /id"
|
||||
echo ""
|
||||
echo -ne "Telegram ID > "; read id
|
||||
if [ -z "$id" ]; then
|
||||
clear
|
||||
echo -ne "ID não pode estar vazia!"; read enter
|
||||
menuferrament
|
||||
else
|
||||
echo -ne "Para pegar o Bot Token use o bot @BotFather"
|
||||
echo ""
|
||||
echo -ne "Bot Token > "; read token
|
||||
if [ -z "$token" ]; then
|
||||
clear
|
||||
echo -ne "Token não pode estar vazia!"; read enter
|
||||
menuferrament
|
||||
else
|
||||
clear
|
||||
php /opt/DragonCore/menu.php ulekbot $token $id
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "12" ]; then
|
||||
clear
|
||||
echo -ne "Remover todos os usuarios? S/n > "; read sn
|
||||
lowercaseInput=$(echo "$sn" | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
if [[ "$lowercaseInput" == 'y' || "$lowercaseInput" == 's' ]]; then
|
||||
echo -ne "Tem Certeza? essa acao nao pode ser revertida! S/n > "; read sn
|
||||
lowercaseInput=$(echo "$sn" | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
if [[ "$lowercaseInput" == 'y' || "$lowercaseInput" == 's' ]]; then
|
||||
php /opt/DragonCore/menu.php deleteall
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "13" ]; then
|
||||
clear
|
||||
echo -ne "Remover Script e todos usuarios? S/n > "; read sn
|
||||
lowercaseInput=$(echo "$sn" | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
if [[ "$lowercaseInput" == 'y' || "$lowercaseInput" == 's' ]]; then
|
||||
echo -ne "Tem Certeza? essa acao nao pode ser revertida! S/n > "; read sn
|
||||
lowercaseInput=$(echo "$sn" | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
if [[ "$lowercaseInput" == 'y' || "$lowercaseInput" == 's' ]]; then
|
||||
php /opt/DragonCore/menu.php deleteall
|
||||
apt purge openvpn -y
|
||||
apt purge stunnel4 -y
|
||||
apt purge php*
|
||||
apt purge postgresql* -y
|
||||
rm -rf /etc/openvpn
|
||||
rm -rf /opt/DragonCoreSSH
|
||||
screen -X -S proxydragon quit
|
||||
screen -X -S openvpn quit
|
||||
screen -X -S badvpn quit
|
||||
screen -X -S checkuser quit
|
||||
screen -X -S napster quit
|
||||
screen -X -S limiter quit
|
||||
rm /bin/menu
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuferrament
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
#--------------------
|
||||
|
||||
else
|
||||
menuferrament
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
menuuser(){
|
||||
clear
|
||||
php /opt/DragonCore/menu.php menuusuario
|
||||
echo -ne "> "; read cake
|
||||
#--------------------
|
||||
if [ "$cake" == "1" ]; then
|
||||
clear
|
||||
echo -ne "Usuario > "; read user
|
||||
if [ -z "$user" ]; then
|
||||
menuuser
|
||||
else
|
||||
echo -ne "Senha > "; read pass
|
||||
if [ -z "$pass" ]; then
|
||||
menuuser
|
||||
else
|
||||
echo -ne "Validade > "; read val
|
||||
if [ -z "$val" ]; then
|
||||
menuuser
|
||||
else
|
||||
echo -ne "Limite > "; read lim
|
||||
if [ -z "$lim" ]; then
|
||||
menuuser
|
||||
else
|
||||
php /opt/DragonCore/menu.php criaruser $val $user $pass $lim
|
||||
clear
|
||||
echo "Usuario: $user"
|
||||
echo "Senha: $pass"
|
||||
echo "Validade: $val"
|
||||
echo "Limite: $lim"
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuuser
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "2" ]; then
|
||||
clear
|
||||
echo "Gerar Teste:"
|
||||
echo ""
|
||||
echo -ne "Validade em Minutos > "; read data
|
||||
if [ -z "$data" ]; then
|
||||
menuuser
|
||||
else
|
||||
clear
|
||||
php /opt/DragonCore/menu.php gerarteste $data
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuuser
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "0" ]; then
|
||||
menu
|
||||
#--------------------
|
||||
elif [ "$cake" == "3" ]; then
|
||||
clear
|
||||
echo "Remover Usuario:"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php printusers
|
||||
echo ""
|
||||
echo -ne "ID > "; read user
|
||||
if [ -z "$user" ];then
|
||||
menuuser
|
||||
else
|
||||
php /opt/DragonCore/menu.php delusernew $user
|
||||
menuuser
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "4" ]; then
|
||||
clear
|
||||
echo "Usuarios online"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php sshmonitor
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuuser
|
||||
#--------------------
|
||||
elif [ "$cake" == "5" ]; then
|
||||
clear
|
||||
echo "Alterar Data:"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php printvalinew
|
||||
echo ""
|
||||
echo -ne "ID > "; read user
|
||||
echo -ne "Dias > "; read data
|
||||
if [ -z "$user" ]; then
|
||||
menuuser
|
||||
elif [ -z "$data" ]; then
|
||||
menuuser
|
||||
else
|
||||
php /opt/DragonCore/menu.php alterardatanew $user $data
|
||||
clear
|
||||
php /opt/DragonCore/menu.php printvalidnew $user
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuuser
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "6" ]; then
|
||||
clear
|
||||
echo "Alterar Limite:"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php printlimnew
|
||||
echo ""
|
||||
echo -ne "ID > "; read user
|
||||
echo -ne "Limit > "; read lim
|
||||
if [ -z "$user" ]; then
|
||||
menuuser
|
||||
elif [ -z "$lim" ]; then
|
||||
menuuser
|
||||
else
|
||||
php /opt/DragonCore/menu.php uplimitnew $user $lim
|
||||
clear
|
||||
php /opt/DragonCore/menu.php printlim2new $user
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuuser
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "7" ]; then
|
||||
clear
|
||||
echo "Alterar Senha:"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php printpass
|
||||
echo ""
|
||||
echo -ne "ID > "; read user
|
||||
echo -ne "Senha > "; read pass
|
||||
if [ -z "$user" ]; then
|
||||
menuuser
|
||||
elif [ -z "$pass" ]; then
|
||||
menuuser
|
||||
else
|
||||
clear
|
||||
php /opt/DragonCore/menu.php uppassnew $user $pass
|
||||
#clear
|
||||
php /opt/DragonCore/menu.php printpassnew $user
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuuser
|
||||
fi
|
||||
#--------------------
|
||||
elif [ "$cake" == "8" ]; then
|
||||
clear
|
||||
echo "Relatorio de Usuarios:"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php relatoriouser
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuuser
|
||||
#--------------------
|
||||
elif [ "$cake" == "9" ]; then
|
||||
clear
|
||||
echo "Remover Expirados:"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php removeexpired
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuuser
|
||||
#--------------------
|
||||
else
|
||||
menuuser
|
||||
fi
|
||||
|
||||
|
||||
}
|
||||
|
||||
menuv2(){
|
||||
clear
|
||||
php /opt/DragonCore/menu.php menuv2
|
||||
echo -ne "> "; read cake
|
||||
if [ "$cake" == "0" ]; then
|
||||
menucon
|
||||
#____________
|
||||
elif [ -z $cake ]; then
|
||||
menuv2
|
||||
#_____________
|
||||
elif [ "$cake" == "1" ]; then
|
||||
clear
|
||||
echo "Criar Usuario:"
|
||||
echo ""
|
||||
echo -ne "Usuario > "; read user
|
||||
if [ -z $user ]; then
|
||||
menuv2
|
||||
else
|
||||
php /opt/DragonCore/menu.php addv2user $user
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuv2
|
||||
fi
|
||||
#----
|
||||
elif [ "$cake" == "2" ]; then
|
||||
clear
|
||||
echo "Remover Usuario:"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php v2users
|
||||
echo -ne "ID > "; read user
|
||||
if [ -z $user ]; then
|
||||
menuv2
|
||||
else
|
||||
uid=$(php /opt/DragonCore/menu.php v2uid $user)
|
||||
php /opt/DragonCore/menu.php delv2 $uid
|
||||
php /opt/DragonCore/menu.php dlv2 $user
|
||||
echo "UUID: $uid REMOVIDO!"
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuv2
|
||||
fi
|
||||
elif [ "$cake" == "3" ]; then
|
||||
clear
|
||||
echo "Usuarios:"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php v2users
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuv2
|
||||
#----
|
||||
elif [ "$cake" == "4" ]; then
|
||||
clear
|
||||
echo "Link VMESS:"
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php v2users
|
||||
echo -ne "ID > "; read user
|
||||
if [ -z $user ]; then
|
||||
menuv2
|
||||
else
|
||||
uid=$(php /opt/DragonCore/menu.php v2uid $user)
|
||||
echo ""
|
||||
php /opt/DragonCore/menu.php extractVmessUrlByUUID $uid
|
||||
echo ""
|
||||
echo -ne "Pressione enter para continuar"; read enter
|
||||
menuv2
|
||||
fi
|
||||
#-----
|
||||
elif [ "$cake" == "5" ];then
|
||||
clear
|
||||
bash <(php /opt/DragonCore/menu.php v2protocol)
|
||||
menuv2
|
||||
#-----
|
||||
elif [ "$cake" == "6" ];then
|
||||
clear
|
||||
bash <(php /opt/DragonCore/menu.php v2tls)
|
||||
menuv2
|
||||
#-----
|
||||
elif [ "$cake" == "7" ];then
|
||||
clear
|
||||
bash <(php /opt/DragonCore/menu.php v2port)
|
||||
menuv2
|
||||
#-----
|
||||
elif [ "$cake" == "8" ];then
|
||||
clear
|
||||
bash <(php /opt/DragonCore/menu.php intallv2)
|
||||
menuv2
|
||||
#-----
|
||||
else
|
||||
menuv2
|
||||
fi
|
||||
}
|
||||
|
||||
menu
|
||||
BIN
x86_64/ulekbot
Normal file
BIN
x86_64/ulekbot
Normal file
Binary file not shown.
Reference in New Issue
Block a user