AbelChe
rabbithole
Rust

🦀️ 一个完全使用Rust编写的代理池工具,从网络搜索socks5代理,检测可用性之后开启socks5代理服务。A proxy pool tool completely written in Rust, which searches for SOCKS5 proxies from the network, and after checking their availability, starts a SOCKS5 proxy service.

Last updated Apr 8, 2026
90
Stars
3
Forks
1
Issues
0
Stars/day
Attention Score
10
Language breakdown
No language data available.
Files click to expand
README

last-commit languages-top GitHub repo size

🦀 rabbithole 兔子洞

中文 | English

🦀一个完全使用Rust编写的代理池工具,从网络搜索socks5代理,检测可用性之后开启socks5代理服务。

易于使用

rabbithole -L socks5://user:pass@0.0.0.0:45678

🗃 数据来源说明

  • fofa、360quake、zoomeye空间搜索引擎
  • 互联网上公开的代理地址

🌟 使用

$ rabbithole -h

Searching public socks5 agents on the Internet, and start proxy pool service. Examples: # Searching socks5 proxy from fofa, zoomeye, quake and all others, and open proxy pool service on 0.0.0.0:7777 with authentication. rabbithole -L socks5://user:password@0.0.0.0:7777 --fofa-email <FOFAEMAIL> --fofa-token <FOFATOKEN> --zoomeyetoken <ZOOMEYETOKEN> --quake-token <QUAKE_TOKEN>

# Just searching socks5 proxy from free, and open socks5 proxy pool server on 0.0.0.0:7777 WITHOUT authentication. rabbithole -L socks5://0.0.0.0:7777 # Open socks5 proxy pool server on 0.0.0.0:7777 WITH authentication. rabbithole -L socks5://user:password@0.0.0.0:7777

# Of course, '--search-proxy' param could be set for searching from APIs. rabbithole --search-proxy socks5://127.0.0.1:7890

Usage: rabbithole [OPTIONS]

Options: --fofa-email <FOFA_EMAIL> Fofa email used by fofa api searching, --fofa-token <FOFA_TOKEN> Fofa API-token used by fofa api searching --fofa-size <FOFA_SIZE> How many pieces of data to search on fofa [default: 300] --zoomeye-token <ZOOMEYE_TOKEN> Zoomeye token used by zoomeye api searching --zoomeye-page-size <ZOOMEYEPAGESIZE> How many pages to search on zoomeye, 20 pieces of data per page [default: 5] --quake-token <QUAKE_TOKEN> Quake API-token used by quake api searching --quake-size <QUAKE_SIZE> How many pieces of data to search on quake [default: 200] -L, --listen <LISTEN> Proxy setting, need to be set as socks5://[user:[password@]]proxyhost:port [default: socks5://0.0.0.0:7777] -l, --level <LEVEL> Log level (debug, info, warn, error, trace) [default: info] --search-proxy <SEARCH_PROXY> Proxy for Searching from APIs --check-url <CHECK_URL> Checking URL for availability testing -z, --zone <ZONE> Zone of proxy, such as [0]inland-CN, [1]outside-CN(just HK,TW and MO), [2]exclude-CN(exclude CN,HK,TW and MO), [3]all-CN, [4]all [default: 4] --delay-test-address <DELAYTESTADDRESS> Delay testing address [default: http://httpbin.org/ip] --delay-test-timeout <DELAYTESTTIMEOUT> Delay testing timeout, in milliseconds, such as --delay-test-timeout 2000 [default: 5000] -h, --help Print help -V, --version Print version

image-20230320143950045

image-20230320144206346

🔨 TODO

  • 内外IP划分
1) 提供 -z --zone [0(defult), 1, 2] 参数划分为获取的代理是 所有 、 境内 还是 境外。这是给API搜索的时候提供筛选项 2) 在可用性检测的时候同时记录出口IP的位置,根据 -z --zone [0(defult), 1, 2] 参数指定的区域进行划分
  • 增加API搜索的时效性
  • 增加从文件获取代理地址的功能 -f --file [filename]
  • 增加导出文件功能,将搜索获取到的代理地址保存到文件中 -o --output [filename]
  • 增加 --delay-test-address [url(defult httpbin.org)] 参数指定可用性检测地址,--delay-test-timeout [time(default 5000ms)]参数指定检测超时时间
  • 增加重连功能,当前请求的代理无法使用时候,再使用其他随机代理进行重连,可以使用 --reconnect [times] 指定次数
🔗 More in this category

© 2026 GitRepoTrend · AbelChe/rabbithole · Updated daily from GitHub