Ngrok
The ngrok tool makes local services available on the global network, even if the computer does not have a static IP address and is behind NAT and firewalls.
With ngrok, any port on local computer will be accessible from the Internet through a secure tunnel. For example, can make our local web server accessible from the Internet via a direct link without additional configuration.
Ngrok Download:
1. Browse ngrok.com
2. Sign up to register
After login we will directed to ngrok dashboard, To use ngrok, must be first authenticate it using the ngrok executable file from the unzipped folder. Copy the authenticate token which is highlighted in the below screenshot.
Then, paste it to the terminal.
Ngrok on http:
Enable apache2:
Start forwarding the http port using ngrok.
Forwarding http address to https://......ngrok.io which is in below screenshot. Http port is now accessible in what is written in https://........ngrok and now we can access it using this URL.
Ngrok on ssh:
Get Deepa Moktan’s stories in your inbox
Join Medium for free to get updates from this writer.
Enable ssh
Start forwarding the ssh port using ngrok.
Forwarding SSH address to tcp://….ngrok.io:18040 which is in below screenshot. SSH port is now accessible in what is written in tcp://0.tcp.in.ngrok.io.18040 and now we can access it using this URL.
Reverse Shell:
Start forwarding the ssh port using ngrok.
Forwarding ssh address to tcp://….ngrok.io:18152 which is in below screenshot. SSH port is now accessible in what is written in tcp://0.tcp.in.ngrok.io.18152 and now we can access it using this URL.
Listening on the port 8800
On the target machine, using reverse shell payload on the ngrok tunnel target.





