背景
使用 Ubuntu,想在終端使用代理服務器,改了系統代理卻沒絲毫影響?試看看 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
參考
- 感謝學友 pangda
- ProxyChains