Pivoting
Setting up proxychains with metasploit
Use
use post/multi/manage/autoroutemodule in Metasploit (make sure meterpreter is backgrounded) to create routing of the traffic through the session ID of the compromised machineIn the autoroute module, set
SESSION,SUBNET(The subnet your machine cant see but the other machine can), andNETMASKthen run the moduleAfter the module completes,
use auxiliary/server/socks4amodule to create a proxy server in MetasploitSet
SRVHOST(your IP) andSRVPORT(any port number) then run the moduleAfter the socks4a server started, open the terminal and edit
/etc/proxychains.confby adding a linesocks4 127.0.0.1 <portnumber>Now you can run any command in the terminal through the meterpreter session by adding
proxychainsword in front of the command, e.g.,proxychains nmap -A -T4 <ip>
References
Last updated
Was this helpful?


