mac下使用proxychains实现代理

Sommaire de cet article :
  1. 301 Moved

介绍
proxychains - a tool that forces any TCP connection made by any given application to follow through proxy like TOR or any other SOCKS4, SOCKS5 or HTTP(S) proxy. Supported auth-types: "user/pass" for SOCKS4/5, "basic" for HTTP.
翻译一下:就是一个强制你的tcp连接使用代理的工具,支持socks4,socks5并且socks4/5支持用户名和密码的方式,http支持basic验证.之前发过一篇<<mac系统配置socks5转http代理>> 是用的转换工具,使用的时候,再配置上代理.而用这个工具的话,配置一次,用的时候就不用再操作了,比较方便

安装

其它平台叫proxychains,在OSX下叫proxychains-ng

brew install proxychains-ng
==> Downloading https://homebrew.bintray.com/bottles/proxychains-ng-4.14.catalina.bottle.tar.gz
######################################################################## 100.0%
==> Pouring proxychains-ng-4.14.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/proxychains-ng/4.14: 9 files, 87.5KB

配置

最后一行添加
vi /usr/local/etc/proxychains.conf
socks5 127.0.0.1 1080

使用

proxychains4 curl google.com
[proxychains] config file found: /usr/local/etc/proxychains.conf
[proxychains] preloading /usr/local/Cellar/proxychains-ng/4.14/lib/libproxychains4.dylib
[proxychains] DLL init: proxychains-ng 4.14
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  google.com:80  ...  OK

301 Moved

301 Moved

The document has moved here.

其它如wget,curl如法泡制,前面加proxychains4即可


相关博文

About rainbird

IOS攻城狮
This entry was posted in Mac and tagged , , , , , , , . Bookmark the permalink.

One Response to mac下使用proxychains实现代理

发表评论