Exploit Link :-

https://github.com/HackingCampYou/Pub

Patch :- https://technet.microsoft.com/en-us/library/security/ms17-010.aspx

Learn how to add custom exploit in metasploit and exploit Ms17_010 / EternalBlue with Metasploit

source