mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-16 19:40:37 +03:00
fix for bug reported by David Guimaraes (colEntry = entry[index] - IndexError: list index out of range)
This commit is contained in:
parent
27d76847fe
commit
18db96c45f
|
@ -880,10 +880,10 @@ class Enumeration:
|
||||||
if value:
|
if value:
|
||||||
table = {}
|
table = {}
|
||||||
columns = {}
|
columns = {}
|
||||||
|
|
||||||
if kb.dbms == "SQLite":
|
if kb.dbms == "SQLite":
|
||||||
for match in re.finditer(getCompiledRegex(r"(\w+) ([A-Z]+)[,\r\n]"), value):
|
for match in re.finditer(getCompiledRegex(r"(\w+) ([A-Z]+)[,\r\n]"), value):
|
||||||
columns[match.group(1)] = match.group(2)
|
columns[match.group(1)] = match.group(2)
|
||||||
else:
|
else:
|
||||||
for column, colType in value:
|
for column, colType in value:
|
||||||
columns[column] = colType
|
columns[column] = colType
|
||||||
|
@ -1061,10 +1061,13 @@ class Enumeration:
|
||||||
kb.data.dumpedTable[column] = { "length": 0, "values": [] }
|
kb.data.dumpedTable[column] = { "length": 0, "values": [] }
|
||||||
|
|
||||||
for entry in entries:
|
for entry in entries:
|
||||||
|
if entry is None or len(entry) == 0:
|
||||||
|
continue
|
||||||
|
|
||||||
if isinstance(entry, basestring):
|
if isinstance(entry, basestring):
|
||||||
colEntry = entry
|
colEntry = entry
|
||||||
else:
|
else:
|
||||||
colEntry = entry[index]
|
colEntry = entry[index] if index < len(entry) else u''
|
||||||
|
|
||||||
colEntryLen = len(getUnicode(colEntry))
|
colEntryLen = len(getUnicode(colEntry))
|
||||||
maxLen = max(colLen, colEntryLen)
|
maxLen = max(colLen, colEntryLen)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user