fix per wchen

This commit is contained in:
h00die 2016-06-20 17:57:10 -04:00
parent 6fe7698b13
commit 15a3d739c0
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class MetasploitModule < Msf::Exploit::Remote
# double check auth worked and we got a Log out on the page.
# at times I got it to auth, but then it would give permission errors
# so we want to try to double check everything is good
unless res.body =~ /Log out/
if res && !res.body =~ /Log out/
fail_with(Failure::UnexpectedReply, "#{peer} Login Failed with #{datastore['USERNAME']}:#{datastore['PASSWORD']}")
end
vprint_good("Login Successful!")