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 fail on curl check while proxychains-ng successfully installed on macOS with Homebrew `brew` and config looks good #561

Closed alemens closed 7 months ago

alemens commented 7 months ago

➜ brew install proxychains-ng

➜ brew info proxychains-ng

==> proxychains-ng: stable 4.17 (bottled), HEAD
Hook preloader
https://github.com/rofl0r/proxychains-ng
/usr/local/Cellar/proxychains-ng/4.17 (10 files, 192KB) *
  Poured from bottle using the formulae.brew.sh API on 2024-04-09 at 00:11:20
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/p/proxychains-ng.rb
License: GPL-2.0-or-later
==> Options
--HEAD
    Install HEAD version
==> Analytics
install: 637 (30 days), 2,501 (90 days), 6,466 (365 days)
install-on-request: 636 (30 days), 2,500 (90 days), 6,463 (365 days)
build-error: 12 (30 days)

➜ brew services info tor

Running: ✅

➜ curl --socks5 127.0.0.1:9050 https://check.torproject.org/api/ip

{"IsTor":true,"IP":"83.111.109.101"}

Error

➜ proxychains4 curl https://check.torproject.org/api/ip

[proxychains] config file found: /usr/local/etc/proxychains.conf
[proxychains] preloading /usr/local/Cellar/proxychains-ng/4.17/lib/libproxychains4.dylib
{"IsTor":false,"IP":""}

Config

➜ cat /usr/local/etc/proxychains.conf

dynamic_chain
proxy_dns_daemon 127.0.0.1:9050
remote_dns_subnet 127 
tcp_read_time_out 15000
tcp_connect_time_out 8000
[ProxyList]
socks5  127.0.0.1 9050

Environment

➜ sw_vers

ProductName:        macOS
ProductVersion:     14.4.1
BuildVersion:       23E224

➜ brew -v

Homebrew 4.2.17-18-gcb42d27
Homebrew/homebrew-core (git revision afc6efc5616; last commit 2024-04-08)
Homebrew/homebrew-cask (git revision 6fa3683437; last commit 2024-04-08)
rofl0r commented 7 months ago

read the pinned issue about the security stuff you have to disable in OSX, and that preloading only works for non-system binaries (i.e. you have to use homebrew version of curl or copy curl binary to /home).