auto target included

This commit is contained in:
Michael Messner 2014-07-09 20:56:04 +02:00
parent b4812c1b7d
commit 0674314c74
1 changed files with 3 additions and 1 deletions

View File

@ -72,6 +72,7 @@ class Metasploit3 < Msf::Exploit::Remote
if res && [200, 301, 302].include?(res.code)
# trying to automatically detect a vulnerable device
if (target['auto'])
if res.body =~ /DIR-505/ && res.body =~ /1.07/
@ -107,8 +108,9 @@ class Metasploit3 < Msf::Exploit::Remote
print_good("#{peer} - detected a vulnerable device")
return Exploit::CheckCode::Detected
# no auto-targetting ... the user is responsible
else
print_good("#{peer} - detected a device with unknown exploitability")
print_good("#{peer} - detected a device with unknown exploitability ... trying to exploit")
return Exploit::CheckCode::Detected
end
end