Changed and to &&
parent
280e10db55
commit
564488acb4
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue