New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxychains4 with brew for MacOs error #109

Closed
bobbuilder123 opened this Issue Feb 22, 2016 · 39 comments

Comments

Projects
None yet
@bobbuilder123

Here is the error:
MacBook-Pro:~ Bob$ proxychains4 nmap -sS 192.168.5.1
[proxychains] config file found: /usr/local/Cellar/proxychains-ng/4.11/etc/proxychains.conf
[proxychains] preloading /usr/local/Cellar/proxychains-ng/4.11/lib/libproxychains4.dylib
dyld: could not load inserted library '/usr/local/Cellar/proxychains-ng/4.11/lib/libproxychains4.dylib' because no suitable image found. Did find:
/usr/local/Cellar/proxychains-ng/4.11/lib/libproxychains4.dylib: mach-o, but wrong architecture
Any idea what to do? Here is my question asked on superuser: https://superuser.com/questions/1029102/how-to-install-proxychains-for-mac-os/1044016

@rofl0r

This comment has been minimized.

Show comment
Hide comment
@rofl0r

rofl0r Feb 22, 2016

Owner

try to run configure with --fat-binary i.e. ./configure --fat-binary ...
you may have to change that in the homebrew recipe.

Owner

rofl0r commented Feb 22, 2016

try to run configure with --fat-binary i.e. ./configure --fat-binary ...
you may have to change that in the homebrew recipe.

@bobbuilder123

This comment has been minimized.

Show comment
Hide comment
@bobbuilder123

bobbuilder123 Feb 23, 2016

I installed it and it now seems to work but when I run: proxychains4 open -a /Applications/Firefox.app http://whatsmyip.org, it would print my real ip. Would you have an idea why?

I installed it and it now seems to work but when I run: proxychains4 open -a /Applications/Firefox.app http://whatsmyip.org, it would print my real ip. Would you have an idea why?

@bobbuilder123

This comment has been minimized.

Show comment
Hide comment
@bobbuilder123

bobbuilder123 Feb 23, 2016

I have a question I must ask: when performing a syn scan on https://www.google.ca, I can see that the destination is indeed 184.150.182.231 (google's ip) and not my tor's proxy. Would you know why? Is it something I did not understand about networking or would it be a normal behavior?

I have a question I must ask: when performing a syn scan on https://www.google.ca, I can see that the destination is indeed 184.150.182.231 (google's ip) and not my tor's proxy. Would you know why? Is it something I did not understand about networking or would it be a normal behavior?

@rofl0r

This comment has been minimized.

Show comment
Hide comment
@rofl0r

rofl0r Feb 23, 2016

Owner

it's normal behaviour that google has google's ip.
however whatsmyip should print the ip of the proxy. it probably works if you run the firefox binary directly i.e. proxychains4 /Applications/Firefox.app/name_of_binary_here or if you just change the proxy settings directly in firefox (i.e. without using proxychains).

Owner

rofl0r commented Feb 23, 2016

it's normal behaviour that google has google's ip.
however whatsmyip should print the ip of the proxy. it probably works if you run the firefox binary directly i.e. proxychains4 /Applications/Firefox.app/name_of_binary_here or if you just change the proxy settings directly in firefox (i.e. without using proxychains).

@rofl0r rofl0r closed this Feb 23, 2016

@leebaird

This comment has been minimized.

Show comment
Hide comment
@leebaird

leebaird Sep 1, 2016

Still having the same issue with v4.11

leebaird commented Sep 1, 2016

Still having the same issue with v4.11

@XasaKura

This comment has been minimized.

Show comment
Hide comment
@XasaKura

XasaKura Sep 16, 2016

I have use brew install proxychains-ng --universal but still have the same issue with v4.11

PS:
output:

==> ./configure --prefix=/usr/local/Cellar/proxychains-ng/4.11 --sysconfdir=/usr/local/Cellar/proxychains-ng/4.11/etc --fat-binary
checking whether netinet/in.h defines s6_addr16 ... no
checking whether netinet/in.h defines __u6_addr.__u6_addr16 ... yes
checking whether $CC defines __OpenBSD__ ... no
Configuring a fat binary for i386 and x86_64
Done, now run make && make install

AND SIP:

csrutil status
System Integrity Protection status: disabled.

homebrew config:
https://github.com/Homebrew/homebrew-core/blob/master/Formula/proxychains-ng.rb

