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

Skip to content

Commit 3bf89fe

Browse files
committed
Fixes #3567
1 parent 9c917ec commit 3bf89fe

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

lib/core/common.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3322,6 +3322,10 @@ def unArrayizeValue(value):
33223322
'1'
33233323
>>> unArrayizeValue(['1', '2'])
33243324
'1'
3325+
>>> unArrayizeValue([['a', 'b'], 'c'])
3326+
'a'
3327+
>>> unArrayizeValue(_ for _ in xrange(10))
3328+
0
33253329
"""
33263330

33273331
if isListLike(value):
@@ -3332,6 +3336,8 @@ def unArrayizeValue(value):
33323336
else:
33333337
value = [_ for _ in flattenValue(value) if _ is not None]
33343338
value = value[0] if len(value) > 0 else None
3339+
elif inspect.isgenerator(value):
3340+
value = unArrayizeValue([_ for _ in value])
33353341

33363342
return value
33373343

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty import six
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.5.64"
21+
VERSION = "1.3.5.65"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

plugins/generic/databases.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,7 @@ def getColumns(self, onlyColNames=False, colTuple=None, bruteForce=None, dumpMod
637637

638638
for columnData in values:
639639
if not isNoneValue(columnData):
640+
columnData = [unArrayizeValue(_) for _ in columnData]
640641
name = safeSQLIdentificatorNaming(columnData[0])
641642

642643
if name:

0 commit comments

Comments
 (0)