mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 13:03:50 +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):
|
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(".")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user