XasaKura commented Sep 16, 2016

I have use brew install proxychains-ng --universal but still have the same issue with v4.11

PS:
output:

==> ./configure --prefix=/usr/local/Cellar/proxychains-ng/4.11 --sysconfdir=/usr/local/Cellar/proxychains-ng/4.11/etc --fat-binary
checking whether netinet/in.h defines s6_addr16 ... no
checking whether netinet/in.h defines __u6_addr.__u6_addr16 ... yes
checking whether $CC defines __OpenBSD__ ... no
Configuring a fat binary for i386 and x86_64
Done, now run make && make install

AND SIP:

csrutil status
System Integrity Protection status: disabled.

homebrew config:
https://github.com/Homebrew/homebrew-core/blob/master/Formula/proxychains-ng.rb

@rofl0r

This comment has been minimized.

Show comment
Hide comment
@rofl0r

rofl0r Sep 16, 2016

Owner

@XasaKura your PS output above seems to miss the output of make (compiler invocations etc). did you leave that away intentionally ?

Owner

rofl0r commented Sep 16, 2016

@XasaKura your PS output above seems to miss the output of make (compiler invocations etc). did you leave that away intentionally ?

@XasaKura

This comment has been minimized.

Show comment
Hide comment
@XasaKura

XasaKura Sep 17, 2016

@rofl0r I only copy the part of configure

@rofl0r I only copy the part of configure

@rofl0r

This comment has been minimized.

Show comment
Hide comment
@rofl0r

rofl0r Sep 17, 2016

Owner

well, in that case it is weird. maybe pastebin the entire output of running the brew install command to give us more clues what went wrong. i'm reopening this until we can rule out that there's something wrong on our side.

Owner

rofl0r commented Sep 17, 2016

well, in that case it is weird. maybe pastebin the entire output of running the brew install command to give us more clues what went wrong. i'm reopening this until we can rule out that there's something wrong on our side.

@rofl0r rofl0r reopened this Sep 17, 2016

@awar

This comment has been minimized.

Show comment
Hide comment
@awar

awar Oct 26, 2016

@bobbuilder123 This can resolve your problem.
uninstalling your proxychain on brew with rmtree and install again this way brew install proxychains-ng --universal

awar commented Oct 26, 2016

@bobbuilder123 This can resolve your problem.
uninstalling your proxychain on brew with rmtree and install again this way brew install proxychains-ng --universal

@yangnw

This comment has been minimized.

Show comment
Hide comment
@yangnw

yangnw Oct 26, 2016

same problem here.
first, installed with brew without --universal. works but not with system bins.
then disabled SIP. works for a few minutes after startup. but then quite suddenly this error shows up.
brew remove and brew install --universal, but still doesn't work.
cloned and ./configure --fat-binary. still doesn't work.

I will reenable SIP to see if this is fixed.

yangnw commented Oct 26, 2016

same problem here.
first, installed with brew without --universal. works but not with system bins.
then disabled SIP. works for a few minutes after startup. but then quite suddenly this error shows up.
brew remove and brew install --universal, but still doesn't work.
cloned and ./configure --fat-binary. still doesn't work.

I will reenable SIP to see if this is fixed.

@yangnw

This comment has been minimized.

Show comment
Hide comment
@yangnw

yangnw Oct 26, 2016

./configure --fat-binary

checking whether netinet/in.h defines s6_addr16 ... no
checking whether netinet/in.h defines u6_addr.__u6_addr16 ... yes
checking whether $CC defines __OpenBSD
... no
Configuring a fat binary for i386 and x86_64
Done, now run make && make install

make

