Extra condition that's not actually needed

Don't actually need to check nil res, because no code will
actually try to access res when it's nil anyway. And the 'return'
at the of the function will catch it when the response times out.
unstable
sinn3r 2012-09-09 04:06:48 -05:00
parent cb95a7b520
commit 64b8696e3c
1 changed files with 0 additions and 2 deletions

View File

@ -80,8 +80,6 @@ class Metasploit3 < Msf::Exploit::Remote
'uri' => '/'
})
return Exploit::CheckCode::Unknown if res.nil?
if res and res.code == 200 and res.body =~ /<strong>Distro Release:&nbsp;<\/strong>Openfiler [NE]SA 2\./
return Exploit::CheckCode::Appears
elsif res and res.code == 200 and res.body =~ /<title>Openfiler Storage Control Center<\/title>/