banner
DarianBlog

DarianBlog

达里安博客-专注于技术分享与交流的博客。博客致力于创造一个简单而直接的技术学习平台。
email
telegram

ubuntu使用socks代理執行腳本教程

安裝 proxychains:sudo apt update && sudo apt install proxychains
編輯配置文件:sudo nano /etc/proxychains.conf,在文件末尾添加你的 SOCKS 代理地址,例如:socks5 127.0.0.1 1080(根據你的代理配置修改)
保存並退出編輯器(Ctrl+O,Enter,Ctrl+X)。

下面是示例代碼:

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

# 啟用靜默模式 - 抑制詳細的連接信息輸出 [1,6](@ref)
quiet_mode

# Proxy chaining mode [1,4](@ref)
# strict_chain 要求所有代理均在線,dynamic_chain 可跳過失效代理 [1](@ref)
strict_chain

# Disable proxy DNS to avoid resolution issues [1](@ref)
# 如果遇到DNS解析問題,可以嘗試取消註釋 proxydns,但通常建議註釋掉 [1](@ref)
# proxydns

# Timeout settings [1,4](@ref)
tcp_read_time_out 15000
tcp_connect_time_out 8000

# ProxyList format: type host port [user pass] [1,4](@ref)
[ProxyList]
# 按照 type ip port [user pass] 格式每行配置一個代理 [1,4](@ref)
socks5 你的IP 端口 用戶名 密碼

最後執行命令:proxychains 需要訪問的腳本命令,粘貼到後面

載入中......
此文章數據所有權由區塊鏈加密技術和智能合約保障僅歸創作者所有。