• Uncategorized

About linux : error-in-ngrok—failed-to-complete-tunnel-connection

Question Detail

So I just wanted to create some phishing websites to try them out but now whenever I try to create one via ngrok or just start ngrok ./ngrok http 80 and then visit the site it shows me this –

Failed to complete tunnel connection
The connection to https://xxx.xxx.ngrok.io was successfully tunneled to your ngrok client, but the client failed to establish a connection to the local address localhost:80.
Make sure that a web service is running on localhost:80 and that it is a valid address
the error encountered was: dial tcp [::1]:80:Connect:connection refused.

and also google shows a warning to these whenever I visit them
any suggestions?

Question Answer

You should create a local server on port 80 . Use php or python to create a local server .

PHP

~$ php -S localhost:80

Python

~$ python -m http.server 80

After starting the local server open a new terminal session and start ngrok

~$ ./ngrok  http 80

You can create a link with ssh also .make sure that you have installed ssh.

~$  php -S localhost:80 | ssh -R 80:localhost:80 ssh.localhost.run

or

~$  python -m localhost:80 | ssh -R 80:localhost:80 ssh.localhost.run

By the way chrome will automatically detect the phishing pages.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.