Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
HATCHA — CAPTCHA 证明你是人类。HATCHA 证明你不是。 | Kitploit
工具/GitHubGitHub/mondaycom/hatcha
冒充工具Web安全身份验证反机器人CAPTCHA 绕过AI 安全
GitHubmondaycom/hatcha

HATCHA

CAPTCHA 证明你是人类。HATCHA 证明你不是。

查看仓库
9925个月前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
网站

HATCHA

CAPTCHA 证明你是人类。HATCHA 证明你不是。

npm License CI


运行中的 HATCHA 模态框

HATCHA(Hyperfast Agent Test for Computational Heuristic Assessment,超快代理计算启发式评估测试)是一种反向验证码,以对 AI 代理轻而易举、对人类却十分痛苦的任务作为访问门槛——大数乘法、字符串反转、二进制解码等。

  • 服务端验证 — 答案永远不会到达客户端。HMAC 签名令牌,无状态,无需数据库。
  • 5 种内置挑战类型 — 数学、字符串反转、字符计数、排序、二进制解码。
  • 可扩展 — 可在运行时注册自定义挑战生成器。
  • 可定制主题 — 通过 CSS 自定义属性实现深色、浅色或自动模式。
  • 框架适配器 — 开箱即用的 Next.js App Router 和 Express 中间件。

快速开始(Next.js)

1. 安装

root@kitploit:~
npm install @mondaycom/hatcha-react @mondaycom/hatcha-server

2. 添加 API 路由

root@kitploit:~
// app/api/hatcha/[...hatcha]/route.ts
import { createHatchaHandler } from "@mondaycom/hatcha-server/nextjs";

const handler = createHatchaHandler({
  secret: process.env.HATCHA_SECRET!,
});

export const GET = handler;
export const POST = handler;

3. 包裹你的布局

root@kitploit:~
// app/layout.tsx
import { HatchaProvider } from "@mondaycom/hatcha-react";
import "@mondaycom/hatcha-react/styles.css";

export default function RootLayout({ children }) {
  return (
    <html lang="en">
      <body>
        <HatchaProvider>{children}</HatchaProvider>
      </body>
    </html>
  );
}

4. 触发验证

root@kitploit:~
"use client";
import { useHatcha } from "@mondaycom/hatcha-react";

function AgentModeButton() {
  const { requestVerification } = useHatcha();

  return (
    <button
      onClick={() =>
        requestVerification((token) => {
          console.log("Agent verified!", token);
        })
      }
    >
      Enter Agent Mode
    </button>
  );
}

5. 设置你的密钥

root@kitploit:~
# .env.local
HATCHA_SECRET=your-random-secret-here

工作原理

root@kitploit:~
Client                            Server
  │                                 │
  │  GET /api/hatcha/challenge      │
  │────────────────────────────────►│
  │                                 │  Generate challenge
  │                                 │  Hash answer
  │                                 │  HMAC-sign { hash, expiry }
  │  { challenge (no answer), token }
  │◄────────────────────────────────│
  │                                 │
  │  Agent solves the challenge     │
  │                                 │
  │  POST /api/hatcha/verify        │
  │  { answer, token }              │
  │────────────────────────────────►│
  │                                 │  Verify HMAC signature
  │                                 │  Check expiry
  │                                 │  Compare answer hash
  │  { success, verificationToken } │
  │◄────────────────────────────────│

答案永远不会到达客户端。签名令牌是不透明的,仅包含哈希后的答案和过期时间。验证是无状态的——无需数据库。

挑战类型

自定义挑战

root@kitploit:~
import { registerChallenge } from "@mondaycom/hatcha-server";

registerChallenge({
  type: "hex",
  generate() {
    const n = Math.floor(Math.random() * 0xffffff);
    return {
      display: {
        type: "hex",
        icon: "0x",
        title: "Hex Decode",
        description: "Convert this hex number to decimal.",
        prompt: `0x${n.toString(16).toUpperCase()}`,
        timeLimit: 30,
        answer: String(n),
      },
      answer: String(n),
    };
  },
});

主题定制

HATCHA 使用以 --hatcha-* 为作用域的 CSS 自定义属性。你可以在任意父元素上覆盖它们:

root@kitploit:~
[data-hatcha-theme] {
  --hatcha-accent: #3b82f6;
  --hatcha-accent-light: #60a5fa;
  --hatcha-bg: #060b18;
  --hatcha-fg: #e4eaf6;
  --hatcha-success: #22c55e;
  --hatcha-danger: #ef4444;
}

将 theme="dark"、theme="light" 或 theme="auto" 传给 <HatchaProvider> 或 <Hatcha>。

Express

root@kitploit:~
import express from "express";
import { hatchaRouter } from "@mondaycom/hatcha-server/express";

const app = express();
app.use(express.json());
app.use("/api/hatcha", hatchaRouter({ secret: process.env.HATCHA_SECRET! }));

app.listen(3000);

包

包描述
@mondaycom/hatcha-core挑战生成与加密验证

开发

root@kitploit:~
git clone https://github.com/mondaycom/HATCHA.git
cd HATCHA
pnpm install
pnpm build
cd examples/nextjs-app
pnpm dev

参与贡献

欢迎贡献!有关环境搭建说明和指南,请参阅 CONTRIBUTING.md。

许可证

MIT

下载工具
类型图标作用时间限制
math×5 位数 × 5 位数乘法30 秒
string↔反转一个 60–80 字符的随机字符串30 秒
count#统计约 250 个字符中特定字符的出现次数30 秒
sort⇅对 15 个数字排序,返回第 k 小的数字30 秒
binary01将二进制八位组解码为 ASCII30 秒
@mondaycom/hatcha-react
React 组件、提供者和样式
@mondaycom/hatcha-serverNext.js 和 Express 服务端处理器