From e07e5caebd86a00a1848ecf23393665448bb2044 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Thu, 22 Nov 2018 09:19:38 -0600 Subject: [PATCH] don't do a binary regex against a regular string --- lib/msf/core/auxiliary/auth_brute.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/core/auxiliary/auth_brute.rb b/lib/msf/core/auxiliary/auth_brute.rb index 7386a0fdf6..803e708178 100644 --- a/lib/msf/core/auxiliary/auth_brute.rb +++ b/lib/msf/core/auxiliary/auth_brute.rb @@ -626,7 +626,7 @@ module Auxiliary::AuthBrute port = host_port.to_s.strip if host_port complete_message = nil old_msg = msg.to_s.strip - msg_regex = /(#{ip})(:#{port})?(\s*-?\s*)(#{proto.to_s})?(\s*-?\s*)(.*)/ni + msg_regex = /(#{ip})(:#{port})?(\s*-?\s*)(#{proto.to_s})?(\s*-?\s*)(.*)/i if old_msg.match(msg_regex) complete_message = msg.to_s.strip else