mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-23 19:34:13 +03:00
minor fix
This commit is contained in:
parent
c3065f6ecc
commit
6f17e84e19
|
@ -885,11 +885,23 @@ class Enumeration:
|
||||||
def getColumns(self, onlyColNames=False):
|
def getColumns(self, onlyColNames=False):
|
||||||
bruteForce = False
|
bruteForce = False
|
||||||
|
|
||||||
|
if not conf.tbl:
|
||||||
|
errMsg = "missing table parameter"
|
||||||
|
raise sqlmapMissingMandatoryOptionException, errMsg
|
||||||
|
|
||||||
if "." in conf.tbl:
|
if "." in conf.tbl:
|
||||||
conf.db, conf.tbl = conf.tbl.split(".")
|
conf.db, conf.tbl = conf.tbl.split(".")
|
||||||
|
|
||||||
self.forceDbmsEnum()
|
self.forceDbmsEnum()
|
||||||
|
|
||||||
|
if not conf.db:
|
||||||
|
warnMsg = "missing database parameter, sqlmap is going to "
|
||||||
|
warnMsg += "use the current database to enumerate table "
|
||||||
|
warnMsg += "'%s' columns" % conf.tbl
|
||||||
|
logger.warn(warnMsg)
|
||||||
|
|
||||||
|
conf.db = self.getCurrentDb()
|
||||||
|
|
||||||
if kb.dbms == DBMS.MYSQL and not kb.data.has_information_schema:
|
if kb.dbms == DBMS.MYSQL and not kb.data.has_information_schema:
|
||||||
errMsg = "information_schema not available, "
|
errMsg = "information_schema not available, "
|
||||||
errMsg += "back-end DBMS is MySQL < 5.0"
|
errMsg += "back-end DBMS is MySQL < 5.0"
|
||||||
|
@ -928,18 +940,6 @@ class Enumeration:
|
||||||
else:
|
else:
|
||||||
return columnExists(paths.COMMON_COLUMNS)
|
return columnExists(paths.COMMON_COLUMNS)
|
||||||
|
|
||||||
if not conf.tbl:
|
|
||||||
errMsg = "missing table parameter"
|
|
||||||
raise sqlmapMissingMandatoryOptionException, errMsg
|
|
||||||
|
|
||||||
if not conf.db:
|
|
||||||
warnMsg = "missing database parameter, sqlmap is going to "
|
|
||||||
warnMsg += "use the current database to enumerate table "
|
|
||||||
warnMsg += "'%s' columns" % conf.tbl
|
|
||||||
logger.warn(warnMsg)
|
|
||||||
|
|
||||||
conf.db = self.getCurrentDb()
|
|
||||||
|
|
||||||
firebirdTypes = {
|
firebirdTypes = {
|
||||||
"261":"BLOB",
|
"261":"BLOB",
|
||||||
"14":"CHAR",
|
"14":"CHAR",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user