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