Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 93c59c7

Browse files
committed
Fix for a --privileges --technique=B --dbms=Oracle (when one user has no privileges everything is foobared)
1 parent 103045d commit 93c59c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/generic/users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ def getPrivileges(self, query2=False):
474474
count = inject.getValue(query, union=False, error=False, expected=EXPECTED.INT, charsetType=CHARSET_TYPE.DIGITS)
475475

476476
if not isNumPosStrValue(count):
477-
if Backend.isDbms(DBMS.ORACLE) and not query2:
477+
if not retrievedUsers and Backend.isDbms(DBMS.ORACLE) and not query2:
478478
infoMsg = "trying with table USER_SYS_PRIVS"
479479
logger.info(infoMsg)
480480

0 commit comments

Comments
 (0)