I have a shell in a remote machine. I want to route my traffic in a dynamic way, so that can access say https://www.google.com via the IP address of the previously mentioned compromised machine.
I know you can route traffic to the internal network and access machines that otherwise have no connection to the outside. However, I want to know how one can use a compromised host as a proxy bounce of sorts.
Below is a rough sketch of how I want my traffic to go. ip*
represents the visible public IP address.
Attacker machine[ip1] -> Victim machine[ip2] -> Outside network[ip2]