mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-28 20:43:49 +03:00
Minor fix for --dump --technique=B when empty strings are returned
This commit is contained in:
parent
21481df239
commit
3f596cda85
|
@ -437,7 +437,7 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse
|
||||||
value = __goInferenceProxy(query, fromUser, batch, unpack, charsetType, firstChar, lastChar, dump)
|
value = __goInferenceProxy(query, fromUser, batch, unpack, charsetType, firstChar, lastChar, dump)
|
||||||
|
|
||||||
if value and isinstance(value, basestring):
|
if value and isinstance(value, basestring):
|
||||||
value = value.strip()
|
value = value.strip() if value.strip() else value[:1]
|
||||||
else:
|
else:
|
||||||
errMsg = "none of the injection types identified can be "
|
errMsg = "none of the injection types identified can be "
|
||||||
errMsg += "leveraged to retrieve queries output"
|
errMsg += "leveraged to retrieve queries output"
|
||||||
|
|
|
@ -285,6 +285,7 @@ class Entries:
|
||||||
query = rootQuery.blind.query % (index, column, tbl)
|
query = rootQuery.blind.query % (index, column, tbl)
|
||||||
|
|
||||||
value = NULL if column in emptyColumns else inject.getValue(query, inband=False, error=False, dump=True)
|
value = NULL if column in emptyColumns else inject.getValue(query, inband=False, error=False, dump=True)
|
||||||
|
value = '' if value is None else value
|
||||||
|
|
||||||
_ = DUMP_REPLACEMENTS.get(getUnicode(value), getUnicode(value))
|
_ = DUMP_REPLACEMENTS.get(getUnicode(value), getUnicode(value))
|
||||||
lengths[column] = max(lengths[column], len(_))
|
lengths[column] = max(lengths[column], len(_))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user