AGENT SKILL

crypto-ctf

Use for cryptography CTF challenges, crypto homework, and education when you need to actually COMPUTE an attack rather than just describe one - RSA factoring and weak-key attacks (Fermat close-primes, Wiener small-d, common-modulus, Hastad broadcast, ROCA, lattice/Coppersmith), symmetric mode.

License 许可
MIT
最近更新
2026-11-02
Stars
★ 0
Forks
0

01 前言 Front Matter

name
crypto-ctf
description
Use for cryptography CTF challenges, crypto homework, and education when you need to actually COMPUTE an attack rather than just describe one - RSA factoring and weak-key attacks (Fermat close-primes, Wiener small-d, common-modulus, Hastad broadcast, ROCA, lattice/Coppersmith), symmetric mode.

03 SKILL.md 正文

crypto-ctf

A self-contained Python toolbox for solving cryptography CTF / educational challenges by actually running the attack math, not just explaining it.

Scope / ethics: authorized pentest, blue-team/detection, CTF, reverse-engineering, and education only. Do not use against systems or data you are not authorized to test. The recovered material (keys, plaintext) is for the engagement that authorized it.

The venv

Everything runs in the dedicated venv next to this skill — do not pollute the global interpreter:

C:/Users/agentuser/.claude/skills/crypto-ctf/.venv/Scripts/python.exe

Installed (verified importable): pycryptodome (Crypto.*), gmpy2, sympy, pwntools (pwn/pwnlib), z3-solver (z3), plus RsaCtfTool's deps (tqdm, bitarray, factordb-pycli, cryptography, requests).

Run a one-off script:

"C:/Users/agentuser/.claude/skills/crypto-ctf/.venv/Scripts/python.exe" solve.py

Add a package if a challenge needs it (e.g. pip install pycryptodomex):

"C:/Users/agentuser/.claude/skills/crypto-ctf/.venv/Scripts/python.exe" -m pip install <pkg>

RsaCtfTool (RSA multi-attack engine)

Cloned at crypto-ctf/RsaCtfTool/, installed editable. Run it as a module from the venv:

PY="C:/Users/agentuser/.claude/skills/crypto-ctf/.venv/Scripts/python.exe"

# Crack from a public key file, try every attack, dump the recovered private key
"$PY" -m RsaCtfTool.main --publickey key.pub --private --attack all

# Crack from raw parameters and decrypt a ciphertext

### Targeted attack (faster than 'all' when you know the weakness)
### When to reach for what (crypto triage)
### RSA
### Symmetric (pycryptodome `Crypto.Cipher`)
### Hash / MAC
### ECDSA / ECC
### Classical / encodings
### Quick self-test (proves the stack)
### Zero-install web batteries (first-pass, no setup)

04 同仓库更多 Skills

Prekzursil
Prekzursil/agent-skills-toolchain

clarify-requirements

Resolve genuine pre-execution ambiguity by scanning repo context, generating 1-6 grounded options, and asking 1-3 focused questions via AskUserQuestion. NOT for mid-task use (injection risk); NOT when the goal is already unambiguous; use to disambiguate vague prompts before any file edits.

★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

openmm-md

Run FREE, open-source, Windows-native GPU molecular dynamics via the openmm-md MCP (OpenMM + CUDA on the local NVIDIA GPU). Use for protein / protein-ligand MD when you want a free stack or are on Windows without a Schrodinger license. Covers the full workflow (prepare, solvate, minimize, equilibrate, production, analyze, mmgbsa) AND an honest decision guide vs Schrodinger Desmond, including how to run Desmond legitimately on Linux or a cloud GPU with a real license. This is a deliberately LESSER free alternative and does NOT replace the schrodinger MCP tools. Do NOT use it to pick a free tool when a validated FEP+, WaterMap, IFD-MD, or Prime MM-GBSA result is actually required.

Skill与智能体开发
★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

visual-review

Take screenshots of web pages and UI using Playwright for visual review and iteration

演示文稿测试与质量
★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

status

Diagnostic status report — shows metaswarm installation state, project setup, and potential issues

★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

start

Use when starting work on any task, when the user mentions metaswarm, or when the user wants to begin tracked development work

Skill与智能体开发
★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

setup

Interactive project setup — detects your project, configures metaswarm, writes project-local files

★ 0