Skip to content

Instantly share code, notes, and snippets.

@ekiara
Last active July 20, 2023 16:46
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save ekiara/d1a8491c9ecd0d1007a709cf6a7027be to your computer and use it in GitHub Desktop.
Save ekiara/d1a8491c9ecd0d1007a709cf6a7027be to your computer and use it in GitHub Desktop.
Using wget with socks proxy
# using-wget-with-socks-proxy
# This should work for everything includeing curl, pip, pipenv, etc
# TLDR: Use proxychains (https://github.com/haad/proxychains)
## INSTALL PROXY CHAINS ##
$ sudo apt update -y
$ sudo apt install proxychains
## EDIT PROXYCHAINS CONFIG ##
$ sudo vim /etc/proxychains.conf
>>>>
socks4 127.0.0.1 18888
<<<<
## USE PROXYCHAINS ##
proxychains pip install django
proxychains pipenv install djangorestframework
curl https://www.thething.com/to/be/downloaded.pdf
@Ja7ad
Copy link

Ja7ad commented Dec 4, 2020

Thank you it's useful

@slrslr
Copy link

slrslr commented Dec 18, 2021

So this sets proxy for all command line launched apps and i have to disable it then somehow i guess..

@thenoobtester
Copy link

@slrslr No it doesn't, only for command line launched apps prefixed with proxychains, i.e >proxychains your_command_here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment