mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Fix for an Issue #543
This commit is contained in:
@@ -389,6 +389,9 @@ class Users:
|
|||||||
else:
|
else:
|
||||||
privilege = value[count]
|
privilege = value[count]
|
||||||
|
|
||||||
|
if privilege is None:
|
||||||
|
continue
|
||||||
|
|
||||||
# In PostgreSQL we get 1 if the privilege is
|
# In PostgreSQL we get 1 if the privilege is
|
||||||
# True, 0 otherwise
|
# True, 0 otherwise
|
||||||
if Backend.isDbms(DBMS.PGSQL) and getUnicode(privilege).isdigit():
|
if Backend.isDbms(DBMS.PGSQL) and getUnicode(privilege).isdigit():
|
||||||
@@ -506,8 +509,12 @@ class Users:
|
|||||||
query = rootQuery.blind.query % (index, user)
|
query = rootQuery.blind.query % (index, user)
|
||||||
else:
|
else:
|
||||||
query = rootQuery.blind.query % (user, index)
|
query = rootQuery.blind.query % (user, index)
|
||||||
|
|
||||||
privilege = unArrayizeValue(inject.getValue(query, union=False, error=False))
|
privilege = unArrayizeValue(inject.getValue(query, union=False, error=False))
|
||||||
|
|
||||||
|
if privilege is None:
|
||||||
|
continue
|
||||||
|
|
||||||
# In PostgreSQL we get 1 if the privilege is True,
|
# In PostgreSQL we get 1 if the privilege is True,
|
||||||
# 0 otherwise
|
# 0 otherwise
|
||||||
if Backend.isDbms(DBMS.PGSQL) and ", " in privilege:
|
if Backend.isDbms(DBMS.PGSQL) and ", " in privilege:
|
||||||
|
|||||||
Reference in New Issue
Block a user