From 93c59c72774d5018722a74d42f283d59cbf0a579 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 30 Jan 2013 16:41:57 +0100 Subject: [PATCH] Fix for a --privileges --technique=B --dbms=Oracle (when one user has no privileges everything is foobared) --- plugins/generic/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/generic/users.py b/plugins/generic/users.py index 438c2929b..ee5cf96c8 100644 --- a/plugins/generic/users.py +++ b/plugins/generic/users.py @@ -474,7 +474,7 @@ class Users: count = inject.getValue(query, union=False, error=False, expected=EXPECTED.INT, charsetType=CHARSET_TYPE.DIGITS) if not isNumPosStrValue(count): - if Backend.isDbms(DBMS.ORACLE) and not query2: + if not retrievedUsers and Backend.isDbms(DBMS.ORACLE) and not query2: infoMsg = "trying with table USER_SYS_PRIVS" logger.info(infoMsg)