cc -DSUPER_SECURE -Ds6_addr16=__u6_addr.__u6_addr16 -Ds6_addr32=__u6_addr.__u6_addr32 -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DIS_MAC=1 -arch i386 -arch x86_64 -DLIB_DIR="/usr/local/lib" -DSYSCONFDIR="/usr/local/etc" -DDLL_NAME="libproxychains4.dylib" -fPIC -c -o src/nameinfo.o src/nameinfo.c
printf '#define VERSION "%s"\n' "$(sh tools/version.sh)" > src/version.h
cc -DSUPER_SECURE -Ds6_addr16=__u6_addr.__u6_addr16 -Ds6_addr32=__u6_addr.__u6_addr32 -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DIS_MAC=1 -arch i386 -arch x86_64 -DLIB_DIR="/usr/local/lib" -DSYSCONFDIR="/usr/local/etc" -DDLL_NAME="libproxychains4.dylib" -fPIC -c -o src/version.o src/version.c
cc -DSUPER_SECURE -Ds6_addr16=__u6_addr.__u6_addr16 -Ds6_addr32=__u6_addr.__u6_addr32 -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DIS_MAC=1 -arch i386 -arch x86_64 -DLIB_DIR="/usr/local/lib" -DSYSCONFDIR="/usr/local/etc" -DDLL_NAME="libproxychains4.dylib" -fPIC -c -o src/core.o src/core.c
cc -DSUPER_SECURE -Ds6_addr16=__u6_addr.__u6_addr16 -Ds6_addr32=__u6_addr.__u6_addr32 -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DIS_MAC=1 -arch i386 -arch x86_64 -DLIB_DIR="/usr/local/lib" -DSYSCONFDIR="/usr/local/etc" -DDLL_NAME="libproxychains4.dylib" -fPIC -c -o src/common.o src/common.c
cc -DSUPER_SECURE -Ds6_addr16=__u6_addr.__u6_addr16 -Ds6_addr32=__u6_addr.__u6_addr32 -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DIS_MAC=1 -arch i386 -arch x86_64 -DLIB_DIR="/usr/local/lib" -DSYSCONFDIR="/usr/local/etc" -DDLL_NAME="libproxychains4.dylib" -fPIC -c -o src/libproxychains.o src/libproxychains.c
cc -DSUPER_SECURE -Ds6_addr16=__u6_addr.__u6_addr16 -Ds6_addr32=__u6_addr.__u6_addr32 -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DIS_MAC=1 -arch i386 -arch x86_64 -DLIB_DIR="/usr/local/lib" -DSYSCONFDIR="/usr/local/etc" -DDLL_NAME="libproxychains4.dylib" -fPIC -c -o src/allocator_thread.o src/allocator_thread.c
cc -DSUPER_SECURE -Ds6_addr16=__u6_addr.__u6_addr16 -Ds6_addr32=__u6_addr.__u6_addr32 -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DIS_MAC=1 -arch i386 -arch x86_64 -DLIB_DIR="/usr/local/lib" -DSYSCONFDIR="/usr/local/etc" -DDLL_NAME="libproxychains4.dylib" -fPIC -c -o src/ip_type.o src/ip_type.c
cc -DSUPER_SECURE -Ds6_addr16=__u6_addr.__u6_addr16 -Ds6_addr32=__u6_addr.__u6_addr32 -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DIS_MAC=1 -arch i386 -arch x86_64 -DLIB_DIR="/usr/local/lib" -DSYSCONFDIR="/usr/local/etc" -DDLL_NAME="libproxychains4.dylib" -fPIC -c -o src/hostsreader.o src/hostsreader.c
cc -DSUPER_SECURE -Ds6_addr16=__u6_addr.__u6_addr16 -Ds6_addr32=__u6_addr.__u6_addr32 -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DIS_MAC=1 -arch i386 -arch x86_64 -DLIB_DIR="/usr/local/lib" -DSYSCONFDIR="/usr/local/etc" -DDLL_NAME="libproxychains4.dylib" -fPIC -c -o src/hash.o src/hash.c
cc -DSUPER_SECURE -Ds6_addr16=__u6_addr.__u6_addr16 -Ds6_addr32=__u6_addr.__u6_addr32 -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DIS_MAC=1 -arch i386 -arch x86_64 -DLIB_DIR="/usr/local/lib" -DSYSCONFDIR="/usr/local/etc" -DDLL_NAME="libproxychains4.dylib" -fPIC -c -o src/debug.o src/debug.c
cc -fPIC -ldl -lpthread -arch i386 -arch x86_64 -Wl,-install_name,libproxychains4.dylib
-shared -o libproxychains4.dylib src/nameinfo.o src/version.o src/core.o src/common.o src/libproxychains.o src/allocator_thread.o src/ip_type.o src/hostsreader.o src/hash.o src/debug.o
cc -DSUPER_SECURE -Ds6_addr16=__u6_addr.__u6_addr16 -Ds6_addr32=__u6_addr.__u6_addr32 -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DIS_MAC=1 -arch i386 -arch x86_64 -DLIB_DIR="/usr/local/lib" -DSYSCONFDIR="/usr/local/etc" -DDLL_NAME="libproxychains4.dylib" -fPIC -c -o src/main.o src/main.c
cc src/main.o src/common.o -o proxychains4

