From 46bf8f28e02c678761a2a82f5106334da7fce975 Mon Sep 17 00:00:00 2001 From: jvazquez-r7 Date: Sat, 11 Oct 2014 21:37:05 -0500 Subject: [PATCH] Fix regex --- modules/exploits/multi/misc/hp_data_protector_exec_integutil.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/exploits/multi/misc/hp_data_protector_exec_integutil.rb b/modules/exploits/multi/misc/hp_data_protector_exec_integutil.rb index 6839fcc0ad..41bda4e22b 100644 --- a/modules/exploits/multi/misc/hp_data_protector_exec_integutil.rb +++ b/modules/exploits/multi/misc/hp_data_protector_exec_integutil.rb @@ -250,7 +250,7 @@ class Metasploit3 < Msf::Exploit::Remote end def valid_target?(dir) - if target.name =~ /Windows/ && dir =~ /^[A-Za-z]:\\\\/ + if target.name =~ /Windows/ && dir =~ /^[A-Za-z]:\\/ return true elsif target.name =~ /Linux/ && dir.start_with?('/') return true