#!/bin/bash clear #—————————————————— # Translated By @VPSPLUS71 # VERSAO 1.0 # SLOW DNS TUNNEL #—————————————————— RED='\033[1;31m' GREEN='\033[1;32m' YELLOW='\033[1;33m' CORTITLE='\033[1;41m' SCOLOR='\033[0m' banner=' ___ _ _____ _____ _ _ ___ / __| | / _ \ \ / / \| \| / __| \__ \ |_| (_) \ \/\/ /| |) | . \__ \ |___/____\___/ \_/\_/ |___/|_|\_|___/' echo -e "${CORTITLE}=====================================${SCOLOR}" echo -e "${CORTITLE} VPSPLUS SLOWDNS CLIENT ${SCOLOR}" echo -e "${CORTITLE}=====================================${SCOLOR}" echo -e "${RED}$banner${SCOLOR}" [[ ! -e dns ]] && { yes| termux-setup-storage > /dev/null 2>&1 unset LD_PRELOAD > /dev/null 2>&1 cd $HOME mv slowdns $PREFIX/bin/slowdns chmod +x $PREFIX/bin/slowdns [[ $(grep -c 'slowdns' $PREFIX/etc/profile) == '0' ]] && echo 'slowdns' >> $PREFIX/etc/profile echo -e "\n${GREEN}Downloading the script Please wait! ${SCOLOR}" curl -O https://raw.githubusercontent.com/Romba89/slowdns/main/dns > /dev/null 2>&1 echo -e "\n${RED}[${YELLOW}!${RED}] ${YELLOW}Downloaded script! THE NEXT TIME\nExclude only the command ${RED}(${GREEN}slowdns${RED})\n${YELLOW}Even if you are offline!${SCOLOR}" chmod +x dns } [[ ! -e $HOME/credenciais ]] && { ns=$1 [[ -z "$ns" ]] && { echo -e "\n${RED}COMANDO IMCOMPLETO${SCOLOR}" exit 0 } chave=$2 [[ -z "$chave" ]] && { echo -e "\n${RED}COMANDO IMCOMPLETO${SCOLOR}" exit 0 } echo -e "$ns\n$chave" > $HOME/credenciais } || { perg=$(echo "${SCOLOR}[s/n]: ") echo -e "\n${YELLOW}O Script is already configured with a\nServer and is ready for connection" read -p "$(echo -e "${GREEN}Whether you continue with the same?${SCOLOR} [s/n]: ")" -e -i s opc [[ "$opc" != @(s|sim|S|SIM) ]] && { rm $HOME/credenciais dns > /dev/null 2>&1 rm $PREFIX/bin/slowdns > /dev/null 2>&1 sed -i '/slowdns/d' $PREFIX/etc/profile > /dev/null 2>&1 echo -e "\n${RED}SCRIPT REMOVIDO !${SCOLOR}" rm slowdns > /dev/null 2>&1 exit 0 } || { unset LD_PRELOAD > /dev/null 2>&1 ns=$(sed -n 1p $HOME/credenciais) chave=$(sed -n 2p $HOME/credenciais) } } echo -ne "\n${RED}[${YELLOW}!${RED}] ${YELLOW}To continue make sure\nIt is only with the ${RED}(${YELLOW}Mobile data${RED})\n${YELLOW}ACTIVATED ${GREEN}ENTER ${YELLOW}TO CONTINUE.. ${SCOLOR}"; read read -p "$(echo -e "${GREEN}♻️Replace Your Isp Dns👉${SCOLOR} [8.8.8.8]: ")" -e -i s ra $HOME/dns -udp $ra:53 -pubkey ${chave} ${ns} 127.0.0.1:2222 > /dev/null 2>&1 & echo -e "\n${RED}[${GREEN}√${RED}]${SCOLOR} - ${GREEN}🐌 SLOWDNS CONNECTED✅${SCOLOR} - ${RED}[${GREEN}√${RED}]\n\n${RED}[${YELLOW}!${RED}] ${YELLOW}Now connect to a VPN app\nOr click on ${GREEN}ENTER ${RED}TO DISCONNECT ${SCOLOR}"; read piddns=$(ps x| grep -w 'dns' | grep -v 'grep'| awk -F' ' {'print $1'}) [[ ${piddns} != '' ]] && kill ${piddns} > /dev/null 2>&1