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

proxychains4 not work when using with nvm #115

Open panezhang opened 8 years ago

panezhang commented 8 years ago

proxychains4 nvm ls-remote

[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/local/lib/libproxychains4.dylib
proxychains can't load process....: No such file or directory

could anyone help?

rofl0r commented 8 years ago

try to use the full path to nvm binary

example proxychains4 /bin/nvm ls-remote

since you're using an apple its likely in another location though maybe which nvm tells you the full path

iapolog2u commented 8 years ago

If you have an https proxy, e.g., use polipo's port 8123 to proxy socks5's port 1080

You can do it like below

https_proxy=https://127.0.0.1:8123 nvm ls-remote
NemoAlex commented 6 years ago

Hit the same issue. I created a bash script then run it with proxychains to solve the problem. nvm-script.sh:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm ls-remote

Run it:

proxychains4 bash nvm-script.sh

Edit: Rename the script to avoid misunderstand.

rofl0r commented 6 years ago

your nvm.sh calls itself ? or what's inside "$NVM_DIR/nvm.sh" ?

NemoAlex commented 6 years ago

@rofl0r No it's not, just a coincidence their names are same. $NVM_DIR/nvm.sh is provided by nvm. See it here: https://github.com/creationix/nvm/blob/master/nvm.sh

rofl0r commented 6 years ago

ok, thanks for clarification