Sshuttle is another tool written in Python which removes the need to configure proxychains. However, this tool only works for pivoting over SSH and does not provide other options for pivoting over TOR or HTTPS proxy servers
Installing sshuttle
sudo apt-get install sshuttleRunning sshuttle
sudo sshuttle -r ubuntu@10.129.202.64 172.16.5.0/23 -v -r to connect to the remote machine with a username and password. Then we need to include the network or IP we want to route through the pivot host, in our case, is the network 172.16.5.0/23.
Traffic Routing through iptables Routes
nmap -v -sV -p3389 172.16.5.19 -A -Pn