mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +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))
|
logger.debug("reading registry key '%s' value '%s'" % (regKey, regValue))
|
||||||
|
|
||||||
if not parse:
|
data = self.evalCmd(self.__batPathRemote)
|
||||||
first = len(regKey) + 6
|
|
||||||
else:
|
if data:
|
||||||
first = None
|
pattern = ' '
|
||||||
|
index = data.find(pattern)
|
||||||
data = self.evalCmd(self.__batPathRemote, first)
|
if index != -1:
|
||||||
|
data = data[index + len(pattern):]
|
||||||
|
|
||||||
self.delRemoteFile(self.__batPathRemote, doubleslash=True)
|
self.delRemoteFile(self.__batPathRemote, doubleslash=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user