Fix regex
parent
6092e84067
commit
46bf8f28e0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue