add suggestion when auto-targeting fails, see #2022
git-svn-id: file:///home/svn/framework3/trunk@9396 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
7039bc3461
commit
a8186ae6ae
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue