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 doesn't work for she-bang commands on macOS #310

Open tommyZZM opened 4 years ago

tommyZZM commented 4 years ago

os: macOS 10.14.6

proxychains4 doesn't works for sha-bang commands on my machine. such as npm.

proxychains4 npm install npm -g
[proxychains] config file found: /usr/local/etc/proxychains.conf
[proxychains] preloading /usr/local/Cellar/proxychains-ng/4.14/lib/libproxychains4.dylib
⸨░░░░░░░░░░░░░░░░░░⸩ ⠏ loadRequestedDeps: sill install loadAllDepsIntoIdealTree

proxychains4 will work, if call npm directly with node

proxychains4 node /Users/MeXXX/.nvs/default/bin/npm install npm -g
[proxychains] config file found: /usr/local/etc/proxychains.conf
[proxychains] preloading /usr/local/Cellar/proxychains-ng/4.14/lib/libproxychains4.dylib
[proxychains] DLL init: proxychains-ng 4.14
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  registry.npmjs.org:443  ...  OK
⸨░░░░░░░░░░░░░░░░░░⸩ ⠏ loadRequestedDeps: sill install loadAllDepsIntoIdealTree
rofl0r commented 4 years ago

is there strace for macOS ? if so it could be used to compare what actually gets started and how.