rotateproxy
利用fofa搜索socks5开放代理进行代理池轮切的工具
特性
- 支持认证
- 代理列表优选策略:随机、或延时前多少位随机
帮助
> .\rotateproxy.exe -h
Usage of rotateproxy.exe:
-email string
email address
-l string
listen address (default ":8899")
-page int
the page count you want to crawl (default 5)
-pass string
authentication password
-region int
0: all 1: cannot bypass gfw 2: bypass gfw
-rule string
search rule (default "protocol==\"socks5\" && \"Version:5 Method:No Authentication(0x00)\" && after=\"2021-08-01\" && country=\"CN\"")
-token string
token
-user string
authentication username
安装
go get -u github.com/akkuman/rotateproxy/cmd/...
或者到发布页面进行下载
curl -L -o rotateproxy 'https://github.com/akkuman/rotateproxy/releases/latest/download/rotateproxy-linux-amd64'
chmod +x ./rotateproxy
@Rvn0xsy 提供 PR)
安装为linux服务(感谢- 下载相关文件
curl -L -o /usr/local/bin/rotateproxy 'https://github.com/akkuman/rotateproxy/releases/latest/download/rotateproxy-linux-amd64'
chmod +x /usr/local/bin/rotateproxy
curl -L -o /usr/lib/systemd/system/rotateproxy.service 'https://raw.githubusercontent.com/akkuman/rotateproxy/master/rotateproxy.service.example'
- 查看 rotateproxy.service.example 文件示例,将
/usr/lib/systemd/system/rotateproxy.service
文件中的ExecStart
的命令替换为你自己的命令 - 启动服务
# 开启服务
service rotateproxy start
# 关闭服务
service rotateproxy stop
# 重启服务
service rotateproxy restart
# 设置开机自启动
systemctl enable rotateproxy.service
- 使用
https_proxy=socks5://{ip}:{port} curl https://example.com
效果展示
mac 交叉编译
brew install FiloSottile/musl-cross/musl-cross
cd cmd/rotateproxy
CC=x86_64-linux-musl-gcc CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -ldflags "-linkmode external -extldflags -static"