返回顶部
c

captcha-relay

Human-in-the-loop CAPTCHA solving with two modes: screenshot (default, zero infrastructure) and token relay (requires network access). Screenshot mode captures the page with a grid overlay, sends it to the human, and injects clicks based on their reply. Token relay mode detects CAPTCHA type + sitekey, serves the real widget on a relay page for native solving, and injects the token via CDP.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 2.1.0
安全检测
已通过
658
下载量
0
收藏
概述
安装方式
版本历史

captcha-relay

# CAPTCHA Relay v2 Solve CAPTCHAs by relaying them to a human. Two modes available. ## Modes ### Screenshot Mode (default) — No infrastructure needed Grid overlay screenshot → send image to human via Telegram → human replies with cell numbers → inject clicks. - **Zero setup** beyond the skill itself. No Tailscale, no tunnels, no relay server. - Works for **any** CAPTCHA type (reCAPTCHA, hCaptcha, sliders, text, etc.) - Uses `sharp` for image processing + CDP for screenshots and click injection. ```bash node index.js # screenshot mode (default) node index.js --mode screenshot # explicit node index.js --screenshot # legacy alias ``` ```js const { solveCaptchaScreenshot } = require('./index'); const capture = await solveCaptchaScreenshot({ cdpPort: 18800 }); // capture.imagePath — annotated screenshot to send to human // capture.prompt — text prompt for the human ``` ### Token Relay Mode — Requires network access Detects CAPTCHA type + sitekey → serves real widget on relay page → human solves natively → token injected via CDP. - Requires **Tailscale** or a **tunnel** (localtunnel/cloudflared) so the human's device can reach the relay server. - Produces a proper CAPTCHA token — more reliable for reCAPTCHA v2, hCaptcha, Turnstile. - Best when you have Tailscale already set up. ```bash node index.js --mode relay # with localtunnel node index.js --mode relay --no-tunnel # with Tailscale/LAN ``` ```js const { solveCaptcha } = require('./index'); const result = await solveCaptcha({ cdpPort: 18800, useTunnel: false }); // result.relayUrl — URL to send to human // result.token — solved CAPTCHA token ``` ## When to Use Each | Scenario | Mode | |----------|------| | Quick & easy, no setup | `screenshot` | | Any CAPTCHA type (sliders, text, etc.) | `screenshot` | | Known CAPTCHA with sitekey (reCAPTCHA, hCaptcha, Turnstile) | `relay` | | Tailscale already configured | `relay` | | No network access to host | `screenshot` | ## CLI Flags | Flag | Default | Description | |------|---------|-------------| | `--mode screenshot\|relay` | `screenshot` | Select solving mode | | `--screenshot` | — | Alias for `--mode screenshot` | | `--no-inject` | inject | Return token without injecting into browser | | `--no-tunnel` | tunnel | Skip tunnel, use local/Tailscale IP (relay mode) | | `--timeout N` | 120 | Timeout in seconds | | `--cdp-port N` | 18800 | Chrome DevTools Protocol port | ## Agent Workflow ### Screenshot mode (simplest) 1. Call `solveCaptchaScreenshot({ cdpPort })` 2. Send `capture.imagePath` to human via `message` tool with `capture.prompt` 3. Human replies with cell numbers (e.g. "1,3,5,7") 4. Call `injectGridClicks(cdpPort, capture, selectedCells)` to click those cells ### Relay mode 1. Call `solveCaptcha({ useTunnel: false })` (Tailscale) or `solveCaptcha()` (tunnel) 2. Send `result.relayUrl` to human via `message` tool 3. Wait — resolves when human completes the CAPTCHA 4. Token is auto-injected; continue automation ## Requirements - Chrome/Chromium with `--remote-debugging-port=18800` - Node.js 18+ and `npm install` (deps: ws, sharp) - **Relay mode only:** Tailscale or internet for tunnel

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 captcha-relay-1776419963 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 captcha-relay-1776419963 技能

通过命令行安装

skillhub install captcha-relay-1776419963

下载 Zip 包

⬇ 下载 captcha-relay v2.1.0

文件大小: 30.88 KB | 发布时间: 2026-4-17 20:15

v2.1.0 最新 2026-4-17 20:15
Initial publish — human-in-the-loop CAPTCHA solving via screenshot or token relay

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部