mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-05 00:03:44 +03:00
Moved method below
This commit is contained in:
parent
956e75e2b5
commit
529595fd85
|
@ -903,37 +903,6 @@ class Enumeration:
|
||||||
|
|
||||||
return kb.data.cachedTables
|
return kb.data.cachedTables
|
||||||
|
|
||||||
def getSchema(self):
|
|
||||||
infoMsg = "enumerating database management system schema"
|
|
||||||
logger.info(infoMsg)
|
|
||||||
|
|
||||||
pushValue(conf.db)
|
|
||||||
pushValue(conf.tbl)
|
|
||||||
|
|
||||||
conf.db = None
|
|
||||||
conf.tbl = None
|
|
||||||
|
|
||||||
self.getTables()
|
|
||||||
|
|
||||||
infoMsg = "fetched tables: "
|
|
||||||
infoMsg += ", ".join(["%s" % ", ".join("%s%s%s" % (db, ".." if \
|
|
||||||
Backend.isDbms(DBMS.MSSQL) or Backend.isDbms(DBMS.SYBASE) \
|
|
||||||
else ".", t) for t in tbl) for db, tbl in \
|
|
||||||
kb.data.cachedTables.items()])
|
|
||||||
logger.info(infoMsg)
|
|
||||||
|
|
||||||
for db, tables in kb.data.cachedTables.items():
|
|
||||||
for tbl in tables:
|
|
||||||
conf.db = db
|
|
||||||
conf.tbl = tbl
|
|
||||||
|
|
||||||
self.getColumns()
|
|
||||||
|
|
||||||
conf.tbl = popValue()
|
|
||||||
conf.db = popValue()
|
|
||||||
|
|
||||||
return kb.data.cachedColumns
|
|
||||||
|
|
||||||
def getColumns(self, onlyColNames=False):
|
def getColumns(self, onlyColNames=False):
|
||||||
bruteForce = False
|
bruteForce = False
|
||||||
|
|
||||||
|
@ -1174,6 +1143,37 @@ class Enumeration:
|
||||||
|
|
||||||
return kb.data.cachedColumns
|
return kb.data.cachedColumns
|
||||||
|
|
||||||
|
def getSchema(self):
|
||||||
|
infoMsg = "enumerating database management system schema"
|
||||||
|
logger.info(infoMsg)
|
||||||
|
|
||||||
|
pushValue(conf.db)
|
||||||
|
pushValue(conf.tbl)
|
||||||
|
|
||||||
|
conf.db = None
|
||||||
|
conf.tbl = None
|
||||||
|
|
||||||
|
self.getTables()
|
||||||
|
|
||||||
|
infoMsg = "fetched tables: "
|
||||||
|
infoMsg += ", ".join(["%s" % ", ".join("%s%s%s" % (db, ".." if \
|
||||||
|
Backend.isDbms(DBMS.MSSQL) or Backend.isDbms(DBMS.SYBASE) \
|
||||||
|
else ".", t) for t in tbl) for db, tbl in \
|
||||||
|
kb.data.cachedTables.items()])
|
||||||
|
logger.info(infoMsg)
|
||||||
|
|
||||||
|
for db, tables in kb.data.cachedTables.items():
|
||||||
|
for tbl in tables:
|
||||||
|
conf.db = db
|
||||||
|
conf.tbl = tbl
|
||||||
|
|
||||||
|
self.getColumns()
|
||||||
|
|
||||||
|
conf.tbl = popValue()
|
||||||
|
conf.db = popValue()
|
||||||
|
|
||||||
|
return kb.data.cachedColumns
|
||||||
|
|
||||||
def __pivotDumpTable(self, table, colList, count=None, blind=True):
|
def __pivotDumpTable(self, table, colList, count=None, blind=True):
|
||||||
lengths = {}
|
lengths = {}
|
||||||
entries = {}
|
entries = {}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user