now --users works for MaxDB too

This commit is contained in:
Miroslav Stampar 2010-11-02 21:52:48 +00:00
parent cd0d4135ac
commit b761523f3f
2 changed files with 2 additions and 1 deletions

View File

@ -171,7 +171,7 @@ class Enumeration:
indexRange = getRange(count, plusOne=plusOne)
for index in indexRange:
if kb.dbms == DBMS.SYBASE:
if kb.dbms in (DBMS.SYBASE, DBMS.MAXDB):
query = rootQuery.blind.query % (kb.data.cachedUsers[-1] if kb.data.cachedUsers else " ")
elif condition:
query = rootQuery.blind.query2 % index

View File

@ -436,6 +436,7 @@
<substring query="SUBSTR((%s), %d, %d)"/>
<users>
<inband query="SELECT username FROM domain.users ORDER BY 1"/>
<blind query="SELECT MIN(username) FROM domain.users WHERE username > '%s'" count="SELECT CHR(COUNT(*)) FROM domain.users"/>
</users>
<tables>
<inband query="SELECT tablename FROM domain.tables WHERE schemaname='%s' AND type='TABLE'"/>