mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
minor bug fix to properly identify if user is admin on Oracle across all techniques
This commit is contained in:
parent
1599b5e37f
commit
a92ae93847
|
@ -79,9 +79,6 @@ class Enumeration(GenericEnumeration):
|
|||
# In Oracle we get the list of roles as string
|
||||
roles.add(role)
|
||||
|
||||
if isAdminFromPrivileges(roles):
|
||||
areAdmins.add(user)
|
||||
|
||||
if user in kb.data.cachedUsersRoles:
|
||||
kb.data.cachedUsersRoles[user] = list(roles.union(kb.data.cachedUsersRoles[user]))
|
||||
else:
|
||||
|
@ -162,4 +159,8 @@ class Enumeration(GenericEnumeration):
|
|||
errMsg += "for the database users"
|
||||
raise SqlmapNoneDataException(errMsg)
|
||||
|
||||
for user, privileges in kb.data.cachedUsersRoles.items():
|
||||
if isAdminFromPrivileges(privileges):
|
||||
areAdmins.add(user)
|
||||
|
||||
return kb.data.cachedUsersRoles, areAdmins
|
||||
|
|
Loading…
Reference in New Issue
Block a user