Agent skill

CTF•密码学

用于 RSA、AES、ECC、格攻击、LWE、CVP、Coppersmith、Pollard、Wiener、填充预言机、GCM、KDF、伪随机数与零知识证明等密码学和数学类 CTF 题;触发名:ctf-crypto

asdfgh1445582★ · 1 repos on radarProfile →
codexclaude-codecan modify filesNOASSERTION
Install
npx skills add asdfgh1445/ctf-super-hub --skill ctf-crypto --agent codex

Same command for any agent — swap --agent for claude-code, cursor, copilot.

Facts
Files in the skill folder: 17
SKILL.md size: 38 KB
Bundled scripts: none
Allowed tools: BashReadWriteEditGlobGrepTaskWebFetchWebSearch
Requires: Requires filesystem-based agent (Claude Code or similar) with bash, Python 3, and internet access for tool installation.
Path: ctf-crypto/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 718
Language: JavaScript
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

Review
written from the skill's own SKILL.md · Aug 5, 2026

What it does

Presents a quick reference of crypto CTF techniques and supporting resources for cryptography-focused challenges, including prerequisites and categorized attack methods.

How it works

The skill enumerates crypto domains (RSA, AES, ECC, lattice attacks, padding oracle, PRNG, ZKP, etc.) and provides:

  • Prerequisites with listed Python packages and system packages
  • Quick-start commands for identifying cipher types, extracting RSA parameters, and accessing common tooling
  • Sections for Modern and Classical ciphers with example attack descriptions and references to detailed files (e.g., links to markdowns like classic-ciphers.md, modern-ciphers.md)
  • A navigation guide (When to Pivot) suggesting switches to other challenge domains depending on the blocker
  • A curated list of tools and techniques, including specific commands and tool names such as RsaCtfTool, SageMath, and hashcat, embedded within the descriptions

When to use it

Use when tackling crypto CTF challenges to quickly locate relevant technique categories, prerequisites, and example workflows; switch to related domains via the pivot guidance if cryptanalysis stalls.

What it can touch

  • Prerequisite software installations: Python packages (pycryptodome, z3-solver, sympy, gmpy2, hashpumpy, fpylll, py_ecc), system packages (hashcat, sagemath, SageMath), and RSA toolchains like RsaCtfTool
  • Command examples and tool invocations: python3, openssl, RsaCtfTool.py, SageMath, hashcat, hashid

Caveats

License: MIT; compatibility notes indicate it requires a filesystem-based agent with bash and Python 3 and internet access for tool installation. User-invocable is false, implying automation or integration constraints. No explicit risk or limitation statements beyond the stated prerequisites.

From the SKILL.md

# CTF Cryptography Quick reference for crypto CTF challenges. Each technique has a one-liner here; see supporting files for full details with code. ## Prerequisites **Python packages (all platforms):** ```bash pip install pycryptodome z3-solver sympy gmpy2 hashpumpy fpylll py_ecc ``` **Linux (apt):** ```bash apt install hashcat sagemath ``` **macOS (Homebrew):** ```bash brew install hashcat ``` **Manual install:** - SageMath — Linux: `apt install sagemath`, macOS: `brew install --cask sage` - RsaCtfTool — `git clone https://github.com/RsaCtfTool/RsaCtfTool` (automated RSA attacks) > **Note:** `gmpy2` requires libgmp — Linux: `apt install libgmp-dev`, macOS: `brew install gmp`. ## Additional Resources - [classic-ciphers.md](classic-ciphers.md) - Classic ciphers: Vigenere (+ Kasiski examination), Atbash, substitution wheels, XOR variants (+ multi-byte frequency analysis), deterministic OTP, cascade XOR, book cipher, OTP key reuse / many-time pad, variable-length homophonic substitution, grid permutation cipher keyspace reduction, image-based Caesar shift ciphers, XOR key recovery via file format headers - [modern-ciphers.md](modern-ciphers.md) - Modern cipher attacks: AES (CFB-8, ECB

What's inside
Steps it walks through
  1. Prerequisites
  2. Additional Resources
  3. When to Pivot
  4. Quick Start Commands
  5. Classic Ciphers
  6. Modern Cipher Attacks
  7. RSA Attacks
  8. Elliptic Curve Attacks
  9. Lattice / LWE Attacks
  10. ZKP & Constraint Solving
  11. Modern Cipher Attacks (Additional)
  12. Introspective CRC via GF(2) Linear Algebra
  13. CBC Padding Oracle Attack
  14. Bleichenbacher RSA Padding Oracle (ROBOT)
Ships with 16 files
  • advanced-math.md
  • classic-ciphers.md
  • ecc-attacks.md
  • exotic-crypto-2.md
  • exotic-crypto.md
  • historical.md
  • lattice-and-lwe.md
  • modern-ciphers-2.md
  • modern-ciphers-3.md
  • modern-ciphers.md
  • prng-attacks.md
  • prng.md
  • rsa-attacks-2.md
  • rsa-attacks.md
  • stream-ciphers.md
  • zkp-and-advanced.md
Commands it runs
pip install pycryptodome z3-solver sympy gmpy2 hashpumpy fpylll py_ecc
apt install hashcat sagemath
brew install hashcat
Identify cipher type
python3 -c "from Crypto.Util.number import *; n=<N>; print(f'bits={n.bit_length()}')"
RSA quick check
python3 -c "from sympy import factorint; print(factorint(<n>))"  # Small factors?
openssl rsa -pubin -in key.pub -text -noout  # Extract n, e from PEM
Quick factorization tools
python3 RsaCtfTool.py -n <n> -e <e> --uncipher <c>
More from ctf-super-hub
All skills →
About this skill
What does the CTF•密码学 skill do?

用于 RSA、AES、ECC、格攻击、LWE、CVP、Coppersmith、Pollard、Wiener、填充预言机、GCM、KDF、伪随机数与零知识证明等密码学和数学类 CTF 题;触发名:ctf-crypto

How do I install it?

Run `npx skills add asdfgh1445/ctf-super-hub --skill ctf-crypto --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From asdfgh1445/ctf-super-hub, a repository with 718 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going