rofl0r / proxychains-ng

proxychains ng (new generation) - a preloader which hooks calls to sockets in dynamically linked programs and redirects it through one or more socks/http proxies. continuation of the unmaintained proxychains project. the sf.net page is currently not updated, use releases from github release page instead.
http://sourceforge.net/projects/proxychains-ng/files
GNU General Public License v2.0
9.82k stars 1.08k forks source link

change env variables during execution #48

Open pranavk opened 9 years ago

pranavk commented 9 years ago

Does this new generation proxychains do something with environment variables. It seems that some of the programs that I am running with proxychains-ng and which read environment variables are no longer working because proxychains-ng wouldn't let it read the env variables.

Though I never faced this problem with proxychains 3.1

nemysis commented 9 years ago

Best is to restart proxychains-ng when is changed your SSH Shell

rofl0r commented 9 years ago

it shouldn't, since execvp (used by main.c to start the target process) passes the old environ on. as a quick test, do proxychains4 bash -c export