From 49bb5a1624c66979e76a1b4a9a52b3aa90f510d8 Mon Sep 17 00:00:00 2001 From: bcoles Date: Wed, 20 Mar 2019 14:13:00 +0100 Subject: [PATCH] Update modules/exploits/multi/http/cmsms_showtime2_rce.rb Co-Authored-By: fabiocogno --- modules/exploits/multi/http/cmsms_showtime2_rce.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/exploits/multi/http/cmsms_showtime2_rce.rb b/modules/exploits/multi/http/cmsms_showtime2_rce.rb index d19cb06122..242f0d4342 100644 --- a/modules/exploits/multi/http/cmsms_showtime2_rce.rb +++ b/modules/exploits/multi/http/cmsms_showtime2_rce.rb @@ -104,7 +104,7 @@ class MetasploitModule < Msf::Exploit::Remote fail_with(Failure::Unreachable, 'Connection failed') end - if res && res.code == 200 && (res.body =~ /#{Regexp.escape(fname)}/i || res.body =~ /id="showoverview"/i) + if res.code == 200 && (res.body =~ /#{Regexp.escape(fname)}/i || res.body =~ /id="showoverview"/i) return end