From ad28f9767f27eb8ca24f04f0479a650b6b24a2f8 Mon Sep 17 00:00:00 2001 From: sinn3r Date: Mon, 2 Mar 2015 14:41:25 -0600 Subject: [PATCH] Use include --- modules/exploits/linux/http/symantec_web_gateway_restore.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/exploits/linux/http/symantec_web_gateway_restore.rb b/modules/exploits/linux/http/symantec_web_gateway_restore.rb index 17995a4549..46fe21a41f 100644 --- a/modules/exploits/linux/http/symantec_web_gateway_restore.rb +++ b/modules/exploits/linux/http/symantec_web_gateway_restore.rb @@ -75,7 +75,7 @@ class Metasploit3 < Msf::Exploit::Remote uri = target_uri.path res = send_request_cgi({'uri' => normalize_uri(uri, 'spywall/login.php')}) - if res && res.body =~ /Symantec Web Gateway/ + if res && res.body.include?('Symantec Web Gateway') return Exploit::CheckCode::Detected end