Pivoting SMB&Netbios

I am actually confused why in pivoting we use autorouting and use module like socks_proxy ? can anyone please help me to understand this in detail

Hi,

Pivoting is a concept in pentesting to move or traverse to other machines that are part of the same network or disocver other networks and move in to those networks. So within a network the only way to move around to other machines is to add routes and so autoroute is the way to do in a metsaploit msf framework. Sock_Proxy is a module that makes the compromised machine a proxy which allows you to move or pivot into other internal networks.