kali-pentest-zh

kali-pentest-zh is a skill for Claude Code from x-glacier/kali-pentest. It costs 87 tokens per session (4,321 once invoked), scanned A, original, Apache-2.0.

A Chinese-language guide for carrying out authorized penetration tests with Kali Linux command-line tools through a local system, SSH, or Docker.

In plain words
What is it for?
Use it for approved reconnaissance, vulnerability analysis, web and API testing, exploitation, password testing, wireless work, reverse engineering, forensics, and report generation within the stated limits.
Why use it?
It sets required authorization, scope, approval, environment, and safety checks before security testing begins.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it for approved reconnaissance, vulnerability analysis, web and API testing, exploitation, password testing, wireless work, reverse engineering, forensics, and report generation within the stated limits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/x-glacier/kali-pentest/kali-pentest-zh
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add x-glacier/kali-pentest --skill kali-pentest-zh
Clone the repo
git clone --depth 1 https://github.com/x-glacier/kali-pentest

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kali-pentest-zh

README.md
[![agentmods](https://agentmods.dev/badge/skills/x-glacier/kali-pentest/kali-pentest-zh/github.svg)](https://agentmods.dev/skills/x-glacier/kali-pentest/kali-pentest-zh)
Your own site
<a href="https://agentmods.dev/skills/x-glacier/kali-pentest/kali-pentest-zh"><img src="https://agentmods.dev/badge/skills/x-glacier/kali-pentest/kali-pentest-zh/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kali-pentest-zh

Your own site · 80×15
<a href="https://agentmods.dev/skills/x-glacier/kali-pentest/kali-pentest-zh"><img src="https://agentmods.dev/badge/skills/x-glacier/kali-pentest/kali-pentest-zh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,321 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high YARA Match · line 49
    YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).
    Fix: Remove offensive tool references and exploit code. Legitimate agent skills should not contain penetration testing tools, exploit frameworks, or reconnaissance utilities.
  • medium Rogue Agent · line 65
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 151
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.04321
Opus 5 $0.00044 $0.02160
Sonnet 5 $0.00017 $0.00864
Haiku 4.5 $0.00009 $0.00432

Measured 12d ago against content hash 15183ad8a09e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

kali-pentest-zh scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **输出为空**:验证可达性(`ping`、`curl`、`nc` 或协议专项检查),确认工具支持目标类型。
kali-pentest-zh/SKILL.md · 236 lines

How it starts

The opening of the file, as written. The whole thing — 236 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Kali Pentest Skill

安全约束(首先阅读)

  1. 授权是强制性前提:未经用户确认的书面授权,不得扫描或探测任何目标。
  2. 范围具有约束力:仅测试用户已授权的主机、域名、端口、账号和技术手段。
  3. 风险确认:High/Critical 级别操作需用户明确批准后方可执行。
  4. 禁止操作:攻击未授权目标、对生产系统执行破坏性操作、未经明确要求修改/删除/加密目标文件、攻击关键基础设施。

高风险操作包括漏洞利用、凭据喷洒、暴力破解、NTLM 中继、钓鱼、无线攻击、持久化、数据外传、近似 DoS 的扫描和侵入式漏洞检查。

第一步:确定执行环境

检查用户消息中的连接信息。若未提供,向用户询问。

可用信息 模式 命令模式
当前系统为 Kali 本地(直接执行) {command}(无需包装)
SSH 凭据 SSH(远程首选) ssh {CONNECT_CMD} "{command}"
已运行的容器 Docker exec docker exec {CONTAINER} {command}
仅有 Docker Docker 持久化容器 创建或启动 kali-pentest,再运行 docker exec kali-pentest {command}

环境初始化:

  • 全新任务:在 Agent 本地主机上执行 mkdir -p /tmp/kali-pentest-state/<target>/。命名规则和文件格式见 references/environment/state-files.md
  • 继续任务:重新读取已有状态文件以恢复进度。
  • 开始测试前,更新 Kali 工具:apt-get update && apt-get upgrade -y

能力检查

根据任务选择匹配的环境:

需求 首选环境 规则
完整评估、内网 LAN、原始套接字、服务守护进程、数据库支撑工具 通过 SSH 连接完整 Kali VM/server 有 SSH 时优先使用
CLI 侦察、Web 测试、基础扫描、报告生成 持久化 Docker 容器 工具和网络连通性验证后可用
无线监听模式、USB 适配器、硬件相关测试 通过 SSH 连接物理机/虚拟机 Kali 不使用 Docker
GPU 密码破解 具备 GPU 访问能力的完整 Kali 规划 GPU 任务前验证 hashcat -I
GVM/OpenVAS、Neo4j/BloodHound、ZAP daemon、Metasploit 数据库 首选完整 Kali Docker 仅在服务栈已配置时可用

如果选定任务需要当前环境不支持的能力,停止并说明限制,不要强行运行工具。

执行重型任务前,按所选环境运行就绪检查:

  • 本地模式:references/environment/local-mode.md
  • 完整 Kali/服务器模式:references/environment/server-mode.md
  • Docker 模式:references/environment/docker-mode.md

缺少可选工具不代表环境失败。选择 playbook 后安装所需软件包,或从分类 README 中选择替代工具。

SSH 模式

ssh {CONNECT_CMD} "whoami && uname -a" # 验证连接
ssh {CONNECT_CMD} "nohup {cmd} </dev/null > /tmp/{task}.log 2>&1 & echo \$!" # 后台任务
scp {USER}@{HOST}:/tmp/{output_file} /tmp/ # 取回结果

Docker 模式

仅将 Docker 作为持久化 Kali 执行环境使用。不要用一次性临时容器执行评估。

先读取 references/environment/docker-mode.md。仅在创建、启动容器或向容器安装工具时读取 references/environment/docker-mode-persistent-container.md;仅在处理原始套接字行为、Docker Desktop 限制或可达性/路由问题时读取 references/environment/docker-mode-networking.md

Read the full file on GitHub · 236 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 236 lines · 87 tokens per session scan A 15183ad8a09e

Subscribe to this mod's changes

kali-pentest-zh is a skill published in the GitHub repository x-glacier/kali-pentest (116 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 87 tokens to every session and 4,321 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.