mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
minor refactoring
This commit is contained in:
parent
97bc816aeb
commit
deae534ee7
4 changed files with 7 additions and 7 deletions
|
|
@ -43,7 +43,7 @@ class Dump:
|
|||
self.__outputFP.write(text)
|
||||
self.__outputFP.flush()
|
||||
|
||||
conf.loggedToOut = True
|
||||
kb.dataOutputFlag = True
|
||||
|
||||
def __formatString(self, inpStr):
|
||||
return restoreDumpMarkedChars(getUnicode(inpStr))
|
||||
|
|
|
|||
|
|
@ -1270,7 +1270,6 @@ def __setConfAttributes():
|
|||
conf.dumpPath = None
|
||||
conf.httpHeaders = []
|
||||
conf.hostname = None
|
||||
conf.loggedToOut = None
|
||||
conf.multipleTargets = False
|
||||
conf.outputPath = None
|
||||
conf.paramDict = {}
|
||||
|
|
@ -1309,8 +1308,8 @@ def __setKnowledgeBaseAttributes(flushAll=True):
|
|||
kb.cache.stdev = {}
|
||||
|
||||
kb.commonOutputs = None
|
||||
|
||||
kb.data = advancedDict()
|
||||
kb.dataOutputFlag = False
|
||||
|
||||
# Active back-end DBMS fingerprint
|
||||
kb.dbms = None
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ from extra.prettyprint import prettyprint
|
|||
from lib.core.common import getUnicode
|
||||
from lib.core.common import restoreDumpMarkedChars
|
||||
from lib.core.data import conf
|
||||
from lib.core.data import kb
|
||||
from lib.core.data import logger
|
||||
from lib.core.exception import sqlmapFilePathException
|
||||
from lib.core.settings import UNICODE_ENCODING
|
||||
|
|
@ -104,7 +105,7 @@ class XMLDump:
|
|||
|
||||
self.__outputFP.flush()
|
||||
|
||||
conf.loggedToOut = True
|
||||
kb.dataOutputFlag = True
|
||||
|
||||
def __getRootChild(self,elemName):
|
||||
'''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue