mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-16 19:40:37 +03:00
minor appereance fix
This commit is contained in:
parent
f4e410db16
commit
761ec7529a
|
@ -124,7 +124,7 @@ class Enumeration(GenericEnumeration):
|
||||||
tblList = tblList[0]
|
tblList = tblList[0]
|
||||||
else:
|
else:
|
||||||
errMsg = "unable to retrieve the tables "
|
errMsg = "unable to retrieve the tables "
|
||||||
errMsg += "on database '%s'" % conf.db
|
errMsg += "on database '%s'" % unsafeSQLIdentificatorNaming(conf.db)
|
||||||
raise sqlmapNoneDataException, errMsg
|
raise sqlmapNoneDataException, errMsg
|
||||||
|
|
||||||
for tbl in tblList:
|
for tbl in tblList:
|
||||||
|
@ -137,14 +137,14 @@ class Enumeration(GenericEnumeration):
|
||||||
and conf.db in kb.data.cachedColumns and tbl in \
|
and conf.db in kb.data.cachedColumns and tbl in \
|
||||||
kb.data.cachedColumns[conf.db]:
|
kb.data.cachedColumns[conf.db]:
|
||||||
infoMsg = "fetched tables' columns on "
|
infoMsg = "fetched tables' columns on "
|
||||||
infoMsg += "database '%s'" % conf.db
|
infoMsg += "database '%s'" % unsafeSQLIdentificatorNaming(conf.db)
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
return { conf.db: kb.data.cachedColumns[conf.db]}
|
return { conf.db: kb.data.cachedColumns[conf.db]}
|
||||||
|
|
||||||
infoMsg = "fetching columns "
|
infoMsg = "fetching columns "
|
||||||
infoMsg += "for table '%s' " % tbl
|
infoMsg += "for table '%s' " % unsafeSQLIdentificatorNaming(tbl)
|
||||||
infoMsg += "on database '%s'" % conf.db
|
infoMsg += "on database '%s'" % unsafeSQLIdentificatorNaming(conf.db)
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
randStr = randomStr()
|
randStr = randomStr()
|
||||||
|
|
|
@ -197,7 +197,7 @@ class Enumeration(GenericEnumeration):
|
||||||
tblList = tblList[0]
|
tblList = tblList[0]
|
||||||
else:
|
else:
|
||||||
errMsg = "unable to retrieve the tables "
|
errMsg = "unable to retrieve the tables "
|
||||||
errMsg += "on database '%s'" % conf.db
|
errMsg += "on database '%s'" % unsafeSQLIdentificatorNaming(conf.db)
|
||||||
raise sqlmapNoneDataException, errMsg
|
raise sqlmapNoneDataException, errMsg
|
||||||
|
|
||||||
for tbl in tblList:
|
for tbl in tblList:
|
||||||
|
@ -215,7 +215,7 @@ class Enumeration(GenericEnumeration):
|
||||||
and conf.db in kb.data.cachedColumns and tbl in \
|
and conf.db in kb.data.cachedColumns and tbl in \
|
||||||
kb.data.cachedColumns[conf.db]:
|
kb.data.cachedColumns[conf.db]:
|
||||||
infoMsg = "fetched tables' columns on "
|
infoMsg = "fetched tables' columns on "
|
||||||
infoMsg += "database '%s'" % conf.db
|
infoMsg += "database '%s'" % unsafeSQLIdentificatorNaming(conf.db)
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
return { conf.db: kb.data.cachedColumns[conf.db]}
|
return { conf.db: kb.data.cachedColumns[conf.db]}
|
||||||
|
@ -227,8 +227,8 @@ class Enumeration(GenericEnumeration):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
infoMsg = "fetching columns "
|
infoMsg = "fetching columns "
|
||||||
infoMsg += "for table '%s' " % tbl
|
infoMsg += "for table '%s' " % unsafeSQLIdentificatorNaming(tbl)
|
||||||
infoMsg += "on database '%s'" % conf.db
|
infoMsg += "on database '%s'" % unsafeSQLIdentificatorNaming(conf.db)
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
for blind in blinds:
|
for blind in blinds:
|
||||||
|
|
|
@ -897,7 +897,7 @@ class Enumeration:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
infoMsg = "fetching number of tables for "
|
infoMsg = "fetching number of tables for "
|
||||||
infoMsg += "database '%s'" % db
|
infoMsg += "database '%s'" % unsafeSQLIdentificatorNaming(db)
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
if Backend.getIdentifiedDbms() in (DBMS.SQLITE, DBMS.FIREBIRD, DBMS.MAXDB, DBMS.ACCESS):
|
if Backend.getIdentifiedDbms() in (DBMS.SQLITE, DBMS.FIREBIRD, DBMS.MAXDB, DBMS.ACCESS):
|
||||||
|
@ -908,7 +908,7 @@ class Enumeration:
|
||||||
|
|
||||||
if not isNumPosStrValue(count):
|
if not isNumPosStrValue(count):
|
||||||
warnMsg = "unable to retrieve the number of "
|
warnMsg = "unable to retrieve the number of "
|
||||||
warnMsg += "tables for database '%s'" % db
|
warnMsg += "tables for database '%s'" % unsafeSQLIdentificatorNaming(db)
|
||||||
logger.warn(warnMsg)
|
logger.warn(warnMsg)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
@ -937,7 +937,7 @@ class Enumeration:
|
||||||
kb.data.cachedTables[db] = tables
|
kb.data.cachedTables[db] = tables
|
||||||
else:
|
else:
|
||||||
warnMsg = "unable to retrieve the table names "
|
warnMsg = "unable to retrieve the table names "
|
||||||
warnMsg += "for database '%s'" % db
|
warnMsg += "for database '%s'" % unsafeSQLIdentificatorNaming(db)
|
||||||
logger.warn(warnMsg)
|
logger.warn(warnMsg)
|
||||||
|
|
||||||
if isNoneValue(kb.data.cachedTables):
|
if isNoneValue(kb.data.cachedTables):
|
||||||
|
@ -1012,7 +1012,7 @@ class Enumeration:
|
||||||
tblList = list(tblList)
|
tblList = list(tblList)
|
||||||
else:
|
else:
|
||||||
errMsg = "unable to retrieve the tables "
|
errMsg = "unable to retrieve the tables "
|
||||||
errMsg += "on database '%s'" % conf.db
|
errMsg += "on database '%s'" % unsafeSQLIdentificatorNaming(conf.db)
|
||||||
raise sqlmapNoneDataException, errMsg
|
raise sqlmapNoneDataException, errMsg
|
||||||
|
|
||||||
for tbl in tblList:
|
for tbl in tblList:
|
||||||
|
@ -1077,7 +1077,7 @@ class Enumeration:
|
||||||
and conf.db in kb.data.cachedColumns and tbl in \
|
and conf.db in kb.data.cachedColumns and tbl in \
|
||||||
kb.data.cachedColumns[conf.db]:
|
kb.data.cachedColumns[conf.db]:
|
||||||
infoMsg = "fetched tables' columns on "
|
infoMsg = "fetched tables' columns on "
|
||||||
infoMsg += "database '%s'" % conf.db
|
infoMsg += "database '%s'" % unsafeSQLIdentificatorNaming(conf.db)
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
return {conf.db: kb.data.cachedColumns[conf.db]}
|
return {conf.db: kb.data.cachedColumns[conf.db]}
|
||||||
|
@ -1099,8 +1099,8 @@ class Enumeration:
|
||||||
else:
|
else:
|
||||||
condQuery = ""
|
condQuery = ""
|
||||||
|
|
||||||
infoMsg += "for table '%s' " % tbl
|
infoMsg += "for table '%s' " % unsafeSQLIdentificatorNaming(tbl)
|
||||||
infoMsg += "on database '%s'" % conf.db
|
infoMsg += "on database '%s'" % unsafeSQLIdentificatorNaming(conf.db)
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.PGSQL):
|
if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.PGSQL):
|
||||||
|
@ -1168,8 +1168,8 @@ class Enumeration:
|
||||||
else:
|
else:
|
||||||
condQuery = ""
|
condQuery = ""
|
||||||
|
|
||||||
infoMsg += "for table '%s' " % tbl
|
infoMsg += "for table '%s' " % unsafeSQLIdentificatorNaming(tbl)
|
||||||
infoMsg += "on database '%s'" % conf.db
|
infoMsg += "on database '%s'" % unsafeSQLIdentificatorNaming(conf.db)
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.PGSQL):
|
if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.PGSQL):
|
||||||
|
@ -1199,8 +1199,8 @@ class Enumeration:
|
||||||
|
|
||||||
if not isNumPosStrValue(count):
|
if not isNumPosStrValue(count):
|
||||||
errMsg = "unable to retrieve the number of columns "
|
errMsg = "unable to retrieve the number of columns "
|
||||||
errMsg += "for table '%s' " % tbl
|
errMsg += "for table '%s' " % unsafeSQLIdentificatorNaming(tbl)
|
||||||
errMsg += "on database '%s'" % conf.db
|
errMsg += "on database '%s'" % unsafeSQLIdentificatorNaming(conf.db)
|
||||||
logger.error(errMsg)
|
logger.error(errMsg)
|
||||||
|
|
||||||
continue
|
continue
|
||||||
|
@ -1264,7 +1264,7 @@ class Enumeration:
|
||||||
|
|
||||||
if not kb.data.cachedColumns:
|
if not kb.data.cachedColumns:
|
||||||
errMsg = "unable to retrieve the columns for any "
|
errMsg = "unable to retrieve the columns for any "
|
||||||
errMsg += "table on database '%s'" % conf.db
|
errMsg += "table on database '%s'" % unsafeSQLIdentificatorNaming(conf.db)
|
||||||
logger.error(errMsg)
|
logger.error(errMsg)
|
||||||
|
|
||||||
if bruteForce is None:
|
if bruteForce is None:
|
||||||
|
@ -1339,7 +1339,7 @@ class Enumeration:
|
||||||
if conf.tbl is not None and conf.db is None:
|
if conf.tbl is not None and conf.db is None:
|
||||||
warnMsg = "missing database parameter, sqlmap is going to "
|
warnMsg = "missing database parameter, sqlmap is going to "
|
||||||
warnMsg += "use the current database to retrieve the "
|
warnMsg += "use the current database to retrieve the "
|
||||||
warnMsg += "number of entries for table '%s'" % conf.tbl
|
warnMsg += "number of entries for table '%s'" % unsafeSQLIdentificatorNaming(conf.tbl)
|
||||||
logger.warn(warnMsg)
|
logger.warn(warnMsg)
|
||||||
|
|
||||||
conf.db = self.getCurrentDb()
|
conf.db = self.getCurrentDb()
|
||||||
|
@ -1372,7 +1372,7 @@ class Enumeration:
|
||||||
count = inject.getValue(query, inband=False, error=False) if blind else inject.getValue(query, blind=False)
|
count = inject.getValue(query, inband=False, error=False) if blind else inject.getValue(query, blind=False)
|
||||||
|
|
||||||
if count == "0":
|
if count == "0":
|
||||||
infoMsg = "table '%s' appears to be empty" % table
|
infoMsg = "table '%s' appears to be empty" % unsafeSQLIdentificatorNaming(table)
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
for column in colList:
|
for column in colList:
|
||||||
|
@ -1523,7 +1523,7 @@ class Enumeration:
|
||||||
tblList = tblList[0]
|
tblList = tblList[0]
|
||||||
else:
|
else:
|
||||||
errMsg = "unable to retrieve the tables "
|
errMsg = "unable to retrieve the tables "
|
||||||
errMsg += "on database '%s'" % conf.db
|
errMsg += "on database '%s'" % unsafeSQLIdentificatorNaming(conf.db)
|
||||||
raise sqlmapNoneDataException, errMsg
|
raise sqlmapNoneDataException, errMsg
|
||||||
|
|
||||||
for tbl in tblList:
|
for tbl in tblList:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user