mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
Let --schema work also for Sybase and MaxDB
This commit is contained in:
parent
edac0b2558
commit
9927f5a7db
|
@ -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(".")
|
||||
|
|
|
@ -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(".")
|
||||
|
|
Loading…
Reference in New Issue
Block a user