ProxyChains is a program that allows us to force any TCP connection made by an application through a proxy. In this recipe, we will be discussing the task of breaking the direct connection between the receiver and the sender by forcing the connection of given applications through a user-defined list of proxies.
How to do it...
Let's begin the process of setting up ProxyChains:
1. Open the ProxyChains configuration file:
vim /etc/proxychains.conf
2. Uncomment the chaining type we want to use, in this case dynamic_chain:
3. Add some proxy servers to the list:
4. Resolve the target host through our chained proxies:
proxyresolv www.targethost.com
5. Now we can run ProxyChains through the application we want to use. For example:
proxychains msfconsole