I translated the exploit from the Metasploit SMB_MS17_010 Module and the PowerShell Module Invoke-Eternalblue to Visual Basic. This vulnerability was leaked by the Shadow Brokers in 2017.
This should work as expected. Maybe there are some SMB-Header parsing errors.
- Metasploit Module: https://www.rapid7.com/db/modules/exploit/windows/smb/ms17_010_eternalblue
- Invoke-Eternalblue (there are a few bugs in their code): https://github.com/tevora-threat/eternal_blue_powershell
Copy, Modify or do what ever you want. Just don't use it for evil stuff. I don't take any responsibility for damage or any other kind of bad things you do with this.