Changed and to &&

bug/bundler_fix
headlesszeke 2014-12-02 00:02:53 -06:00
parent 280e10db55
commit 564488acb4
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Cookie' => "p=1b3231655cebb7a1f783eddf27d254ca", # md5("super")
}
})
if res and res.code == 200 and res.body.to_s =~ /TOOLS - COMMAND/
if res && res.code == 200 && res.body.to_s =~ /TOOLS - COMMAND/
print_good("#{peer} - Command sent successfully")
else
fail_with(Failure::UnexpectedReply, "#{peer} - Command execution failed")