Hello guys in this tutorial i’m going to show you how to install ngrok in termux and kali-linux
What is ngrok?
ngrok is a cross-platform application that enables developers to expose a local development server to the Internet with minimal effort. The software makes your locally-hosted web server appear to be hosted on a subdomain of ngrok.com, meaning that no public IP or domain name on the local machine is needed.
In other word’s, Ngrok is a reverse proxy that creates a secure “tunnel” from a public endpoint for a web service running locally.
Basically, Ngrok creates a tunnel, where its function is to redirect external connections to your localhost.
How Ngrok works?
Let’s assume you have a web server running on your machine. Now you intend to share, with a colleague, the address of a website that you developed, but as it is on the private network. To do this, just use Ngrok. Considering that the webserver is at port 8080, you only need to execute the following command.
ngrok http 8080
What you can do with Ngrok?
- Share website to a colleague that is running on a private network;
- Create a TCP server on your device;
- Port forwarding;
- Testing mobile apps connected to your locally running backend;
- Stable addresses for your connected devices that are deployed in the field;
- Running personal cloud services from your home;
- And also you can use Ngrok in Ethical hacking.
How to install Ngrok in termux & Linux?
pkg update && pkg upgrade -y
Now type the below command. The below command will install zip and wget packages in your Termux. Whereas zip will be used to unzip the Ngrok zip folder and wget will be used for downloading Ngrok.
pkg install zip wget -y
Now type the below command as it is to download Ngrok in your Termux.
Wait for downloading to be finished. It may take up to 2 to 3 minutes to download Ngrok depending upon your Internet speed
Now we need to unzip the Ngrok folder by typing the below command.
After Unzipping give Ngrok permission to read, write and execute by typing the following command
chmod +x ngrok
Now open the Ngrok website by clicking the link below
After opening the Ngrok website click on the Signup button, and then create a new account on Ngrok.
Now you need to confirm your Ngrok account. In order to confirm the Ngrok account simply open your Email. There you will see Ngrok email simply open that mail and click on confirm account button.
Now login to Ngrok with your Email Id and Password. After logging in to Ngrok you will see an auth token there. Then simply type below command in your Termux And replace <YOUR_AUTH_TOKEN> with your auth token.
./ngrok authtoken <YOUR_AUTH_TOKEN>
Running above command will add your auth token to your ngrok.yml file. Connecting an account will list your open tunnels in the dashboard, give you longer tunnel timeouts.
./ngrok http 8080
[…] we need to download the ngrok automatic installation tool so type this below command in your termux […]