Definition

Pivoting is accessing another network through the first network using a compromised machine:

Transclude of Pivoting.excalidraw

Pivoting

Through SSH

  1. Establish the proxy through an SSH connection
ssh -f -N -D <proxy-chains-config-port> -i pivot <user>@<user-ip>
# -f Runs the ssh session the background
# -N Perfect for port forwarding
# -D Binds the port specified
# -i Identity file 
  1. Run you commands through the proxy!
proxychains <command>