csrutil status

System Integrity Protection status: disabled.

./proxychains4 brew update

[proxychains] config file found: /Users/Yang/.proxychains/proxychains.conf
[proxychains] preloading ./libproxychains4.dylib
dyld: warning: could not load inserted library './libproxychains4.dylib' into library validated process because no suitable image found. Did find:
./libproxychains4.dylib: code signing blocked mmap() of './libproxychains4.dylib'
dyld: warning: could not load inserted library './libproxychains4.dylib' into library validated process because no suitable image found. Did find:
./libproxychains4.dylib: code signing blocked mmap() of './libproxychains4.dylib'
dyld: warning: could not load inserted library './libproxychains4.dylib' into library validated process because no suitable image found. Did find:
./libproxychains4.dylib: code signing blocked mmap() of './libproxychains4.dylib'
^C

yangnw commented Oct 26, 2016

./configure --fat-binary

checking whether netinet/in.h defines s6_addr16 ... no
checking whether netinet/in.h defines u6_addr.__u6_addr16 ... yes
checking whether $CC defines __OpenBSD
... no
Configuring a fat binary for i386 and x86_64
Done, now run make && make install

make

cc -DSUPER_SECURE -Ds6_addr16=__u6_addr.__u6_addr16 -Ds6_addr32=__u6_addr.__u6_addr32 -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DIS_MAC=1 -arch i386 -arch x86_64 -DLIB_DIR="/usr/local/lib" -DSYSCONFDIR="/usr/local/etc" -DDLL_NAME="libproxychains4.dylib" -fPIC -c -o src/nameinfo.o src/nameinfo.c
printf '#define VERSION "%s"\n' "$(sh tools/version.sh)" > src/version.h
cc -DSUPER_SECURE -Ds6_addr16=__u6_addr.__u6_addr16 -Ds6_addr32=__u6_addr.__u6_addr32 -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DIS_MAC=1 -arch i386 -arch x86_64 -DLIB_DIR="/usr/local/lib" -DSYSCONFDIR="/usr/local/etc" -DDLL_NAME="libproxychains4.dylib" -fPIC -c -o src/version.o src/version.c
cc -DSUPER_SECURE -Ds6_addr16=__u6_addr.__u6_addr16 -Ds6_addr32=__u6_addr.__u6_addr32 -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DIS_MAC=1 -arch i386 -arch x86_64 -DLIB_DIR="/usr/local/lib" -DSYSCONFDIR="/usr/local/etc" -DDLL_NAME="libproxychains4.dylib" -fPIC -c -o src/core.o src/core.c
cc -DSUPER_SECURE -Ds6_addr16=__u6_addr.__u6_addr16 -Ds6_addr32=__u6_addr.__u6_addr32 -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DIS_MAC=1 -arch i386 -arch x86_64 -DLIB_DIR="/usr/local/lib" -DSYSCONFDIR="/usr/local/etc" -DDLL_NAME="libproxychains4.dylib" -fPIC -c -o src/common.o src/common.c
cc -DSUPER_SECURE -Ds6_addr16=__u6_addr.__u6_addr16 -Ds6_addr32=__u6_addr.__u6_addr32 -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DIS_MAC=1 -arch i386 -arch x86_64 -DLIB_DIR="/usr/local/lib" -DSYSCONFDIR="/usr/local/etc" -DDLL_NAME="libproxychains4.dylib" -fPIC -c -o src/libproxychains.o src/libproxychains.c
cc -DSUPER_SECURE -Ds6_addr16=__u6_addr.__u6_addr16 -Ds6_addr32=__u6_addr.__u6_addr32 -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DIS_MAC=1 -arch i386 -arch x86_64 -DLIB_DIR="/usr/local/lib" -DSYSCONFDIR="/usr/local/etc" -DDLL_NAME="libproxychains4.dylib" -fPIC -c -o src/allocator_thread.o src/allocator_thread.c
cc -DSUPER_SECURE -Ds6_addr16=__u6_addr.__u6_addr16 -Ds6_addr32=__u6_addr.__u6_addr32 -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DIS_MAC=1 -arch i386 -arch x86_64 -DLIB_DIR="/usr/local/lib" -DSYSCONFDIR="/usr/local/etc" -DDLL_NAME="libproxychains4.dylib" -fPIC -c -o src/ip_type.o src/ip_type.c
cc -DSUPER_SECURE -Ds6_addr16=__u6_addr.__u6_addr16 -Ds6_addr32=__u6_addr.__u6_addr32 -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DIS_MAC=1 -arch i386 -arch x86_64 -DLIB_DIR="/usr/local/lib" -DSYSCONFDIR="/usr/local/etc" -DDLL_NAME="libproxychains4.dylib" -fPIC -c -o src/hostsreader.o src/hostsreader.c
cc -DSUPER_SECURE -Ds6_addr16=__u6_addr.__u6_addr16 -Ds6_addr32=__u6_addr.__u6_addr32 -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DIS_MAC=1 -arch i386 -arch x86_64 -DLIB_DIR="/usr/local/lib" -DSYSCONFDIR="/usr/local/etc" -DDLL_NAME="libproxychains4.dylib" -fPIC -c -o src/hash.o src/hash.c
cc -DSUPER_SECURE -Ds6_addr16=__u6_addr.__u6_addr16 -Ds6_addr32=__u6_addr.__u6_addr32 -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DIS_MAC=1 -arch i386 -arch x86_64 -DLIB_DIR="/usr/local/lib" -DSYSCONFDIR="/usr/local/etc" -DDLL_NAME="libproxychains4.dylib" -fPIC -c -o src/debug.o src/debug.c
cc -fPIC -ldl -lpthread -arch i386 -arch x86_64 -Wl,-install_name,libproxychains4.dylib
-shared -o libproxychains4.dylib src/nameinfo.o src/version.o src/core.o src/common.o src/libproxychains.o src/allocator_thread.o src/ip_type.o src/hostsreader.o src/hash.o src/debug.o
cc -DSUPER_SECURE -Ds6_addr16=__u6_addr.__u6_addr16 -Ds6_addr32=__u6_addr.__u6_addr32 -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DIS_MAC=1 -arch i386 -arch x86_64 -DLIB_DIR="/usr/local/lib" -DSYSCONFDIR="/usr/local/etc" -DDLL_NAME="libproxychains4.dylib" -fPIC -c -o src/main.o src/main.c
cc src/main.o src/common.o -o proxychains4

