mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-04-24 19:12:02 +03:00
Fix for an Issue #543
This commit is contained in:
parent
72c79a4891
commit
ebccba922b
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user