auto target included
This commit is contained in:
parent
b4812c1b7d
commit
0674314c74
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue