2011-02-25 09:40:11 +00:00
|
|
|
#!/bin/sh
|
|
|
|
echo "ProxyChains-3.1 (http://proxychains.sf.net)"
|
2011-02-25 12:21:34 +00:00
|
|
|
|
|
|
|
usage() {
|
|
|
|
|
2011-02-25 09:40:11 +00:00
|
|
|
echo " usage:"
|
2011-02-25 12:21:34 +00:00
|
|
|
echo " $0 [h] [f config-file] <prog> [args]"
|
2011-02-25 09:40:11 +00:00
|
|
|
exit
|
2011-02-25 12:21:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if [ $# = 0 ] ; then
|
|
|
|
usage
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $1 = "-h" ]; then
|
|
|
|
usage
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$1" = "-f" ]; then
|
|
|
|
export PROXYCHAINS_CONF_FILE=$2;
|
|
|
|
shift;
|
|
|
|
shift;
|
2011-02-25 09:40:11 +00:00
|
|
|
fi
|
2011-02-25 12:21:34 +00:00
|
|
|
|
|
|
|
export LD_PRELOAD=libproxychains.so.3
|
2011-02-25 09:40:11 +00:00
|
|
|
exec "$@"
|