├── README.md ├── get-ngrok.sh ├── install.sh └── ngrok /README.md: -------------------------------------------------------------------------------- 1 | # termux-ngrok 2 | Run official ngrok in termux 3 | 4 | # Install 5 | ```bash 6 | pkg update -y 7 | pkg install git 8 | git clone https://github.com/Yisus7u7/termux-ngrok 9 | 10 | cd termux-ngrok 11 | bash install.sh 12 | ``` 13 | 14 | And run : `ngrok` 15 | 16 | # Manifest 17 | 18 | ES: este repositorio es codigo libre, puedes usarlo sin ningun problema. 19 | 20 | EN: this repository is free code, you can use it without any problem. 21 | -------------------------------------------------------------------------------- /get-ngrok.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "Downloading ngrok..." 4 | case `dpkg --print-architecture` in 5 | aarch64) 6 | architectureURL="arm64" ;; 7 | arm) 8 | architectureURL="arm" ;; 9 | armhf) 10 | architectureURL="arm" ;; 11 | amd64) 12 | architectureURL="amd64" ;; 13 | i*86) 14 | architectureURL="386" ;; 15 | x86_64) 16 | architectureURL="amd64" ;; 17 | *) 18 | echo "unknown or unsupported architecture" 19 | esac 20 | 21 | wget https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-${architectureURL}.zip -O ngrok.zip 22 | # arm : https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip 23 | # aarch46 : https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm64.zip 24 | # i368 : https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-386.zip 25 | # x86_64 : https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip 26 | unzip ngrok.zip 27 | rm ngrok.zip 28 | -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | rm $PREFIX/bin/ngrok 3 | rm -rf $PREFIX/share/ngrok 4 | mkdir -p $PREFIX/share/ngrok 5 | cp get-ngrok.sh $PREFIX/share/ngrok 6 | cp ngrok $PREFIX/bin 7 | apt update && apt upgrade -y 8 | apt install -y proot wget resolv-conf 9 | apt clean 10 | apt autoremove 11 | cd $PREFIX/share/ngrok 12 | bash get-ngrok.sh 13 | echo -e "\e[1;32mNgrok installed sucessfull!" 14 | echo "Run : ngrok " 15 | echo " To use ngrok" 16 | -------------------------------------------------------------------------------- /ngrok: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | termux-chroot -- $PREFIX/share/ngrok/ngrok "$@" 3 | --------------------------------------------------------------------------------