mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
Let --schema work also for Sybase and MaxDB
This commit is contained in:
@@ -38,8 +38,11 @@ class Enumeration(GenericEnumeration):
|
|||||||
|
|
||||||
def getColumns(self, onlyColNames=False):
|
def getColumns(self, onlyColNames=False):
|
||||||
if not conf.tbl:
|
if not conf.tbl:
|
||||||
errMsg = "missing table parameter"
|
warnMsg = "missing table parameter, sqlmap will enumerate "
|
||||||
raise sqlmapMissingMandatoryOptionException, errMsg
|
warnMsg += "the whole database management system schema"
|
||||||
|
logger.warn(warnMsg)
|
||||||
|
|
||||||
|
return self.getSchema()
|
||||||
|
|
||||||
if "." in conf.tbl:
|
if "." in conf.tbl:
|
||||||
conf.db, conf.tbl = conf.tbl.split(".")
|
conf.db, conf.tbl = conf.tbl.split(".")
|
||||||
|
|||||||
@@ -48,8 +48,11 @@ class Enumeration(GenericEnumeration):
|
|||||||
|
|
||||||
def getColumns(self, onlyColNames=False):
|
def getColumns(self, onlyColNames=False):
|
||||||
if not conf.tbl:
|
if not conf.tbl:
|
||||||
errMsg = "missing table parameter"
|
warnMsg = "missing table parameter, sqlmap will enumerate "
|
||||||
raise sqlmapMissingMandatoryOptionException, errMsg
|
warnMsg += "the whole database management system schema"
|
||||||
|
logger.warn(warnMsg)
|
||||||
|
|
||||||
|
return self.getSchema()
|
||||||
|
|
||||||
if "." in conf.tbl:
|
if "." in conf.tbl:
|
||||||
conf.db, conf.tbl = conf.tbl.split(".")
|
conf.db, conf.tbl = conf.tbl.split(".")
|
||||||
|
|||||||
Reference in New Issue
Block a user