mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
bug fix
This commit is contained in:
parent
df4abf1af1
commit
262996fc5b
|
@ -211,10 +211,9 @@ class Dump:
|
|||
|
||||
for column in colList:
|
||||
colType = columns[column]
|
||||
maxlength1 = max(maxlength1, len(column))
|
||||
|
||||
if colType is not None:
|
||||
maxlength2 = max(maxlength2, len(colType))
|
||||
maxlength1 = max(maxlength1, len(column or ""))
|
||||
maxlength2 = max(maxlength2, len(colType or ""))
|
||||
|
||||
maxlength1 = max(maxlength1, len("COLUMN"))
|
||||
lines1 = "-" * (maxlength1 + 2)
|
||||
|
|
|
@ -1141,6 +1141,7 @@ class Enumeration:
|
|||
if not isNoneValue(columnData):
|
||||
name = safeSQLIdentificatorNaming(columnData[0])
|
||||
|
||||
if name:
|
||||
if len(columnData) == 1:
|
||||
columns[name] = ""
|
||||
else:
|
||||
|
@ -1242,6 +1243,7 @@ class Enumeration:
|
|||
query = agent.limitQuery(index, query, field)
|
||||
column = inject.getValue(query, inband=False, error=False)
|
||||
|
||||
if not isNoneValue(column):
|
||||
if not onlyColNames:
|
||||
if Backend.getIdentifiedDbms() in ( DBMS.MYSQL, DBMS.PGSQL ):
|
||||
query = rootQuery.blind.query2 % (unsafeSQLIdentificatorNaming(tbl), column, unsafeSQLIdentificatorNaming(conf.db))
|
||||
|
|
Loading…
Reference in New Issue
Block a user