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.74k stars 1.07k forks source link

Can I get environment variables from linux and set them into the proxychains.conf? #445

Open Hyper-glitch opened 2 years ago

Hyper-glitch commented 2 years ago

I mean image

Is it possible?

I have tried cases: ${PROXY1} $PROXY1

but it does not work

rofl0r commented 2 years ago

proxychains.conf is a textfile, not a shell script. as such, variable expansion naturally doesn't work. however, you can create your proxychains.conf dynamically using a shell script, e.g. as proposed in https://github.com/rofl0r/proxychains-ng/issues/246

Hyper-glitch commented 2 years ago

Thanx! So I also have another question ahahah Can I run proxychains4 with microsocks in a docker container?) What argument I should add to proxychains4?)

rofl0r commented 2 years ago

Can I run proxychains4 with microsocks in a docker container?)

i'm certain you can, but that just makes it more difficult to generate a dynamic proxychains.conf. what's the advantage of using docker for this, apart from wasting a lot more RAM and disk space?

What argument I should add to proxychains4?)

i think proxychains4 microsocks -i 0.0.0.0 should work.

Hyper-glitch commented 2 years ago

To tell the truth the main problem that I had when tried to install microsocks on debian 10, it installed just with snap... but then I can't start proxychains4 with that microsocks on debian 10, more precisely

proxychains4 microsocks-simosx.microsocks

Therefore I've decided to try run microsocks in a docker container) that's it)

rofl0r commented 2 years ago

it installed just with snap...

the cool kids on github install stuff from source... )

Hyper-glitch commented 2 years ago

weeell huh it's time to become the cool kid !))