使用proxychains

在linux上使用proxychains启动带有使用代理服务器的进程

安装

 # sudo apt install proxychains

使用:

1.编辑配置文件加入要使用的代理服务器
2.启动程序

编辑配置文件

系统全局配置文件(所有用户使用)

/etc/proxychians.conf

个人全局配置文件(当前用户使用)

~/.proxychains/proxychains.conf

如果没有可以把/etc/的那一份当模板复制过来

在配置文件中加入代理服务器

# proxychains.conf  VER 3.1
#
#        HTTP, SOCKS4, SOCKS5 tunneling proxifier with DNS.
#	

# The option below identifies how the ProxyList is treated.
# only one option should be uncommented at time,
# otherwise the last appearing option will be accepted
#
dynamic_chain

# dynamic_chain 模式代表从列表上往下使用代理服务器,如果第一个代理服务器不能用就会换第二个,第二个不能用会换第3个.......
#
# Dynamic - Each connection will be done via chained proxies
# all proxies chained in the order as they appear in the list
# at least one proxy must be online to play in chain
# (dead proxies are skipped)
# otherwise EINTR is returned to the app
#
#strict_chain
# 静态模式只会使用列表的第一个代理服务器
#
# Strict - Each connection will be done via chained proxies
# all proxies chained in the order as they appear in the list
# all proxies must be online to play in chain
# otherwise EINTR is returned to the app
#
#random_chain
# 随机使用列表中的代理服务器
# Random - Each connection will be done via random proxy
# (or proxy chain, see  chain_len) from the list.
# this option is good to test your IDS :)

# Make sense only if random_chain
#chain_len = 2

# Quiet mode (no output from library)
#quiet_mode

# Proxy DNS requests - no leak for DNS data
#proxy_dns 

# Some timeouts in milliseconds
tcp_read_time_out 15000
tcp_connect_time_out 8000

# ProxyList format
#       type  host  port [user pass]
#       (values separated by 'tab' or 'blank')
#
#
#        Examples:
#
#            	socks5	192.168.67.78	1080	lamer	secret
#		http	192.168.89.3	8080	justu	hidden
#	 	socks4	192.168.1.49	1080
#	        http	192.168.39.93	8080	
#		
#
#       proxy types: http, socks4, socks5
#        ( auth types supported: "basic"-http  "user/pass"-socks )
#
[ProxyList]
# add proxy here ...
# meanwile
# defaults set to "tor"
http 	127.0.0.1 8080
# 默认的tor代理如果不用可以删掉

比如我想加入一个socks4的代理服务器

socks4     服务器IP    端口

启动一个使用代理服务器的进程

# proxychains wget http://www.google.com

启动一个带有proxychains的wget来抓取google主页

1赞

目前来说,sudo proxychains parrot-upgrade 会报一个 firejail的用户错误

我不用firejail,这个不知道,你直接切换root看看


服务器资源由ZeptoVM赞助

Partners Wiki IRC