What Is Ngrok?
Ngrok is a reverse proxy that creates a secure "tunnel" from a public endpoint to a locally running web service.
In other words, you can use Ngrok to expose a port on your system, for example the port your application or website runs on, to a public URL.
Basically, Ngrok creates a tunnel, where its role is to redirect external connections to your local host.
How Ngrok works?
Suppose you have a web server running on your machine. Now you intend to share, with a colleague, the address of a website you developed, but as it is on the private network. To do this, just use Ngrok. Considering that the web server is on port 8080, you just need to run the following command:
ngrok http 8080
What is the use of Ngrok?
1) Share the website with a colleague running on a private network;
2) Create a TCP server on your device;
3) Forwarding of ports;
4) Testing of mobile applications connected to your backend running locally;
5) Stable addresses for your connected devices that are deployed in the field;
6) Running personal cloud services from your home;
7) You can also use Ngrok in ethical hacking.
Maybe you are thinking about how to use Ngrok in ethical hacking? Basically you can take reverse shell and reverse any device connection remotely through TCP tunnel with Ngrok.
How to install Ngrok in Termux?
These are the steps to install Ngrok in Termux. Follow the steps one by one carefully to avoid any kind of mistake. Note that you must wait for each command to complete.
1. First of all, open your Termux and then type the below command to update and upgrade your Termux repositories.
pkg update && pkg upgrade -y2. Now type the following command. The following command will install the zip and wget packages on your Termux. Here zip will be used to unzip the compressed Ngrok folder, while wget will be used to download the Ngrok file.
pkg install zip wget -y3. Now type the below command as it is to download Ngrok in your Termux.
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip
Wait for downloading to be finished. It may take up to 2 to 5 minutes to download Ngrok depending upon your Internet speed.
4. Type the below command in your Termux to unzip the Ngrok folder.
unzip ngrok-stable-linux-arm.zip5. After Unzipping, use the below command to give Ngrok permission to read, write, and execute.
chmod +x ngrok6. Now open the Ngrok website by clicking the link below:
Now click on the Signup button, and then create a new account on Ngrok.
Now you need to confirm the Ngrok account. Open your email to confirm your Ngrok account. There you will see Ngrok email. Simply open that mail and click on the confirm account button.
7. Now login to Ngrok with your Email Id and Password and search for auth token on the Ngrok page. Then simply type the below command in your Termux And replace <YOUR_AUTH_TOKEN> with your auth token.
./ngrok authtoken YOUR_AUTH_TOKEN_HERENote: Replace <YOUR_AUTH_TOKEN> with your auth token.
Running the above command will add your auth token to your ngrok.yml file. Connecting an account will display a list of open tunnels on the dashboard, giving you longer tunnel timeouts.
8. Therefore, Ngrok has been successfully installed on your Termux. Use the following command to see how to use Ngrok in Termux.
./ngrok helpNote: To solve Ngrok reconnecting issue open your mobile hotspot and start Ngrok again.
Here is a video From our YouTube channel on How to install Ngrok in Termux:
Thanks For Giving Your Valuable Time To Read Our Article.
Happy Hacking 👍




0 Comments