csrutil status

System Integrity Protection status: disabled.

./proxychains4 brew update

[proxychains] config file found: /Users/Yang/.proxychains/proxychains.conf
[proxychains] preloading ./libproxychains4.dylib
dyld: warning: could not load inserted library './libproxychains4.dylib' into library validated process because no suitable image found. Did find:
./libproxychains4.dylib: code signing blocked mmap() of './libproxychains4.dylib'
dyld: warning: could not load inserted library './libproxychains4.dylib' into library validated process because no suitable image found. Did find:
./libproxychains4.dylib: code signing blocked mmap() of './libproxychains4.dylib'
dyld: warning: could not load inserted library './libproxychains4.dylib' into library validated process because no suitable image found. Did find:
./libproxychains4.dylib: code signing blocked mmap() of './libproxychains4.dylib'
^C

@awar

This comment has been minimized.

Show comment
Hide comment
@awar

awar Oct 26, 2016

@yangnw have you uninstalled with rmtree brew rmtree proxychains-ng if you haven't rmtree package you can install it whit brew tap beeftornado/rmtree && brew install brew-rmtree and next install brew install proxychains-ng --universal. I have osx yosemite and work correctly

awar commented Oct 26, 2016

@yangnw have you uninstalled with rmtree brew rmtree proxychains-ng if you haven't rmtree package you can install it whit brew tap beeftornado/rmtree && brew install brew-rmtree and next install brew install proxychains-ng --universal. I have osx yosemite and work correctly

@yangnw

This comment has been minimized.

Show comment
Hide comment
@yangnw

yangnw Oct 26, 2016

re-enabled SIP and restarted, now works again.
but system binaries do not work now, as before I disabled SIP.

@awar it's probably due to macOS Sierra messing with SIP or something.

yangnw commented Oct 26, 2016

re-enabled SIP and restarted, now works again.
but system binaries do not work now, as before I disabled SIP.

