Im trying to build RAT to test on my computer. I use ngrok for hacking on WAN. But ngrok has a problem of changing its subdomain once the connection is reset. So, I cant use ngrok for hacking over WAN. I tried using ngrok sub-domain, but now it has become a premium plan. Please suggest me some alternatives for ngrok which will provide me constant subdomain even if the connection is reset. Also, suggest if there are any other methods for hacking over WAN other than SSH Tunneling, Using VPN and port forwarding.
I run https://serveo.net/. It provides a stable subdomain as you require, and as an added benefit, it uses SSH port forwarding, so you probably don't even need to install anything—just use your SSH client.
Use it like this (where localhost:9000 is the address you want to forward to):
ssh -R 80:localhost:9000 serveo.net
Or, to make sure you get a particular subdomain:
ssh -R magis:80:localhost:9000 serveo.net
(Where magis is a subdomain you were previously assigned.)
The Teleport "modern SSH" system has a feature whereby you can make your internal instance dial out to a cloud-hosted bastion and then come back inbound through that constantly re-established external connection. The feature is called 'Trusted Clusters' and it is part of its open source core. Teleport is a pure golang implementation of the SSH standard based on Google's crypto libraries. It supports all routine SSH things like port forwarding, rsync, etc. I've heard of ISPs who use Teleport on remotely deployed Raspberry Pis to diagnose issues on customers networks. There is no subscription side like ngrok and the tech may be overkill.