-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Not working on OS X 10.11 due to SIP #78
Comments
Logs above are moved from #74 |
It only happens if you execute a system binary using proxychains, e.g. proxychains4 ssh user@server. For now, a workaround is to copy the executable to another location (e.g. cp /usr/bin/ssh ~/XXX), and use it (e.g. proxychains4 ~/XXX/ssh user@server). You can modify the path variable so that ~/XXX/ssh is executed instead of /usr/bin/ssh, when you just type "ssh". |
@tais9 worked of me |
In OSX 10.11 otherwise, proxychains cannot apply to /bin/* /usr/bin/* /System* ... unfortunately most script with #!/usr/bin/env XXX |
I find that if you move the executable file(proxychains4) to your home folder(like ~/bin), and then you need to change the PATH value. If you do this, you don't have to disable the SIP, , it will works with no error @Willian-Zhang |
If do not want to disalbe SIP, you can use pyenv to solve this. Use pyenv install a local python version(of cuz, you can install a python use make && make install from source). And then run command like this |
Update
For those who's disabling SIP to make it work: Disabling partial SIPRun |
Nice. Disabling SIP's debug indeed works. Though it did complain and echo
For anyone who wanna have a better sense of what SIP does and how to configure it, you can read it up here (which I stumbled upon it while I was reading a SE post) or just check out the apple doc |
For those like me who do not wish to disable SIP, note that it is possible to use proxychains-ng with Homebrew-installed executables (or linked dupes) as SIP doesn't cover /usr/local. E.g. to use Homebrew's curl (with Tor in the .conf file here):
Then:
Perhaps this could be added to the README section where this issue is mentioned? |
@MatzFan please elaborate on "linked dupes". is there a possibility to use e.g. ssh with a softlink or a hardlink ? |
Using the curl example you can do Not tried ssh, but any Homebrew-installed binary should work with proxychains like this on El Cap., as SIP doesn't affect the directory where all brewed symlinks go. |
Homebrew openssh seems to work (using Tor in my .conf file):
|
because of SIP, you can't use proxychains-ng to proxy a execute which is in system dir like /usr/bin. But /usr/local/bin can works. Something like youtube-dl with call python which is in /usr/bin, install a Homebrew python or others can solve it. |
|
Hello all, i'm not expert to fellow up but it seems i have a problem may be similar and related to this SIP, and i would be gratefull if someone could help. |
@kakashisan how about trying the things recommended here ? |
Thank you for the fast reply here when i scp: |
oh so the problem is that scp starts ssh from /usr/bin. maybe you can fix that by overriding PATH pointing to where your copy of the ssh binary is, for example:
this assumes that "ssh" as well as "scp" are in /Users/didisan. |
i did it before by adding the path but it stills excecutes the binary one : |
For |
Acorrding to Apple we should use path like /usr/local instead of /usr or /usr/bin etc since OS X El Capitan. See https://support.apple.com/en-us/HT204899.
==> Downloading https://homebrew.bintray.com/bottles/proxychains-ng-4.12_1.el_ca
==> Downloading https://homebrew.bintray.com/bottles/curl-7.53.1.el_capitan.bott
|
@tais9 |
On mac 10.14.2,
How do I get rid of this error? |
In mac 10.14, why ? and how do I solve this error? |
I have this problem too. |
same problem for me on |
same issues here |
I am using Ubuntu 19.04 and I still can't launch GUI programme in a graphic way. |
you volunteer? great! btw, your comment has nothing to do with the issue discussed here, so post further updates about your work in a new issue/PR. |
I can solve this problem!!!! Problemfirst Solve itinstall curl by brew FinallyIn case I use zsh. Goal |
Same issue, fixed for some commands as @tais9 said. |
MacOS Ventura 13.2.1, Brew install an new curl on mac then using proxychains with the new curl filepath to solove this problem.
|
PS: remember to add their path to |
generally it doesn't work.
version
testcase
Config
Test
like
[proxychains] DLL init: proxychains-ng 4.10
?on my non-el-capitan OS X, it does and it works
any idea how to fix it?
yes, disabling it would led to success in working of proxy chains
Disabling SIP
Run
csrutil disable
in Recovery mode@rofl0r any luck with this problem?
The text was updated successfully, but these errors were encountered: