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