From aeb149db224da468b0921af153344fff8bffd77a Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Sat, 30 Apr 2011 22:04:08 +0000 Subject: [PATCH] Proper ordering of enumeration methods, consistent with the others enumeration classes --- plugins/dbms/access/enumeration.py | 44 +++++++++++++++--------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/plugins/dbms/access/enumeration.py b/plugins/dbms/access/enumeration.py index f8871ed43..ff959ebe4 100644 --- a/plugins/dbms/access/enumeration.py +++ b/plugins/dbms/access/enumeration.py @@ -14,28 +14,44 @@ class Enumeration(GenericEnumeration): def __init__(self): GenericEnumeration.__init__(self) - def getDbs(self): - warnMsg = "on Microsoft Access it is not possible to enumerate databases" - logger.warn(warnMsg) - - return [] - def getBanner(self): warnMsg = "on Microsoft Access it is not possible to get a banner" logger.warn(warnMsg) return None + def getCurrentUser(self): + warnMsg = "on Microsoft Access it is not possible to enumerate the current user" + logger.warn(warnMsg) + def getCurrentDb(self): warnMsg = "on Microsoft Access it is not possible to get name of the current database" logger.warn(warnMsg) + def getUsers(self): + warnMsg = "on Microsoft Access it is not possible to enumerate the users" + logger.warn(warnMsg) + + return [] + def getPasswordHashes(self): warnMsg = "on Microsoft Access it is not possible to enumerate the user password hashes" logger.warn(warnMsg) return {} + def getPrivileges(self, *args): + warnMsg = "on Microsoft Access it is not possible to enumerate the user privileges" + logger.warn(warnMsg) + + return {} + + def getDbs(self): + warnMsg = "on Microsoft Access it is not possible to enumerate databases" + logger.warn(warnMsg) + + return [] + def searchDb(self): warnMsg = "on Microsoft Access it is not possible to search databases" logger.warn(warnMsg) @@ -53,19 +69,3 @@ class Enumeration(GenericEnumeration): logger.warn(warnMsg) return [] - - def getCurrentUser(self): - warnMsg = "on Microsoft Access it is not possible to enumerate the current user" - logger.warn(warnMsg) - - def getUsers(self): - warnMsg = "on Microsoft Access it is not possible to enumerate the users" - logger.warn(warnMsg) - - return [] - - def getPrivileges(self, *args): - warnMsg = "on Microsoft Access it is not possible to enumerate the user privileges" - logger.warn(warnMsg) - - return {}