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
Heartbleed — Demonstration of the Heartbleed CVE (CVE-2014-0160), including lab setup instructions and source code to build your own Heartbleed lab for educational purposes | Kitploit
Tools/GitHubGitHub/ryo-soikutsu/heartbleed
Vulnerability AnalysisExploitationWeb SecurityCTFLearning & EducationLabs & Practice
GitHubryo-soikutsu/heartbleed

Heartbleed

Demonstration of the Heartbleed CVE (CVE-2014-0160), including lab setup instructions and source code to build your own Heartbleed lab for educational purposes

View Repository
328 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    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.

    938
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    556
  • 3

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    352
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    343
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    336
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    291

Explore all tools

Browse our collection of tools

View all tools →
Share

Heartbleed-POC

This repository aims to serve as a valid proof-of-concept for the Heartbleed CVE, as well as contain instructions for setting up your own Heartbleed challenge without using a pre-built Dockerfile.

How to build the lab

    1. Navigate to the source/service directory using cd service/heartbleed or cd src
    1. Build the Docker container with the following command: sudo docker build -t heartbleed .
    1. Run the Docker container with the following command: sudo docker run -dp 443:443 --name heartbleed heartbleed

How to exploit

A pre-built exploit script has already been prepared for you in the solution/ folder. The exploit script is based off Sensepost's Heartbleed exploit script (https://github.com/sensepost/heartbleed-poc), modified to work for this specific challenge. The values of the TLS version field in the Client Hello payload has been modified for this version of the exploit.

According to CTF participants' feedback, the Metasploit module(s) for Heartbleed will work as well. Unfortunately, I have not tried this out.

Explaning the patched binary

In my original testing of the Heartbleed CVE, the base OpenSSL binary wasn't consistent in dumping the contents of the memory, and would take too much time and resources to properly brute force the server's memory to obtain the secret keys, which would've led to the CTF infrastructure being unintentionally DDoS'd. As such, a modification has been made in the t1_lib.c script, where the original vulnerability was located.

At line 2586, the original memcpy code has been commented out, and instead replaced with a conditional loop that will insert the server key into the response body 10% of the time. This is intended to simulate the original non-deterministic nature of the Heartbleed CVE, while also ensuring that participants can still obtain the key reliably.

            if ((rand() % 10) == 0) {
		       FILE *kf = fopen("/usr/local/apache2/conf/ssl/server.key","rb");
		       if (kf != NULL) {
		       		fseek(kf,0,SEEK_END);
		 		long klen = ftell(kf);
				rewind(kf);
				if (klen > 0 && klen < payload) {
					char *key = malloc(klen);
					if (key != NULL) {
						fread(key,1,klen,kf);
						long max_offset = payload - klen;
						long offset = rand() % (max_offset + 1);
						memcpy(bp + offset,key,klen);
						free(key);
					}
				}
				fclose(kf);
			}
       		}	
Download Tool