@awar it's probably due to macOS Sierra messing with SIP or something.

@HTNecro

This comment has been minimized.

Show comment
Hide comment
@HTNecro

HTNecro Nov 15, 2016

@yangnw I have same problem, does brew update work correctly now?

HTNecro commented Nov 15, 2016

@yangnw I have same problem, does brew update work correctly now?

@lucklove

This comment has been minimized.

Show comment
Hide comment
@lucklove

lucklove Nov 16, 2016

The same with me.

The same with me.

@yangnw

This comment has been minimized.

Show comment
Hide comment
@yangnw

yangnw Nov 18, 2016

@HTNecro @lucklove I've enabled SIP, and now it works with the brew build of proxychains.

The downside is that you can't proxy-chain a binary in /usr/bin and other system paths, etc. curl. to use it, move the binary away or use proxychains4 wget -O - $url.

Same behavior regardless built from source or homebrew build. This should have nothing to do with homebrew. Try enabling SIP if you have disabled it before.

yangnw commented Nov 18, 2016

@HTNecro @lucklove I've enabled SIP, and now it works with the brew build of proxychains.

The downside is that you can't proxy-chain a binary in /usr/bin and other system paths, etc. curl. to use it, move the binary away or use proxychains4 wget -O - $url.

Same behavior regardless built from source or homebrew build. This should have nothing to do with homebrew. Try enabling SIP if you have disabled it before.

@yangnw

This comment has been minimized.

Show comment
Hide comment
@yangnw

yangnw Nov 27, 2016

@HTNecro update: brew seems to use to the system curl regardless of the path, so I have to run etc. ALL_PROXY=socks5://127.0.0.1:1080 brew upgrade to get it working.

yangnw commented Nov 27, 2016

@HTNecro update: brew seems to use to the system curl regardless of the path, so I have to run etc. ALL_PROXY=socks5://127.0.0.1:1080 brew upgrade to get it working.

@crapthings

This comment has been minimized.

Show comment
Hide comment
@crapthings

crapthings Jan 12, 2017

open terminal with osx recovery mode

csrutil disable
reboot
brew tap beeftornado/rmtree && brew install brew-rmtree
brew install proxychains-ng

~/.proxychains/proxychains.conf

strict_chain
proxy_dns
remote_dns_subnet 224
tcp_read_time_out 15000
tcp_connect_time_out 8000
localnet 127.0.0.0/255.0.0.0
quiet_mode

[ProxyList]
socks5  127.0.0.1 1080
csrutil enable

open terminal with osx recovery mode

csrutil disable
reboot
brew tap beeftornado/rmtree && brew install brew-rmtree
brew install proxychains-ng

~/.proxychains/proxychains.conf

strict_chain
proxy_dns
remote_dns_subnet 224
tcp_read_time_out 15000
tcp_connect_time_out 8000
localnet 127.0.0.0/255.0.0.0
quiet_mode

[ProxyList]
socks5  127.0.0.1 1080
csrutil enable
@motecshine

This comment has been minimized.

Show comment
Hide comment

@crapthings its work for me

@jinfagang

This comment has been minimized.

Show comment
Hide comment
@jinfagang

jinfagang Mar 22, 2017

same issue, I think I am going f**ked up by this anoying problem. Any one occured this on macOS sierra?

same issue, I think I am going f**ked up by this anoying problem. Any one occured this on macOS sierra?

@louisabraham

This comment has been minimized.

Show comment
Hide comment
@louisabraham

louisabraham Apr 3, 2017

@jinfagang I had no problem two months ago, but now have the same issue…

@jinfagang I had no problem two months ago, but now have the same issue…

@rofl0r

This comment has been minimized.

Show comment
Hide comment
@rofl0r

rofl0r Apr 3, 2017

Owner

please report homebrew issues to the homebrew issue tracker, thanks!

Owner

rofl0r commented Apr 3, 2017

please report homebrew issues to the homebrew issue tracker, thanks!

@louisabraham

This comment has been minimized.

Show comment
Hide comment
@louisabraham

louisabraham Apr 3, 2017

Actually, I solved this problem by building from source.

EDIT: (my bad, I forgot between yesterday, I edit to make it clear to everyone)

On OS X you just have to run

git clone https://github.com/rofl0r/proxychains-ng
cd proxychains-ng
./configure --prefix=/usr/local --bindir=/usr/local/bin --libdir=/usr/local/lib --fat-binary
make
make install

