diff --git a/lib/rex/post/meterpreter/extensions/stdapi/sys/registry.rb b/lib/rex/post/meterpreter/extensions/stdapi/sys/registry.rb index 79fe74abfe..43611b3345 100644 --- a/lib/rex/post/meterpreter/extensions/stdapi/sys/registry.rb +++ b/lib/rex/post/meterpreter/extensions/stdapi/sys/registry.rb @@ -418,7 +418,7 @@ class Registry # 'Software\Dog' ] # def self.splitkey(str) - if (str =~ /^(.+?)\\(.*)$/) + if (str =~ /^(.+?)[\\]{1,}(.*)$/) [ key2str($1), $2 ] else [ key2str(str), nil ]