{"id":13842138,"url":"https://github.com/akkuman/rotateproxy","last_synced_at":"2026-01-25T08:43:00.335Z","repository":{"id":39331315,"uuid":"418312084","full_name":"akkuman/rotateproxy","owner":"akkuman","description":"利用fofa搜索socks5开放代理进行代理池轮切的工具","archived":false,"fork":false,"pushed_at":"2025-05-20T01:36:04.000Z","size":129,"stargazers_count":820,"open_issues_count":6,"forks_count":138,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-07-11T15:29:16.998Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akkuman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-10-18T02:10:27.000Z","updated_at":"2025-07-05T10:50:45.000Z","dependencies_parsed_at":"2024-06-20T01:30:13.445Z","dependency_job_id":"21a8df13-b630-4dc5-8aab-826eb551607b","html_url":"https://github.com/akkuman/rotateproxy","commit_stats":null,"previous_names":[],"tags_count":50,"template":false,"template_full_name":null,"purl":"pkg:github/akkuman/rotateproxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akkuman%2Frotateproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akkuman%2Frotateproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akkuman%2Frotateproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akkuman%2Frotateproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akkuman","download_url":"https://codeload.github.com/akkuman/rotateproxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akkuman%2Frotateproxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28749778,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T08:31:04.260Z","status":"ssl_error","status_checked_at":"2026-01-25T08:30:28.859Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T17:01:27.936Z","updated_at":"2026-01-25T08:43:00.291Z","avatar_url":"https://github.com/akkuman.png","language":"Go","readme":"# rotateproxy\n\n利用 fofa 搜索 socks5 开放代理进行代理池轮切的工具\n\n## 特性\n\n- 支持认证\n- 代理列表优选策略：随机、或延时前多少位随机\n\n## 帮助\n\n```shell\n.\\rotateproxy.exe -h\nUsage of rotateproxy.exe:\n  -check string\n        check url (default \"https://www.google.com\")\n  -checkWords string\n        words in check url (default \"Copyright The Closure Library Authors\")\n  -email string\n        email address\n  -l string\n        listen address (default \":8899\")\n  -page int\n        the page count you want to crawl (default 5)\n  -pass string\n        authentication password\n  -proxy string\n        proxy\n  -region int\n        0: all 1: cannot bypass gfw 2: bypass gfw\n  -rule string\n        search rule (default \"protocol==\\\"socks5\\\" \u0026\u0026 \\\"Version:5 Method:No Authentication(0x00)\\\" \u0026\u0026 after=\\\"2025-03-01\\\" \u0026\u0026 country=\\\"CN\\\"\")\n  -strategy int\n        0: random, 1: Select the one with the shortest timeout (default 1)\n  -token string\n        token\n  -user string\n        authentication username\n```\n\n### 参数说明\n\n- `-check`，`-checkWords`: 如果你希望你找出来的代理能够访问某个特定网站，可以使用 `-check` 和 `-checkWords`，checkWords 为一串字符，用来保证确定是访问的该网站，比如 `-check \"https://www.google.com\" -checkWords \"Copyright The Closure Library Authors\"`，目的就是找出来的代理能够访问 [https://www.google.com](https://www.google.com)，并且返回内容中含有 `Copyright The Closure Library Authors`\n- `-email`，`-token`: fofa 的邮箱和 token\n- `-l`: 本服务的 socks5 监听地址\n- `-page`: fofa 结果默认爬取多少页（每页固定爬取 100 条）\n- `-user`，`-pass`: 本服务的 socks5 用户名密码认证\n- `-proxy`: 如果提供，将使用该 proxy 来访问 fofa 获取代理地址\n- `-region`: 用来筛选是否能访问谷歌\n\n## 安装\n\n```shell\ngo get -u github.com/akkuman/rotateproxy/cmd/...\n```\n\n或者到[发布页面](https://github.com/akkuman/rotateproxy/releases/latest)进行下载\n\n```shell\ncurl -L -o rotateproxy 'https://github.com/akkuman/rotateproxy/releases/latest/download/rotateproxy-linux-amd64'\nchmod +x ./rotateproxy\n```\n\n### 安装为 linux 服务（感谢 [@Rvn0xsy](https://github.com/Rvn0xsy) 提供 [PR](https://github.com/akkuman/rotateproxy/pull/4)）\n\n1. 下载相关文件\n\n```shell\ncurl -L -o /usr/local/bin/rotateproxy 'https://github.com/akkuman/rotateproxy/releases/latest/download/rotateproxy-linux-amd64'\nchmod +x /usr/local/bin/rotateproxy\ncurl -L -o /usr/lib/systemd/system/rotateproxy.service 'https://raw.githubusercontent.com/akkuman/rotateproxy/master/rotateproxy.service.example'\n```\n\n2. 查看 [rotateproxy.service.example](./rotateproxy.service.example) 文件示例，将 `/usr/lib/systemd/system/rotateproxy.service` 文件中的 `ExecStart` 的命令替换为你自己的命令\n\n3. 启动服务\n\n```shell\n# 开启服务\nservice rotateproxy start\n# 关闭服务\nservice rotateproxy stop\n# 重启服务\nservice rotateproxy restart\n# 设置开机自启动\nsystemctl enable rotateproxy.service\n```\n\n4. 使用\n\n```bash\ncurl --proxy \"socks5://127.0.0.1:8899\" https://example.com\n```\n\n## 效果展示\n\n![](./pics/curl-run.jpg)\n\n## 开发\n\n### 注意\n\n1. 该项目为了交叉编译方便，采用的 cgo-free 的 sqlite3 库，该库默认可能开启了 `SQLITE_FCNTL_PERSIST_WAL`，导致就算 Close 了数据库连接依旧不会删除 wal 文件，所以可能你会在 .db 旁边看到 -shm 和 -wal 文件，如果需要共享该数据库，请将这三个文件一并打包发送\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakkuman%2Frotateproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakkuman%2Frotateproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakkuman%2Frotateproxy/lists"}