louisabraham commented Apr 3, 2017

Actually, I solved this problem by building from source.

EDIT: (my bad, I forgot between yesterday, I edit to make it clear to everyone)

On OS X you just have to run

git clone https://github.com/rofl0r/proxychains-ng
cd proxychains-ng
./configure --prefix=/usr/local --bindir=/usr/local/bin --libdir=/usr/local/lib --fat-binary
make
make install
@rofl0r

This comment has been minimized.

Show comment
Hide comment
@rofl0r

rofl0r Apr 3, 2017

Owner

running configure will overwrite config.mak, so it was probably the other way round.
also you can pass bindir and libdir as parameters to configure, so you dont have to edit at all:

./configure --prefix=/usr/local --bindir=/usr/local/bin --libdir=/usr/local/lib --fat-binary
Owner

rofl0r commented Apr 3, 2017

running configure will overwrite config.mak, so it was probably the other way round.
also you can pass bindir and libdir as parameters to configure, so you dont have to edit at all:

./configure --prefix=/usr/local --bindir=/usr/local/bin --libdir=/usr/local/lib --fat-binary
@gregakinman

This comment has been minimized.

Show comment
Hide comment
@gregakinman

gregakinman Apr 6, 2017

The above steps did not work for me on OS X 10.11.6...

The above steps did not work for me on OS X 10.11.6...

@louisabraham

This comment has been minimized.

Show comment
Hide comment
@louisabraham

louisabraham Apr 6, 2017

@gregakinman what is your error message?

@gregakinman what is your error message?

@gregakinman

This comment has been minimized.

Show comment
Hide comment
@gregakinman

gregakinman Apr 6, 2017

@louisabraham

$ proxychains4 ./gradlew idea --no-daemon
[proxychains] config file found: /usr/local/etc/proxychains.conf
[proxychains] preloading proxychains-ng/libproxychains4.dylib
proxychains can't load process....: Permission denied

gregakinman commented Apr 6, 2017

@louisabraham

$ proxychains4 ./gradlew idea --no-daemon
[proxychains] config file found: /usr/local/etc/proxychains.conf
[proxychains] preloading proxychains-ng/libproxychains4.dylib
proxychains can't load process....: Permission denied
@louisabraham

This comment has been minimized.

Show comment
Hide comment
@louisabraham

louisabraham Apr 6, 2017

@gregakinman That's absolutely not the same problem! Use sudo

@gregakinman That's absolutely not the same problem! Use sudo

@iFurySt

This comment has been minimized.

Show comment
Hide comment
@iFurySt

iFurySt Apr 10, 2017

brew install proxychains-ng --universal
it work for me (macOS Sierra 10.12.3)

iFurySt commented Apr 10, 2017

brew install proxychains-ng --universal
it work for me (macOS Sierra 10.12.3)

@gregakinman

This comment has been minimized.

Show comment
Hide comment
@gregakinman

gregakinman Apr 10, 2017

$ brew install proxychains-ng --universal
Warning: proxychains-ng: this formula has no --universal option so it will be ignored!

$ brew --version
Homebrew 1.1.12
Homebrew/homebrew-core (git revision 600f; last commit 2017-04-10)

But I'm still on OSX 10.11.6 so if this is an El Cap vs. Sierra thing then I'll see myself out.

gregakinman commented Apr 10, 2017

$ brew install proxychains-ng --universal
Warning: proxychains-ng: this formula has no --universal option so it will be ignored!

$ brew --version
Homebrew 1.1.12
Homebrew/homebrew-core (git revision 600f; last commit 2017-04-10)

But I'm still on OSX 10.11.6 so if this is an El Cap vs. Sierra thing then I'll see myself out.

@cnlonlyrain

This comment has been minimized.

Show comment
Hide comment
@cnlonlyrain

cnlonlyrain Apr 22, 2017

@louisabraham It work for me thanks!

cnlonlyrain commented Apr 22, 2017

@louisabraham It work for me thanks!

@geekwutom

This comment has been minimized.

Show comment
Hide comment
@geekwutom

geekwutom Jul 5, 2017

The above steps did not work for me on OS X 10.12.5..

The above steps did not work for me on OS X 10.12.5..

@rofl0r

This comment has been minimized.

