-
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
Pyenv + Proxychains doesn't route requests through proxy #498
Comments
pyenv uses some sort of sandboxing, right ? that could be why. |
Hi, I got the same problem on Kali 2023.2a. curl works but not python/ruby scripts, no matter they are installed globally or from a local virtualenv. But it works when running the script with However it works when I run the same tool from Kali 2023.1 or I run from the provided VBox image, but not from my manually set up VBox machine.
I also tried strace and compared the output, one of the differences I notice is even both the log outputs I checked the two pinned issues but couldn't find what are the related security settings. Can anyone help point out what security settings are related to this behavior? Thanks! |
i mentioned that because op is using a mac. so crackmapexec is a ruby or python script ? make sure it's not written in go or calls programs written in go as they are statically linked by default and dont use the dynlinker, which is responsible for injecting the proxychains library. the new version on kali .2a might also do something to clear the environment variables, which would also prevent the hook from kicking in. |
thanks for the information. yes, crackmapexec is a python script and I also have problem with other ruby scripts as well. I don't think they are using any go binaries. it seems like some configuration problem as with sudo the proxychains works as expected. I will try to dig more and find out what happened. |
Finally found out the reason. It's because the following lines of code in my setup scripts:
Guess adding extra capability prevents it loads proxychains library on the newer Kali due to some security related changes. (I know this isn't a proper place to leave the comment, but just in case in the future someone is facing the same issue.) Thanks for all the help. |
Hi there,
I've been trying to get a pyenv installed version of python to route requests through proxychains on my mac. Unfortunately that hasn't been working. Other tools like nmap do work, but python won't.
Output when using proxychains with python:
Using:
pyenv 2.3.11
proxychains-ng from homebrew
Python 3.7.13 (via pyenv)
M1 Mac
The text was updated successfully, but these errors were encountered: