mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
final fix for reading registry keys (now both parse and non-parse reads work fine)
This commit is contained in:
parent
0a2fe651ab
commit
6b1ae62753
|
@ -95,12 +95,13 @@ class Registry:
|
|||
|
||||
logger.debug("reading registry key '%s' value '%s'" % (regKey, regValue))
|
||||
|
||||
if not parse:
|
||||
first = len(regKey) + 6
|
||||
else:
|
||||
first = None
|
||||
|
||||
data = self.evalCmd(self.__batPathRemote, first)
|
||||
data = self.evalCmd(self.__batPathRemote)
|
||||
|
||||
if data:
|
||||
pattern = ' '
|
||||
index = data.find(pattern)
|
||||
if index != -1:
|
||||
data = data[index + len(pattern):]
|
||||
|
||||
self.delRemoteFile(self.__batPathRemote, doubleslash=True)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user