Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitLabGitLab/richardnagy/security/rsacracker
Password CrackingVulnerability AnalysisExploitationHash AnalysisCryptographyArchived
GitLabrichardnagy/security/rsacracker

Insufficiently Random RSA Cracker

Python script to crack RSA keys generated with insufficiently random prime number generators

Share
View Repository
4 years agoNot yet reviewed

Insufficiently Random RSA Cracker

Python script to crack RSA keys generated with insufficiently random prime number generators

Introduction

A python implementation of RSA key cracking using Fermat's factorization algorithm. The algorithm allows the efficient calculation of the prime factors of a composite number that is a product of two close primes.

Close in our case means at least half the bits of a key are equivalent, which is almost impossible in the case of a sufficiently random number generator. Some libraries however, lacked the sufficient randomness, especially in case of numbers generated in quick succession (time based seed).

Algorithm

The algorithm is based on the representation of an odd integer as de difference of two squares:

$N=a^2-b^2$

Which can be algebraically refactored to:

$N=(a+b)(a-b)$

If neither factor equals one, then we can conclude that this is a proper factorization of $N$

In this case, if $N=cd$ is a factorization of $N$, then:

$N=(\frac{c+d}{2})^2-(\frac{c-d}{2})^2$

Because $N$ is odd, it means $c$ and $d$ are also going to be odd.

License

Added general MIT license (details)

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    957
  • 2

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    770
  • 3

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    566
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    512
  • 5

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    470
  • 6

    mcp-reverse

    1llu50ry/mcp-reverse

    MCP server exposing 180+ reverse-engineering tools that aggregate Ghidra, IDA, x64dbg, Frida and 56 other backends with native binary parsers and a 4,200-skill knowledge base.

    359

Explore all tools

Browse our collection of tools

View all tools →