1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| apt-get install zsh unzip rm -rf ngrok ngrok.zip ng.sh > /dev/null 2>&1 echo "=======================" echo "Download ngrok" echo "=======================" wget -O ngrok.zip https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip > /dev/null 2>&1 unzip ngrok.zip > /dev/null 2>&1 read -p "Paste Ngrok Authtoken: " CRP ./ngrok authtoken $CRP
wget -O ttyd https://github.com/tsl0922/ttyd/releases/download/1.6.3/ttyd.x86_64 > /dev/null 2>&1 chmod 755 ttyd ./ttyd -p 8000 -c admin:admin zsh & echo "us - United States (Ohio)" echo "eu - Europe (Frankfurt)" echo "ap - Asia/Pacific (Singapore)" echo "au - Australia (Sydney)" echo "sa - South America (Sao Paulo)" echo "jp - Japan (Tokyo)" echo "in - India (Mumbai)" read -p "choose ngrok region: " CRP ./ngrok tcp --region $CRP 8000 &>/dev/null & echo "Username : admin" echo "Password : admin" echo "RDP Address:" curl --silent --show-error http://127.0.0.1:4040/api/tunnels | sed -nE 's/.*public_url":"tcp:..([^"]*).*/\1/p'
|