A problem that may be faced by all of them who are new to the cyber-security world is, "how you can send a file, payload, or host a phishing site without port forwarding your network".
So, what is the meaning of Port forwarding, and why is it needed? Click here to Learn about Port Forwarding.
In this article, we are going to explore, how you can install and configure ngrok on your Linux machine.
What ngrok is and How it works?
Ngrok
allows you to expose a web server running on your local machine to the
internet. Just tell ngrok what port your web server is listening on.
If
you don't know what port your web server is listening on, it's probably port
80, the default for HTTP.
Let's see how does it operate?
- You download and run a program on your machine and provide it the port of a network service, usually a Web Server.
- It connects to the ngrok cloud service which accepts traffic on a public address and relays that traffic through to the ngrok process running on your machine and then on to the local address, you specified.
- Now we are going to install ngrok on my Kali Linux. You can also install ngrok in Windows.
Steps to Install Ngrok
1. First of all, you have to download ngrok from the there official site and click download to download the file.
Download Ngrok
Ngrok is a powerful tool that allows you to expose local servers behind NATs and firewalls to the public internet over secure tunnels. This link directs you to the official Ngrok website where you can download the tool for your operating system.
2. Unzip the downloaded file. To unzip the file, right-click on the file and click Extract here. Otherwise, you can use the terminal as well. Open the terminal from here and type the following command:
Congratulation! You have to learn how to install ngrok.
Let’s
perform an example that can help to understand how ngrok works.
For this purpose, I have an HTML webpage. Click index.html to check how it looks. Watch the complete video to learn how ngrok works.