-
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
Mac applications ignore proxychains after successful preloading #181
Comments
Duplicate of #78 |
@valkjsaaa Thanks but like I said at beginning, it shouldn't be SIP problem... |
@yi-ji you are right, but unfortunately i cannot tell you what the issue is, due to lack of apple hardware. int close(int fd) {
...
} you can comment out the block by putting it between |
Hi @rofl0r , First many thanks to your quick reply and kind help! Though not fully understanding, I tried your suggestion (as in yi-ji@b631b02), compiled it and tested again, but unfortunately the outcome is exactly the same. Also, as you mentioned this change will make proxychains not work for ssh, but I tested, it still works for ssh. But I am pretty sure I made those changes as you told. So, seems we haven't found the real reason causing the issue yet? |
that's weird, your commit looks correct. maybe you forgot to install the newly built libproxychains.dylib after you compiled it ? |
sorry for late reply.
and I verified it
and also when I launch proxychains and the application, this dylib is surely accessed. In addition, I complied version 4.11 (before issue #119) and it still doesn't work. An interesting thing is that someone is using proxychains for the same app as me in #119 but his problem is simply fixed by the master branch while I am not. TAT And finally an important observation: proxychains works for some apps such as firefox. But NeteaseMusic is not the only failed app either. |
well, the way proxychains does things is a hack and will always stay a hack (as mentioned on top of the README).
|
I updated the output info with DEBUG defined, in the first comment, top of this page. (I enabled
So I tried to comment out these two lines, and printed out
The weirdest thing is that even if the above outputs look like proxychains is working, but still NeteaseMusic can work normally (I haven't set up the proxy server at port 9050 yet). This does not happen in Firefox case (Firefox cannot open webpages if proxy server is down). For more info about this app, NeteaseMusic, I pasted outputs from
I think we are close to the answer...again I would like to thank you for your patience all the time :) |
stupid am I ... I noticed that This confused me because what I want to forward to proxy server are GET and POST requests. They are HTTP requests and should base on TCP. Why didn't they appear in the debug info? (I am sure about GET and POST are sent from NeteaseMusic, shown by a web debugging software). Another failed app gave the some debug info (sock family = AF_SYSTEM, sock type = SOCK_DGRAM) so I am thinking maybe still somewhere is wrong and can be solved. |
referred from rofl0r#181
i guess we could improve debug mode to output that we deal with UDP... but yeah, the address family you got there is weird. check your mac's include directory and grep for AF_INET or PF_INET to find out which named option 32 corresponds to. |
I have checked <socket.h> at follows:
and they have same definitions:
So now I am not sure how to further debug. I set up my proxy server, and sadly no HTTP request is received. Finally I found an alternative for my purpose. I have tried
Many thanks for all the help. But maybe it's time to give up on finding out why a hack it's not working -- like you said, hack does not always work. 😢 |
thanks, according to you paste #define AF_SYSTEM 32 /* Kernel event messages */ that means the thing you were looking at was some sort of kernel event socket(?) communication. |
I'm hitting this with the Mac App Store version of Airmail 3, where the application also ignores the proxy. |
if "this" means "doesn't work on mac" i think you should look at the other mac specific issues. |
Sorry for being a bit vague. You're right, I hadn't gotten to that bit of the issue yet, so seems like this doesn't have the same issue here. Yes, I had attempted copying it to the home folder and running it from there, so I think there's something else going on. Also seeing libc++ libraries when doing a I suspect it's something to do with CFNetwork, since I see log messages like: |
遇到同样的问题 |
Hi,
I have almost read all the similar issues but still no luck, so I opened a new one here for some help.
I am with MacOS 10.12, I want to use proxychains for a Mac application (Netease Music).
I am aware of the SIP problem. Running apps under
/Applications
shouldn't be affected, but I still copied the application from/Application
to my home dir.When I run in with DEBUG, I got:
and no more output after these. The application just run as usual, totally ignoring the proxy setting.
Here is some debug info may be helpful:
Also, to prove that proxychains should work for this app, I used
ldd
to find out the dynamically loaded libs:Also I set a breakpoint at
connect
function usinglldb
, and I got:when i hit run, I got two kinds of breakpoint stop (mostly the first):
and
I am not sure about which should be the hooked function. I hope this info is useful.
Of course I tested on some other programs such as ping and curl, it had no problem.
I also tested on some other Mac applications, failed in the same way (proxychains ignored).
Out of ideas now. I would really appreciate some kind help.
The text was updated successfully, but these errors were encountered: