diff --git a/plugins/generic/enumeration.py b/plugins/generic/enumeration.py index a36036baa..51ac9c0b8 100644 --- a/plugins/generic/enumeration.py +++ b/plugins/generic/enumeration.py @@ -142,7 +142,7 @@ class Enumeration: if Backend.getIdentifiedDbms() == DBMS.MYSQL: self.getCurrentUser() - query = queries[Backend.getIdentifiedDbms()].is_dba.query % kb.data.currentUser.split("@")[0] + query = queries[Backend.getIdentifiedDbms()].is_dba.query % (kb.data.currentUser.split("@")[0] if kb.data.currentUser else None) elif Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.SYBASE) and user is not None: query = queries[Backend.getIdentifiedDbms()].is_dba.query2 % user else: diff --git a/xml/livetests.xml b/xml/livetests.xml index e38dc9837..2021475ef 100644 --- a/xml/livetests.xml +++ b/xml/livetests.xml @@ -323,7 +323,7 @@ - + @@ -350,7 +350,7 @@ - + @@ -376,7 +376,7 @@ - + @@ -402,7 +402,7 @@ - +