-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathNgrok-Termux.sh
53 lines (50 loc) · 1.64 KB
/
Ngrok-Termux.sh
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
echo "Installing Depencies..."
apt update
upgrade -y
apt install -y wget
clear
g='\033[01;32m'
k='\033[01;32m'
echo
echo "Install Termux Ngrok? [Y/n]"
read opcao
case $opcao in
y)
echo
echo "Downloading Ngrok..."
case `dpkg --print-architecture` in
aarch64)
architectureURL="arm64" ;;
arm)
architectureURL="arm" ;;
armhf)
architectureURL="armhf" ;;
amd64)
architectureURL="amd64" ;;
i*86)
architectureURL="i386" ;;
x86_64)
architectureURL="amd64" ;;
*)
echo "installing."
esac
wget "https://github.com/tchelospy/NgrokTest/blob/master/ngrok-stable-linux-${architectureURL}.zip?raw=true" -O ngrok.zip
unzip ngrok.zip
cat ngrok > /data/data/com.termux/files/usr/bin/ngrok
chmod 700 /data/data/com.termux/files/usr/bin/ngrok
rm ngrok ngrok.zip
clear
echo "${g}███╗ ██╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗";
echo "${g}████╗ ██║██╔════╝ ██╔══██╗██╔═══██╗██║ ██╔╝";
echo "${g}██╔██╗ ██║██║ ███╗██████╔╝██║ ██║█████╔╝ ";
echo "${g}██║╚██╗██║██║ ██║██╔══██╗██║ ██║██╔═██╗ ";
echo "${g}██║ ╚████║╚██████╔╝██║ ██║╚██████╔╝██║ ██╗";
echo "${g}╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝";
echo
echo "Example command to start ngrok: ngrok http 8080"
;;
n)
clear
echo "Failed to installing Ngrok! :("
echo
esac