Show comment
Hide comment
@rofl0r

rofl0r Jul 6, 2017

Owner

The above steps did not work for me on OS X 10.12.5..

that's pretty vague. post more details, including brew output and error messages you get when using it. someone using mac may be able to figure out what's wrong, @geekwutom

Owner

rofl0r commented Jul 6, 2017

The above steps did not work for me on OS X 10.12.5..

that's pretty vague. post more details, including brew output and error messages you get when using it. someone using mac may be able to figure out what's wrong, @geekwutom

@zhilevan

This comment has been minimized.

Show comment
Hide comment
@zhilevan

zhilevan Sep 25, 2017

I've tried all solutions in MAC OS but no one works for me and still facing with

proxychains4 curl twitter.com
[proxychains] config file found: /usr/local/etc/proxychains.conf
[proxychains] preloading /usr/local/Cellar/proxychains-ng/4.12_1/lib/libproxychains4.dylib

I've tried all solutions in MAC OS but no one works for me and still facing with

proxychains4 curl twitter.com
[proxychains] config file found: /usr/local/etc/proxychains.conf
[proxychains] preloading /usr/local/Cellar/proxychains-ng/4.12_1/lib/libproxychains4.dylib

@rofl0r

This comment has been minimized.

Show comment
Hide comment
@rofl0r

rofl0r Sep 25, 2017

Owner

@zhilevan i can't see anything wrong in the output you posted

Owner

rofl0r commented Sep 25, 2017

@zhilevan i can't see anything wrong in the output you posted

@big3er

This comment has been minimized.

Show comment
Hide comment
@big3er

big3er Apr 22, 2018

i am same

proxychains4 git --version
[proxychains] config file found: /usr/local/etc/proxychains.conf
[proxychains] preloading /usr/local/lib/libproxychains4.dylib
[proxychains] DLL init: proxychains-ng 4.12-git-15-gbb30d86
dyld: warning: could not load inserted library '/usr/local/lib/libproxychains4.dylib' into library validated process because no suitable image found.  Did find:
	/usr/local/lib/libproxychains4.dylib: code signing blocked mmap() of '/usr/local/lib/libproxychains4.dylib'
	/usr/local/lib/libproxychains4.dylib: stat() failed with errno=1
git version 2.15.1 (Apple Git-101)

macOS 10.13.4
Homebrew 1.6.1
System Integrity Protection status: disabled.

Use curl can work,
but i run git,error

big3er commented Apr 22, 2018

i am same

proxychains4 git --version
[proxychains] config file found: /usr/local/etc/proxychains.conf
[proxychains] preloading /usr/local/lib/libproxychains4.dylib
[proxychains] DLL init: proxychains-ng 4.12-git-15-gbb30d86
dyld: warning: could not load inserted library '/usr/local/lib/libproxychains4.dylib' into library validated process because no suitable image found.  Did find:
	/usr/local/lib/libproxychains4.dylib: code signing blocked mmap() of '/usr/local/lib/libproxychains4.dylib'
	/usr/local/lib/libproxychains4.dylib: stat() failed with errno=1
git version 2.15.1 (Apple Git-101)

macOS 10.13.4
Homebrew 1.6.1
System Integrity Protection status: disabled.

Use curl can work,
but i run git,error

@rofl0r

This comment has been minimized.

Show comment
Hide comment
@rofl0r

rofl0r Apr 22, 2018

Owner

the relevant part is this

	/usr/local/lib/libproxychains4.dylib: code signing blocked mmap() of '/usr/local/lib/libproxychains4.dylib'

there is some code signing restriction active that prevents the dylib from getting loaded

maybe google around how that code signing can be deactivated, and let us know if you find anything. thanks.

Owner

rofl0r commented Apr 22, 2018

the relevant part is this

	/usr/local/lib/libproxychains4.dylib: code signing blocked mmap() of '/usr/local/lib/libproxychains4.dylib'

there is some code signing restriction active that prevents the dylib from getting loaded

maybe google around how that code signing can be deactivated, and let us know if you find anything. thanks.

@rofl0r

This comment has been minimized.

Show comment
Hide comment
@rofl0r

rofl0r Jul 13, 2018

Owner

closing as duplicate of #78

Owner

rofl0r commented Jul 13, 2018

closing as duplicate of #78

@rofl0r rofl0r closed this Jul 13, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment