diff --git a/modules/exploits/windows/dcerpc/msdns_zonename.rb b/modules/exploits/windows/dcerpc/msdns_zonename.rb index cf4f2caaac..dd947b4f59 100644 --- a/modules/exploits/windows/dcerpc/msdns_zonename.rb +++ b/modules/exploits/windows/dcerpc/msdns_zonename.rb @@ -107,7 +107,7 @@ class Metasploit3 < Msf::Exploit::Remote dport = datastore['RPORT'].to_i if ((dport != 0) && (target.name =~ /Automatic/)) - print_status("Could not use automatic target when the remote port is given"); + print_error("Unable to use automatic targeting when RPORT is given"); return end @@ -116,7 +116,7 @@ class Metasploit3 < Msf::Exploit::Remote dport = dcerpc_endpoint_find_tcp(datastore['RHOST'], '50abc2a4-574d-40b3-9d66-ee4fd5fba076', '5.0', 'ncacn_ip_tcp') if (not dport) - print_status("Could not determine the RPC port used by the Microsoft DNS Server") + print_error("Could not determine the RPC port used by the Microsoft DNS Server") return end @@ -148,7 +148,7 @@ class Metasploit3 < Msf::Exploit::Remote end if (not mytarget) - print_status("There is no available target for this locale") + print_error("There is no available target for this locale") return end else diff --git a/modules/exploits/windows/smb/ms08_067_netapi.rb b/modules/exploits/windows/smb/ms08_067_netapi.rb index 38dd3bc58a..26e4eedcab 100644 --- a/modules/exploits/windows/smb/ms08_067_netapi.rb +++ b/modules/exploits/windows/smb/ms08_067_netapi.rb @@ -775,14 +775,16 @@ class Metasploit3 < Msf::Exploit::Remote # Service Pack match must be exact if((not mytarget) and fprint['sp'].index('+')) - print_status("Could not determine the exact service pack") + print_error("Could not determine the exact service pack") + print_status("Auto-targeting failed, use 'show targets' to manually select one") disconnect return end # Language Pack match must be exact if((not mytarget) and fprint['lang'] == 'Unknown') - print_status("Could not determine the exact language pack") + print_error("Could not determine the exact language pack") + print_status("Auto-targeting failed, use 'show targets' to manually select one") disconnect return end @@ -800,7 +802,7 @@ class Metasploit3 < Msf::Exploit::Remote end if(not mytarget) - print_status("No matching target") + print_error("No matching target") disconnect return end