RSA CTF Solver for Openclaw

A high-performance CTF cryptography toolkit featuring 11 integrated RSA attack algorithms and factorable database support.

moxin1044
v1.0.0
Mar 22, 2026
0
917
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install rsa-ctf-skills

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install rsa-ctf-skills using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is RSA CTF Solver?

The RSA CTF Solver is a specialized security tool designed for Openclaw Skills practitioners to tackle complex cryptography challenges in competitive environments. It integrates high-performance big-integer arithmetic and number theory functions to automate the decryption of RSA ciphertexts.

This utility acts as a comprehensive engine for modular exponentiation vulnerabilities, supporting everything from simple factorization via online databases to advanced attacks like Wiener's or Common Modulus. It provides a unified command-line interface to streamline the workflow of analyzing, attacking, and retrieving plaintexts from vulnerable RSA implementations.

RSA CTF Solver Use Cases

  • Solving RSA-based cryptography challenges in CTF competitions.
  • Factoring large integers (n) using integrated factordb lookups.
  • Decrypting ciphertexts when specific parameters like e, d, or dp are leaked.
  • Automating attacks on weak RSA implementations, such as small public exponents or repeated moduli.

How RSA CTF Solver Works

  1. Identify Vulnerability: Analyze the given parameters (n, e, c, etc.) to match them against known RSA attack vectors.
  2. Parameter Preparation: Input the collected values into the standardized rsa_solver script.
  3. Execution: The tool runs the selected mathematical attack using gmpy2 for optimized performance.
  4. Result Extraction: The solver outputs the decrypted plaintext (attempting UTF-8 first) or intermediate keys like p, q, and d.

RSA CTF Solver Setup

Ensure you have Python installed, then install the required cryptographic and mathematical libraries:

pip install gmpy2>=2.1.0 sympy>=1.10.0 requests>=2.28.0

RSA CTF Solver Data Schema & Taxonomy

The skill utilizes a structured approach to inputs and outputs to ensure compatibility across different Openclaw Skills workflows:

Data Type Description
Input Parameters Accepts large integers for n, e, c, p, q, d, and dp via CLI flags.
Attack Types Classified by scenario (e.g., small_e, wiener, crt, rabin).
Output Formats Prioritizes UTF-8 strings, falling back to Hex or BigInt for raw data.
External API Optional integration with factordb for cloud-based modulus factorization.

RSA CTF Solver Advanced Features

  • Multi-vector support: Includes 11 distinct attack algorithms covering the majority of CTF scenarios.
  • Automated Data Cleaning: Automatically strips whitespace and newlines from large integer inputs to prevent formatting errors.
  • High-Performance Computing: Leverages gmpy2 for rapid big-integer calculations.
  • Flexible Decoding: Smart detection for output formats, handling both readable text and raw binary data.
  • Comprehensive Reference Guide: Includes detailed attack logic documentation for educational use within Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*