Cryptographic attack techniques and exploits for CTF challenges across classical, modern, and advanced schemes.
Works with
Covers 50+ attack vectors including RSA (Wiener, Pollard, Coppersmith, padding oracles), ECC (small subgroup, Smart's attack, ECDSA nonce reuse), AES (ECB leakage, CBC padding oracle, CFB-8), and stream ciphers (LFSR, Berlekamp-Massey)
Includes PRNG attacks (MT19937 state recovery from floats via GF(2) matrix, V8 Math.random prediction, C srand synchronization via ctypes) and
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionctf-cryptoExecute the skills CLI command in your project's root directory to begin installation:
Fetches ctf-crypto from ljagiello/ctf-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate ctf-crypto. Access via /ctf-crypto in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
0
total installs
0
this week
1.1K
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
1.1K
stars
Quick reference for crypto CTF challenges. Each technique has a one-liner here; see supporting files for full details with code.
Python packages (all platforms):
pip install pycryptodome z3-solver sympy gmpy2 hashpumpy fpylll py_ecc
Linux (apt):
apt install hashcat sagemath
macOS (Homebrew):
brew install hashcat
Manual install:
apt install sagemath, macOS: brew install --cask sagegit clone https://github.com/RsaCtfTool/RsaCtfTool (automated RSA attacks)Note:
gmpy2requires libgmp — Linux:apt install libgmp-dev, macOS:brew install gmp.
/ctf-reverse./ctf-forensics./ctf-pwn or /ctf-web./ctf-ai-ml./ctf-misc.# 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>
# XOR analysis
python3 -c "from pwn import xor; print(xor(bytes.fromhex('<hex>'), b'flag{'))"
# Hash identification
hashid '<hash>'
hashcat --identify '<hash>'
# SageMath (for lattice/ECC)
sage -c "print(factor(<n>))"
(ct - pt) mod 26. Kasiski examination for unknown key length (GCD of repeated sequence distances)C1 XOR C2 XOR known_P = unknown_P; crib dragging when no plaintext knownfile reports "data". XOR first bytes against expected magic bytes to derive repeating key; extend using trailer structures (%%EOF, IEND marker). See classic-ciphers.md.See classic-ciphers.md for full code examples.
ecb_cpa_decrypt); image ECB preserves visual patterns. ECB cut-and-paste: splice ciphertext blocks to forge JSON fields (e.g., is_admin: true). See modern-ciphers-2.md.new_sig = old_sig XOR block_difflen(set(sbox)) < 256) enables 4,097-query key recovery(state >> 1) XOR next_state for LSB=1 transitions to directly recover tap mask. Autocorrelation sliding finds correct length. See stream-ciphers.md.SHA256(public_key) XOR seed is fully recoverable without private key; "hybrid" RSA+AES provides no security. See modern-ciphers-2.md.nonce-disrespect. See modern-ciphers.md.A = 0 or A = n to force shared secret to 0, bypassing password verification entirely. See modern-ciphers-2.md.c = m^2 mod n with LSB oracle enables binary search plaintext recovery in log2(n) queries via multiplicative homomorphism (c * 4 mod n doubles plaintext). See modern-ciphers-2.md.SHA1(password) instead of password when original exceeds 64 bytes. See modern-ciphers-2.md.fastcol runs to produce 2^k files with identical MD5. Merkle-Damgard composition: collisions propagate through appended suffixes. See modern-ciphers-2.md.Make data-driven prioritization decisions faster
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Prerequisites
Time Estimate
30-60 minutes to see productivity improvements
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid when
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
mattpocock/skills
parcadei/continuous-claude-v3
cursor/plugins
ailabs-393/ai-labs-claude-skills
pproenca/dot-skills
mattpocock/skills
Solid pick for teams standardizing on skills: ctf-crypto is focused, and the summary matches what you get after install.
I recommend ctf-crypto for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Keeps context tight: ctf-crypto is the kind of skill you can hand to a new teammate without a long onboarding doc.
We added ctf-crypto from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
Registry listing for ctf-crypto matched our evaluation — installs cleanly and behaves as described in the markdown.
ctf-crypto is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
ctf-crypto fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
ctf-crypto reduced setup friction for our internal harness; good balance of opinion and flexibility.
I recommend ctf-crypto for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Useful defaults in ctf-crypto — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
showing 1-10 of 30