> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/zh/ports-and-services/http-and-https-80-443/http-https-heartbleed-vulnerability.md).

# HTTP/HTTPS - Heartbleed 漏洞

如果 **Heartbleed** 如果怀疑某个网站存在该问题，请使用以下 Python 脚本进行验证：

{% embed url="<https://github.com/vulhub/vulhub/blob/master/openssl/CVE-2014-0160/ssltest.py>" %}

```bash
python3 ssltest.py 127.0.0.1 -p 8443
```

如果出现如下内容：

<figure><img src="/files/f5af8c611a0a05a96833e2e5ed45805fbd32109a" alt="" width="563"><figcaption></figcaption></figure>

过滤掉重复的噪声，只保留有用的输出：

```bash
python3 ssltest.py 127.0.0.1 -p 8443 | grep "01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01" -v
```

在这种情况下，没有出现有用的数据。对于存在漏洞的目标，此输出可能会泄露敏感的内存内容。

<figure><img src="/files/4a276a1b04c8a9c8ae7a8663cfb9959e38dcdeb9" alt="" width="563"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/zh/ports-and-services/http-and-https-80-443/http-https-heartbleed-vulnerability.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
