Fix regex

bug/bundler_fix
jvazquez-r7 2014-10-11 21:37:05 -05:00
parent 6092e84067
commit 46bf8f28e0
1 changed files with 1 additions and 1 deletions

View File

@ -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