minor update

This commit is contained in:
Miroslav Stampar 2011-02-20 22:45:23 +00:00
parent aac817935a
commit 68a95fd1b1
3 changed files with 11 additions and 2 deletions

View File

@ -15,6 +15,7 @@ from lib.core.data import kb
from lib.core.data import logger
from lib.core.data import queries
from lib.core.enums import PAYLOAD
from lib.core.exception import sqlmapMissingMandatoryOptionException
from plugins.generic.enumeration import Enumeration as GenericEnumeration
class Enumeration(GenericEnumeration):
@ -36,6 +37,10 @@ class Enumeration(GenericEnumeration):
return []
def getColumns(self, onlyColNames=False):
if not conf.tbl:
errMsg = "missing table parameter"
raise sqlmapMissingMandatoryOptionException, errMsg
if "." in conf.tbl:
conf.db, conf.tbl = conf.tbl.split(".")

View File

@ -16,7 +16,7 @@ from lib.core.data import logger
from lib.core.data import queries
from lib.core.dicts import sybaseTypes
from lib.core.enums import PAYLOAD
from lib.core.exception import sqlmapUnsupportedFeatureException
from lib.core.exception import sqlmapMissingMandatoryOptionException
from plugins.generic.enumeration import Enumeration as GenericEnumeration
class Enumeration(GenericEnumeration):
@ -47,6 +47,10 @@ class Enumeration(GenericEnumeration):
return kb.data.cachedUsers
def getColumns(self, onlyColNames=False):
if not conf.tbl:
errMsg = "missing table parameter"
raise sqlmapMissingMandatoryOptionException, errMsg
if "." in conf.tbl:
conf.db, conf.tbl = conf.tbl.split(".")

View File

@ -446,7 +446,7 @@
<delimiter query=","/>
<substring query="SUBSTR((%s), %d, %d)"/>
<users>
<inband query="SELECT username FROM domain.users ORDER BY 1"/>
<inband query="SELECT username FROM domain.users"/>
<blind query="SELECT MIN(username) FROM domain.users WHERE username > '%s'" count="SELECT CHR(COUNT(*)) FROM domain.users"/>
</users>
<columns>