Fix failure messages for check().

bug/bundler_fix
nnam 2014-08-28 12:09:35 -07:00
parent 6c90a50e47
commit 02bbd53b82
1 changed files with 2 additions and 2 deletions

View File

@ -56,9 +56,9 @@ class Metasploit3 < Msf::Exploit::Remote
})
if !res
fail_with(Failure::Unreachable, "#{peer} - Vulnerable page was unreachable.")
fail_with(Failure::Unreachable, "#{peer} - Admin login page was unreachable.")
elsif res.code != 200
fail_with(Failure::UnexpectedReply, "#{peer} - Unexpected HTTP Response Code.")
fail_with(Failure::NotFound, "#{peer} - Admin login page was not found.")
elsif res.body =~ /Wing FTP Server Administrator/ and res.body =~ /2003-2014 <b>wftpserver.com<\/b>/
return Exploit::CheckCode::Appears
end