Hey guys welcome to our another useful blog post.In my previous posts I explained that how we can create tunnels using ngrok and cloudflare.In this tutorial I am going to explain an another useful method of port forwarding for Termux, using ssh and localhost.run.
What is ssh tunneling
An ssh tunnel is a method of transporting data that uses the secure shell (ssh) protocol. It can be used to create a secure connection between two hosts, or to tunnel traffic through an insecure network.
Send whatsapp messages with voice command
Types of ssh tunneling
Remote port forwarding on Termux with ssh , localhost.run
Remote port forwarding is a technique used to bypass firewalls and access blocked websites or services. It is also used to connect to a remote computer or server securely. When you enable remote port forwarding, you create a secure tunnel between your computer and the remote computer or server. Data passing through this tunnel is encrypted, so it cannot be read by anyone else.
Below is the steps of forwarding ports on Termux with ssh and localhost.run
Step1
Step2
Step3
Now create an HTML file index.html with vim editor.Copy the whole script given below
<html>
<body>
<h1>
This is a demo website
</h1>
</body>
</html>
Then use the command
and paste the script which you had copied.Then press ESC + : +wq and hit the ENTR to save the file.
Step4
After creating the index.html file we have to start the php server.So copy paste the given command on Termux to start the php server
Step5
After executing the above command you will get a message "Enter file in which to save the key" press the Enter button then termux will ask you to enter your password .Do it carefully then your rsa key will be generated successfully.
keep in mind that your password will not be visible while typing. So don't be fooled and type your password correctly.
How to setup Cloudflare on Termux for port forwarding
Step6
Now we are all set to create our tunnel with localhost.run , just copy paste the below command on Termux.
It will ask you to enter your password again ,do it and press Enter. Wait for a few seconds and you will get the link ends with lhrtunnel.link.Now you can send this link to anyone.
To be confirm, copy the link and paste it into your Google Chrome browser, the output will look like this 👇
2 Comments
How to use this link to camphish?
ReplyDeleteHow to use in metasploit bro
ReplyDelete