MCPcopy Index your code
hub / github.com/FiloSottile/Heartbleed

github.com/FiloSottile/Heartbleed @v0.2.0 sqlite

repository ↗ · DeepWiki ↗ · release v0.2.0 ↗
267 symbols 642 edges 20 files 105 documented · 39%
README

Heartbleed

A checker (site and tool) for CVE-2014-0160.

Public site at http://filippo.io/Heartbleed/

Tool usage: Heartbleed [-service="service_name"] example.com[:443] or: Heartbleed service_name://example.com[:443]

Exit codes: 0 - SAFE; 1 - VULNERABLE; 2 - ERROR. (recently changed) See the online FAQ for an explanation of returned messages including TIMEOUT and BROKEN PIPE.

Please note that the code is a bit of a mess, not exactly release-ready.

If a service is specified besides https, the tool checks the specified service using STARTTLS. You do still need to specify the correct port.

Install

You will need Go 1.2.x, otherwise you get undefined: cipher.AEAD and other errors

go get github.com/FiloSottile/Heartbleed
go install github.com/FiloSottile/Heartbleed

You can also use docker to get a ready to run virtual machine with heartbleed, see https://github.com/kasimon/docker-heartbleed.

Extension points exported contracts — how you extend this code

ClientSessionCache (Interface)
ClientSessionCache is a cache of ClientSessionState objects that can be used by a client to resume a TLS session with a [1 …
tls/common.go

Core symbols most depended-on inside this repo

sendAlert
called by 61
tls/conn.go
Write
called by 54
tls/conn.go
marshal
called by 42
tls/common.go
setErrorLocked
called by 27
tls/conn.go
writeRecord
called by 21
tls/conn.go
Write
called by 21
tls/prf.go
Error
called by 17
tls/alert.go
rand
called by 16
tls/common.go

Shape

Method 147
Function 68
Struct 39
Interface 5
TypeAlias 5
Class 3

Languages

Go98%
Python2%

Modules by API surface

tls/handshake_messages.go53 symbols
tls/conn.go43 symbols
tls/common.go36 symbols
tls/cipher_suites.go29 symbols
tls/key_agreement.go16 symbols
tls/tls.go15 symbols
tls/prf.go15 symbols
tls/handshake_server.go12 symbols
tls/handshake_client.go11 symbols
bleed_serve.go7 symbols
bleed/starttls.go7 symbols
tls/ticket.go6 symbols

For agents

$ claude mcp add Heartbleed \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact