mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
fixing few potential problems
This commit is contained in:
parent
c39d85420a
commit
d06182347f
|
@ -2767,7 +2767,7 @@ def isNoneValue(value):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if isinstance(value, basestring):
|
if isinstance(value, basestring):
|
||||||
return value == "None"
|
return value in ("None", "")
|
||||||
elif isinstance(value, (list, tuple)):
|
elif isinstance(value, (list, tuple)):
|
||||||
if len(value) == 1:
|
if len(value) == 1:
|
||||||
return isNoneValue(value[0])
|
return isNoneValue(value[0])
|
||||||
|
|
|
@ -135,6 +135,7 @@ class Enumeration(GenericEnumeration):
|
||||||
_ = (rootQuery.blind.query if query == rootQuery.blind.count else rootQuery.blind.query2 if query == rootQuery.blind.count2 else rootQuery.blind.query3).replace("%s", db) % index
|
_ = (rootQuery.blind.query if query == rootQuery.blind.count else rootQuery.blind.query2 if query == rootQuery.blind.count2 else rootQuery.blind.query3).replace("%s", db) % index
|
||||||
|
|
||||||
table = inject.getValue(_, inband=False, error=False)
|
table = inject.getValue(_, inband=False, error=False)
|
||||||
|
if not isNoneValue(table):
|
||||||
kb.hintValue = table
|
kb.hintValue = table
|
||||||
table = safeSQLIdentificatorNaming(table, True)
|
table = safeSQLIdentificatorNaming(table, True)
|
||||||
tables.append(table)
|
tables.append(table)
|
||||||
|
|
|
@ -1449,7 +1449,7 @@ class Enumeration:
|
||||||
value = inject.getValue(query, blind=False)
|
value = inject.getValue(query, blind=False)
|
||||||
|
|
||||||
if column == colList[0]:
|
if column == colList[0]:
|
||||||
if isNoneValue(value) or not value:
|
if isNoneValue(value):
|
||||||
breakRetrieval = True
|
breakRetrieval = True
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user