Update splitkey method to match better on windows

GSoC/Meterpreter_Web_Console
Green-m 2018-07-26 05:23:27 -04:00
parent 746b63f76a
commit 6a0534de14
1 changed files with 1 additions and 1 deletions

View File

@ -418,7 +418,7 @@ class Registry
# 'Software\Dog' ]
#
def self.splitkey(str)
if (str =~ /^(.+?)\\(.*)$/)
if (str =~ /^(.+?)[\\]{1,}(.*)$/)
[ key2str($1), $2 ]
else
[ key2str(str), nil ]