ProxyChains for Mac OS X patch.
Update 16 Jun 2011: Updated patch to replace proxyresolv awk expression with one that filters comments. This resolves the issue with proxyresolv on os x.
Update 15 Jun 2011: Patch now builds a universal binary with both 32bit and 64bit architectures. This solves the "dyld: could not load inserted library" error when using an executable built in a different architecture than the library.
This patch works against the ProxyChains 3.1 source, which you can get at http://prdownloads.sourceforge.net/proxychains/proxychains-3.1.tar.gz?download.
I've tested this on OS X 10.6.7 ONLY. I have no idea if this will work on other versions.
Patch for OS X: proxychains-3.1_osx.diff. From the directory above your source tree, apply with
patch -p0 < proxychains-3.1_osx.diff
I've setup the proxychains script to run from the source tree, like so:
If you want to run it from somewhere else, copy proxychains-3.1/proxychains/.libs/libproxychains.3.0.0.dylib to wherever you want it and modify the proxychains and proxyresolv scripts with the appropriate path.
24 Mar 2010 bgt[at]chrootlabs[.]org