proxychains-ng icon indicating copy to clipboard operation
proxychains-ng copied to clipboard

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

Open Hyper-glitch opened this issue 2 years ago • 6 comments

I mean image

Is it possible?

I have tried cases: ${PROXY1} $PROXY1

but it does not work

Hyper-glitch avatar Apr 26 '22 15:04 Hyper-glitch

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

rofl0r avatar Apr 26 '22 16:04 rofl0r

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?)

Hyper-glitch avatar Apr 27 '22 15:04 Hyper-glitch

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.

rofl0r avatar Apr 27 '22 16:04 rofl0r

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)

Hyper-glitch avatar Apr 27 '22 18:04 Hyper-glitch

it installed just with snap...

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

rofl0r avatar Apr 27 '22 19:04 rofl0r

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

Hyper-glitch avatar Apr 27 '22 19:04 Hyper-glitch