← 返回 Skills 市场
bombfuock

Captcha Solver

作者 BOMBFUOCK · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
854
总下载
2
收藏
9
当前安装
1
版本数
在 OpenClaw 中安装
/install captcha-solver
功能描述
验证码识别与解决 - 本地OCR识别 + 第三方API / CAPTCHA Recognition and Solving - Local OCR + Third-party APIs
使用说明 (SKILL.md)

验证码识别与解决 / CAPTCHA Solver

自动识别和解决各类验证码 / Automatically recognize and solve various CAPTCHAs

支持类型 / Supported Types

本地OCR识别 / Local OCR (免费/Free)

  • 🔤 简单文本验证码 / Simple text CAPTCHA
  • 🔢 数字验证码 / Numeric CAPTCHA
  • ➕ 数学运算验证码 / Math CAPTCHA
  • 🖼️ 滑动验证码(缺口检测) / Slide CAPTCHA (gap detection)

API解决 / API Solving (付费/APIs)

  • reCAPTCHA v2/v3
  • hCaptcha
  • Cloudflare Turnstile
  • 2Captcha / Anti-Captcha

使用方法 / Usage

# 识别图片验证码
python solve.py --image captcha.png

# 解决reCaptcha
python solve.py --recaptcha "site_key" --url "page_url"

# 滑动验证码
python solve.py --slide background.png --template slider.png

配置 / Configuration

本地OCR

# 默认使用Tesseract
TESSERACT_CMD = "/usr/bin/tesseract"
LANG = "eng+chi_sim"  # 支持中英文

API服务 (可选)

# 2Captcha
API_2CAPTCHA = "your_api_key"

# Anti-Captcha  
API_ANTI_CAPTCHA = "your_api_key"

算法 / Algorithms

1. 图像预处理

  • 灰度转换 / Grayscale
  • 二值化 / Binarization
  • 去噪 / Denoising
  • 锐化 / Sharpening

2. 字符分割

  • 连通域分析 / Connected component analysis
  • 投影法 / Projection method

3. 字符识别

  • 模板匹配 / Template matching
  • 机器学习 / ML-based OCR

4. 滑动验证码

  • 边缘检测 / Edge detection
  • 缺口定位 / Gap localization
  • 轨迹生成 / Trajectory generation

示例 / Examples

简单文本识别

from solver import CaptchaSolver

solver = CaptchaSolver()
result = solver.solve_image("captcha.png")
print(result)  # 输出识别的字符

滑动验证码

result = solver.solve_slide(bg_img, slider_img)
print(result)  # 输出滑动距离

reCaptcha

result = solver.solve_recaptcha(site_key, page_url)
print(result)  # 输出token

服务对比 / Service Comparison

服务 价格 成功率 速度
本地OCR 免费 60-80%
2Captcha $2.99/1000 95%+
Anti-Captcha $2.00/1000 95%+

注意事项 / Notes

  1. 优先使用本地OCR,失败再调用API
  2. 遵守网站使用条款
  3. 不要用于非法用途
安全使用建议
This skill is internally coherent for solving CAPTCHAs: it performs local OCR and optionally forwards CAPTCHAs to third‑party solving services (2Captcha). Before installing, consider: (1) legal/ethical risk — automated CAPTCHA solving can violate website terms or be used for abuse; (2) privacy risk — images you feed the tool will be sent to external services if you use API solving; (3) transport security — the included code uses unencrypted HTTP for 2Captcha calls (leaking API keys and image data); change to HTTPS (https://2captcha.com/...) or confirm TLS is used; (4) trust/code review — the script runs subprocesses (tesseract) and reads local files (/tmp), so run it in a controlled environment and inspect or pin the code; (5) if you will use third‑party APIs, provide a dedicated API key with limited funds/privileges and do not store high-value secrets in the environment. If you need higher assurance, request the author to switch API calls to HTTPS, document network endpoints explicitly in the SKILL.md, and list optional environment variables in the metadata.
功能分析
Type: OpenClaw Skill Name: captcha-solver Version: 1.0.0 The skill bundle provides legitimate CAPTCHA solving functionality using local OCR (Tesseract) and third-party APIs (2Captcha). The implementation in `scripts/solve.py` follows the stated purpose, using standard libraries for image processing and API interaction without any signs of data exfiltration, unauthorized execution, or malicious intent.
能力评估
Purpose & Capability
Name/description match the provided code and SKILL.md: the package implements local OCR, slide-gap detection, and optional third‑party API solving (2Captcha). There are no unrelated credentials or unexpected binaries requested.
Instruction Scope
SKILL.md and README show expected usage (local OCR, slide-solving, reCaptcha via APIs). The runtime instructions and examples align with the code. Note: the agent/code will read local image files, create a processed image in /tmp, and may send image data and site keys/URLs to third-party services — this is expected for the stated purpose but is a data-exfiltration vector for images/URLs provided to the tool.
Install Mechanism
No install spec (instruction-only) and the included Python script has normal library imports. No downloads from external/untrusted URLs or archive extraction are used by the skill itself.
Credentials
The metadata declares no required env vars, but the code reads API_2CAPTCHA (and also accepts an API key via CLI). Requesting a 2Captcha API key is proportional to the API-solving feature. However, the code uses plain HTTP endpoints (http://2captcha.com/...) which transmits API keys and base64 image payloads unencrypted — this is a security/privacy concern and should be changed to HTTPS.
Persistence & Privilege
The skill does not request persistent/system-wide presence, does not set always:true, and does not modify other skills or system configuration. It runs only when invoked.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install captcha-solver
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /captcha-solver 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of captcha-solver. - Supports automatic recognition and solving of various CAPTCHAs using local OCR and third-party APIs. - Handles simple text, numeric, math, and slide CAPTCHAs locally (Tesseract-based). - Integrates with APIs (reCAPTCHA, hCaptcha, Cloudflare Turnstile, 2Captcha, Anti-Captcha) for advanced solving. - Provides configurable options for OCR and API services. - Includes image processing steps and algorithm details. - Features example usage for all supported types.
元数据
Slug captcha-solver
版本 1.0.0
许可证
累计安装 9
当前安装数 9
历史版本数 1
常见问题

Captcha Solver 是什么?

验证码识别与解决 - 本地OCR识别 + 第三方API / CAPTCHA Recognition and Solving - Local OCR + Third-party APIs. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 854 次。

如何安装 Captcha Solver?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install captcha-solver」即可一键安装,无需额外配置。

Captcha Solver 是免费的吗?

是的,Captcha Solver 完全免费(开源免费),可自由下载、安装和使用。

Captcha Solver 支持哪些平台?

Captcha Solver 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Captcha Solver?

由 BOMBFUOCK(@bombfuock)开发并维护,当前版本 v1.0.0。

💬 留言讨论