offensive-tools/cryptography/rsactftool/SKILL.md
Auth/lab ref: RSA testing automation tool for weak public keys. For targeting RSA key recovery or plaintext recovery from public data (n, e, ciphertext, partial leaks).
npx skillsauth add aeondave/malskill rsactftoolInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Multi-attack RSA solver for weak RSA scenarios. Best used as a triage engine: feed known key material, run constrained attacks first, escalate only when signal supports it.
.pem, OpenSSH pubkey, or raw n/e).# Recover private key (auto attack selection)
RsaCtfTool --publickey key.pub --private
# Force a specific attack
RsaCtfTool --publickey key.pub --attack wiener --private
# Decrypt a ciphertext file once key is recoverable
RsaCtfTool --publickey key.pub --decryptfile ciphertext.bin
# Build pubkey from n/e (for problem specifications that give integers only)
RsaCtfTool --createpub -n <n> -e <e>
# Dump key parameters for triage
RsaCtfTool --dumpkey --ext --key key.pub
d, broadcast, shared n, or partial leakage.n structure suggests close primes, smoothness, reused factors, or vulnerable keygen.# 1) Parse and inspect
RsaCtfTool --dumpkey --ext --key key.pub
# 2) Run fast specific checks first
RsaCtfTool --publickey key.pub --attack wiener --private
RsaCtfTool --publickey key.pub --attack hastads --private
RsaCtfTool --publickey key.pub --attack common_factors --private
# 3) Escalate to broader runs
RsaCtfTool --publickey key.pub --private
# 4) If key recovered, decrypt material
RsaCtfTool --publickey key.pub --decryptfile ct.bin
hashcat skills).references/factorization-attacks.md — RSA attacks based on factoring n (Fermat, Pollard variants, ECM, QS, etc.).references/non-factorization-attacks.md — RSA attacks without directly factoring n (Wiener, Hastad, Boneh-Durfee, partial leaks, lattice).references/challenge-specific-attacks.md — scenario-specific attacks for non-standard RSA key patterns and triage patterns.development
White-box auditing methodology for AI-generated ('vibe-coded') applications. Focuses on modern stack misconfigurations (Supabase, Next.js, Vercel).
development
Hybrid AI/Deterministic SAST methodology for discovering zero-day vulnerabilities in source code. Orchestrates structural search with AI-driven data flow and sink validation.
development
Auth assessment: hardware/embedded methodology; UART/JTAG/SWD/SPI/I2C, firmware extraction, boot/debug paths, embedded OS evidence.
devops
Container methodology: Identifying containerization limits, Docker/K8s misconfigurations, and executing escapes to the host node.