menu Ga1@xy's Wor1d
kali2020科学冲浪
122 浏览 | 2020-08-26 | 阅读时间: 约 1 分钟 | 分类: kali | 标签: kali
请注意,本文编写于 61 天前,最后修改于 44 天前,其中某些信息可能已经过时。

前言

在kali更新到2020后,原本直接修改网络设置中代理的方法不再好使,转而需要用到proxychains,在kali2020中已自带,不需要再单独安装,此篇文章将介绍基于物理机v2ray代理的通过proxychains完成的科学冲浪方式

过程

第一步

将vmware中虚拟机的网络连接改为桥接模式

第二步

将v2ray设置为允许来自局域网的连接

##

第三步

修改kali中proxychains的配置文件,文件所在目录

/etc/proxychains.conf

打开后里面的大致内容

# 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 - 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"

dynamic_chain前的#删去,在strict_chain前加上#,将最后的[ProxyList]部分最下面内容删去,然后加上如下格式的一行

socks5  [物理机ip] [v2ray本地监听端口]

例如

[ProxyList]
# add proxy here ...
# meanwile
# defaults set to "tor"
socks5  1.2.3.4 12345

修改结束后保存即可

第四步

检查是否配置成功

proxychains firefox www.google.com

能够成功访问即配置成功

其他

如果不想每次都使用这种命令行来访问,也可以直接修改浏览器的网络代理设置,以火狐为例

首选项 → 网络设置

保存配置后重启浏览器即可

使用方法

proxychains [命令]

其他文章

有关Ubuntu可参考:虚拟机使用物理机 v2ray 代理

发表评论

email
web

全部评论 (暂无评论)

info 还没有任何评论,你来说两句呐!