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
Auth/lab ref: Unicorn Engine CPU-only emulation for shellcode, decryptors, custom VM handlers, instruction tracing, memory hooks, and register-level experiments.
development
Auth/lab ref: Renode board and SoC simulation for MCU/RTOS firmware, UART/GPIO/peripheral modeling, GDB remote debugging, REPL platforms, and RESC scripts.
development
Auth/lab ref: Qiling OS-layer binary emulation for PE/ELF/Mach-O/UEFI/shellcode with rootfs, syscall/API hooks, filesystem mapping, and runtime patching.
databases
Auth/lab ref: QEMU user-mode and full-system emulation for cross-arch binaries, firmware, kernels, disks, serial consoles, networking, and GDB stubs.