跳到正文
cccskills
免费在 GitHub 公开

crypto-toolkit

Handle encoded strings and cryptographic data with tool-based conversions. Decode layered formats, calculate hashes, encrypt or decrypt with AES and RSA, and inspect JWT tokens, which carry encoded headers and data used in authentication.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

编码解码与加解密工具 — base64/URL/Hex/HTML实体编码解码,MD5/SHA哈希,AES/DES/RSA加解密,JWT解析,Caesar/ROT13密码,栅栏/Vigenere密码,Unicode转义,Morse电码等

查看安装方法

适用场景

  • Decoding strings with multiple layers of encoding
  • Calculating hashes and checking likely hash formats
  • Encrypting or decrypting data with a known key
  • Inspecting JWT contents and time-related claims

包含的文件(4)

  • SKILL.md5.1 KB
  • references/crypto-attacks-roadmap.md2.4 KB
  • references/crypto-attacks.md3.4 KB
  • references/encoding-cheatsheet.md2.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

编码解码与加解密 Skill

针对渗透测试中常见的编码、加密、混淆场景,提供全面的编解码和加解密能力。 重要:遇到任何编码/加密字符串时,优先使用 crypto_decode 工具进行解码,而非靠直觉猜测。

核心原则

  1. 工具优先 — 遇到 base64、hex、URL编码等字符串,调用 crypto_decode 工具解码,不要自行脑补
  2. 多格式尝试 — 如果一种解码方式结果不合理,尝试其他编码格式
  3. 链式解码 — CTF 中常见多层编码(如 base64→hex→ROT13),解码后检查结果是否还需再次解码
  4. 验证结果 — 解码后验证结果的合理性(是否为可读文本、是否像路径/URL/flag 等)

1. 编码识别与解码

常见编码特征识别

编码类型特征示例
Base64A-Za-z0-9+/= 结尾常有 = 填充TnNTY1RmLnBocA==
Base32A-Z2-7=OBZHK5DFN2A====
Hex0-9a-f 偶数长度4e73536354662e706870
URL编码%XX 格式%2F%61%64%6D%69%6E
HTML实体&#xNN; 或 &#NNN;<script>
Unicode转义\uXXXX 或 \UXXXXXXXX\u003c\u0073\u0063
JWT三段 . 分隔的 base64eyJhbG...

解码策略

  1. 识别编码类型 → 调用 crypto_decode 工具指定对应操作
  2. 检查解码结果是否可读/合理
  3. 不合理则尝试其他编码格式
  4. 如果结果仍像编码,重复步骤 1-3

2. 哈希与散列

常见哈希类型

类型输出长度特征
MD532 hexe10adc3949ba59abbe56e057f20f883e
SHA140 hexaaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
SHA25664 hex2c26b46b68ffc68ff99b453c1d30413413422d7064...
SHA512128 hex更长的hex字符串
NTLM32 hexWindows hash
MySQL541字符*E6CC90B878B948C35E92B003C792C46758BF4

哈希处理策略

  • 识别哈希类型(通过长度和字符集)
  • 尝试在线彩虹表查询(通过 fetch 工具访问 crackstation 等)
  • 对于已知盐值的哈希,尝试带盐值暴力破解

3. 对称加密

AES/DES/3DES

  • 需要密钥和模式(ECB/CBC/CTR 等)
  • CBC 模式需要 IV
  • 常见填充:PKCS7/ZeroPadding
  • 渗透中常遇到硬编码密钥,优先从源码中提取

4. 非对称加密

RSA

  • 从公钥/私钥文件中提取参数
  • 模数过小的 RSA 可分解
  • 已知私钥可直接解密

5. 古典密码

类型特征破解方法
Caesar/ROT13字母位移暴力25种位移
Vigenere多表替换Kasiski/频率分析
栅栏密码字符分组重组尝试常见栏数
培根密码AB 五元组查表
Morse.- 点划查表

6. JWT 处理

  • 解码 Header + Payload(base64url)
  • 检查算法:none 算法绕过、RS256→HS256 算法混淆
  • 尝试弱密钥签名伪造
  • 检查 exp/nbf 等时间声明

工具使用

crypto_decode 工具

当遇到需要编码/解码/加密/解密的操作时,调用此工具:

crypto_decode(operation="base64_decode", input="TnNTY1RmLnBocA==")

