背景
使用 Ubuntu肛宋,想在終端使用代理服務(wù)器,改了系統(tǒng)代理卻沒(méi)絲毫影響誓沸?試看看 Proxychains 吧~
安裝
$ sudo apt-get install proxychains
修改配置文件
proxychains looks for config file in following order:
- file listed in environment variable PROXYCHAINS_CONF_FILE or
provided as a -f argument to proxychains script or binary.- ./proxychains.conf
- $(HOME)/.proxychains/proxychains.conf
- $(sysconfdir)/proxychains.conf **
** usually /etc/proxychains.conf
使用
在需要的命令前加上 proxychains
即可
$ proxychains python test.py
參考
- 感謝學(xué)友 pangda
- ProxyChains