From 6a0534de14aa054389760cbdcacdbc0b781c1282 Mon Sep 17 00:00:00 2001 From: Green-m Date: Thu, 26 Jul 2018 05:23:27 -0400 Subject: [PATCH] Update splitkey method to match better on windows --- lib/rex/post/meterpreter/extensions/stdapi/sys/registry.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ]