Let --schema work also for Sybase and MaxDB

This commit is contained in:
Bernardo Damele 2011-04-29 00:02:28 +00:00
parent edac0b2558
commit 9927f5a7db
2 changed files with 10 additions and 4 deletions

View File

@ -38,8 +38,11 @@ class Enumeration(GenericEnumeration):
def getColumns(self, onlyColNames=False):
if not conf.tbl:
errMsg = "missing table parameter"
raise sqlmapMissingMandatoryOptionException, errMsg
warnMsg = "missing table parameter, sqlmap will enumerate "
warnMsg += "the whole database management system schema"
logger.warn(warnMsg)
return self.getSchema()
if "." in conf.tbl:
conf.db, conf.tbl = conf.tbl.split(".")

View File

@ -48,8 +48,11 @@ class Enumeration(GenericEnumeration):
def getColumns(self, onlyColNames=False):
if not conf.tbl:
errMsg = "missing table parameter"
raise sqlmapMissingMandatoryOptionException, errMsg
warnMsg = "missing table parameter, sqlmap will enumerate "
warnMsg += "the whole database management system schema"
logger.warn(warnMsg)
return self.getSchema()
if "." in conf.tbl:
conf.db, conf.tbl = conf.tbl.split(".")