支持的操作列表:

  • 编码: base64_encode, base32_encode, hex_encode, url_encode, html_encode, unicode_encode, rot13_encode, morse_encode, caesar_encode, base58_encode
  • 解码: base64_decode, base32_decode, hex_decode, url_decode, html_decode, unicode_decode, rot13_decode, morse_decode, caesar_decode, base58_decode
  • 哈希: md5_hash, sha1_hash, sha256_hash, sha512_hash
  • 加密/解密: aes_encrypt, aes_decrypt, des_encrypt, des_decrypt, rsa_encrypt, rsa_decrypt
  • JWT: jwt_decode, jwt_encode
  • 自动识别: auto_decode (自动识别编码类型并解码)

CTF 密码学攻击路由

当遇到密码学攻击场景(已知加密算法,需要恢复明文或密钥)时,优先使用 ctf-crypto Skill:

攻击场景路由到 ctf-crypto参考文档
RSA 小指数/共模/Wienerctf-cryptoreferences/rsa-attacks-cheatsheet.md
AES Padding Oracle/ECB 翻转ctf-cryptoreferences/aes-and-block-cipher-attacks.md
ECC 小子群/离散对数ctf-cryptoreferences/ecc-attacks-cheatsheet.md
PRNG/MT19937 预测ctf-cryptoreferences/prng-and-stream-cipher-attacks.md
古典密码(Vigenere/XOR)ctf-cryptoreferences/classic-cipher-attacks.md
格攻击/LWEctf-cryptoreferences/lattice-and-lwe-attacks.md

本 Skill 侧重编解码操作工具,密码学具体攻击方法和参数请参考 ctf-crypto。

参考文档

  • references/encoding-cheatsheet.md — 编码识别速查表
  • references/crypto-attacks.md — 密码学攻击手法
  • references/crypto-attacks-roadmap.md — 密码学攻击分类路由(根据题目特征选择攻击方法)

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Assess AI agents and MCP tools for malicious instructions, tool misuse, permission violations, and data leaks. The skill organizes checks across applications, identity, data, deployment, and models, with references for each risk area.

中文简介正在准备中。当前显示英语简介。

  • Review prompt injection risks in AI applications
  • Check MCP tool misuse and trust boundaries
  • Assess agent permissions and credential misuse
Netw0rkNoob/VulnClaw37702026年10月12日 更新

Test Android app security by operating the app and inspecting network traffic first, then analyzing APK code or observing functions during execution when needed. Verify vulnerabilities and produce a report with screenshots, traffic evidence, and code review findings.

中文简介正在准备中。当前显示英语简介。

  • Observing app traffic during real user flows
  • Analyzing code when traffic is hidden or encrypted
  • Testing API authorization by modifying and replaying requests
Netw0rkNoob/VulnClaw37702026年10月12日 更新

Analyze traffic from Android apps, browser JavaScript, and desktop clients to prepare requests for replay in Burp. Investigate signatures, encryption, and session dependencies when they block replay, and retain working request samples with supporting observations.

中文简介正在准备中。当前显示英语简介。

  • Capture Android app traffic during real user flows
  • Investigate browser request signatures and tokens
  • Analyze desktop client signing logic
Netw0rkNoob/VulnClaw37702026年10月12日 更新

Analyze CTF cryptography challenges by identifying the cipher and matching known parameters to possible attacks. It provides formulas, attack parameters, and Python snippets for RSA, AES, elliptic curves, random number generators, classical ciphers, and lattice problems.

中文简介正在准备中。当前显示英语简介。

  • Choose RSA approaches from the given parameters
  • Investigate weaknesses in AES modes
  • Analyze random number sequences for predictability
Netw0rkNoob/VulnClaw37702026年10月12日 更新

ctf-misc

免费

Find relevant references for CTF miscellaneous challenges, including restricted execution environments, layered encodings, hidden data in media, and game or virtual machine analysis. It also covers CTFd platform operations and Linux privilege escalation.

中文简介正在准备中。当前显示英语简介。

  • Investigate Python or Bash jail challenges
  • Identify layered encodings and hidden media data
  • Analyze games and custom virtual machines
Netw0rkNoob/VulnClaw37702026年10月12日 更新

ctf-web

免费

Solve CTF web challenges using concrete test inputs, request templates, and PHP code review checklists. The reference covers type comparisons, command injection, template injection, deserialization, source extraction, and common locations for challenge flags.

中文简介正在准备中。当前显示英语简介。

  • Review PHP source code in a CTF challenge
  • Investigate type comparisons and input filters
  • Explore template injection and deserialization
Netw0rkNoob/VulnClaw37702026年10月12日 更新

查看 Netw0rkNoob 的全部技能

报告此技能的问题