little auto detect fix

This commit is contained in:
Michael Messner 2014-07-10 20:40:39 +02:00
parent 6a765ae3b0
commit 781149f13f
1 changed files with 5 additions and 1 deletions

View File

@ -100,13 +100,17 @@ class Metasploit3 < Msf::Exploit::Remote
break
end
end
else
# no supported device found
return Exploit::CheckCode::Unknown
end
print_status("#{peer} - Selected Target: #{@mytarget.name}")
print_good("#{peer} - detected a vulnerable device")
return Exploit::CheckCode::Detected
# no auto-targetting ... the user is responsible
# not auto-targetting ... the user is responsible
else
print_good("#{peer} - detected a device with unknown exploitability ... trying to exploit")
return Exploit::CheckCode::Detected