Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3c9be94

Browse files
committed
Fixes #1649
1 parent 48ac210 commit 3c9be94

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3852,7 +3852,7 @@ def hashDBRetrieve(key, unserialize=False, checkConf=False):
38523852

38533853
_ = "%s%s%s" % (conf.url or "%s%s" % (conf.hostname, conf.port), key, HASHDB_MILESTONE_VALUE)
38543854
retVal = conf.hashDB.retrieve(_, unserialize) if kb.resumeValues and not (checkConf and any((conf.flushSession, conf.freshQueries))) else None
3855-
if not kb.inferenceMode and not kb.fileReadMode and any(_ in (retVal or "") for _ in (PARTIAL_VALUE_MARKER, PARTIAL_HEX_VALUE_MARKER)):
3855+
if not kb.inferenceMode and not kb.fileReadMode and isinstance(retVal, basestring) and any(_ in retVal for _ in (PARTIAL_VALUE_MARKER, PARTIAL_HEX_VALUE_MARKER)):
38563856
retVal = None
38573857
return retVal
38583858

lib/core/option.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1915,6 +1915,7 @@ def _setKnowledgeBaseAttributes(flushAll=True):
19151915
kb.timeValidCharsRun = 0
19161916
kb.uChar = NULL
19171917
kb.unionDuplicates = False
1918+
kb.whereCollectTimes = False
19181919
kb.xpCmdshellAvailable = False
19191920

19201921
if flushAll:

plugins/generic/entries.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
from lib.core.common import isNoneValue
2020
from lib.core.common import isNumPosStrValue
2121
from lib.core.common import isTechniqueAvailable
22+
from lib.core.common import popValue
2223
from lib.core.common import prioritySortColumns
24+
from lib.core.common import pushValue
2325
from lib.core.common import readInput
2426
from lib.core.common import safeSQLIdentificatorNaming
2527
from lib.core.common import unArrayizeValue
@@ -234,6 +236,10 @@ def dumpTable(self, foundData=None):
234236

235237
query = whereQuery(query)
236238

239+
if conf.dumpWhere:
240+
kb.whereResponseTimes = True
241+
pushValue(kb.responseTimes)
242+
237243
count = inject.getValue(query, union=False, error=False, expected=EXPECTED.INT, charsetType=CHARSET_TYPE.DIGITS)
238244

239245
lengths = {}
@@ -322,6 +328,10 @@ def dumpTable(self, foundData=None):
322328
warnMsg = "Ctrl+C detected in dumping phase"
323329
logger.warn(warnMsg)
324330

331+
if conf.dumpWhere:
332+
kb.responseTimes = popValue()
333+
kb.whereResponseTimes = False
334+
325335
for column, columnEntries in entries.items():
326336
length = max(lengths[column], len(column))
327337

0 commit comments

Comments
 (0)