mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
Minor layout adjustments
This commit is contained in:
parent
c9f0c75030
commit
e7c8be1d45
|
@ -142,7 +142,7 @@ class Dump:
|
|||
self.lister("available databases", dbs)
|
||||
|
||||
def dbTables(self, dbTables):
|
||||
if isinstance(dbTables, list):
|
||||
if isinstance(dbTables, list) and len(dbTables) > 0:
|
||||
maxlength = 0
|
||||
|
||||
for table in dbTables:
|
||||
|
@ -152,6 +152,8 @@ class Dump:
|
|||
|
||||
dbTables.sort(key=lambda x: x.lower())
|
||||
|
||||
self.__write("Brute-forced databases:")
|
||||
|
||||
if len(dbTables) == 1:
|
||||
self.__write("[1 table]")
|
||||
else:
|
||||
|
@ -165,7 +167,7 @@ class Dump:
|
|||
|
||||
self.__write("+%s+\n" % lines)
|
||||
|
||||
elif isinstance(dbTables, dict):
|
||||
elif isinstance(dbTables, dict) and len(dbTables) > 0:
|
||||
maxlength = 0
|
||||
|
||||
for tables in dbTables.values():
|
||||
|
|
|
@ -828,12 +828,13 @@ class Enumeration:
|
|||
retVal.append(table)
|
||||
|
||||
count += 1
|
||||
status = '%d/%d (%d%s)' % (count, length, round(100.0*count/length), '%')
|
||||
dataToStdout("\r[%s] [INFO] complete: %s" % (time.strftime("%X"), status), True)
|
||||
status = '%d/%d items (%d%s)' % (count, length, round(100.0*count/length), '%')
|
||||
dataToStdout("\r[%s] [INFO] tried: %s" % (time.strftime("%X"), status), True)
|
||||
|
||||
conf.verbose = popValue()
|
||||
|
||||
dataToStdout("\r%s\n" % (" "*(getConsoleWidth()-1)), True)
|
||||
dataToStdout("\n", True)
|
||||
|
||||
if not retVal:
|
||||
warnMsg = "no table found"
|
||||
logger.warn(warnMsg)
|
||||
|
@ -1712,8 +1713,8 @@ class Enumeration:
|
|||
stackedTest()
|
||||
|
||||
if not kb.stackedTest and not conf.direct:
|
||||
warnMsg = "sql query option is only available "
|
||||
warnMsg += "when stacked queries are supported"
|
||||
warnMsg = "execution of custom SQL queries is only "
|
||||
warnMsg += "available when stacked queries are supported"
|
||||
logger.warn(warnMsg)
|
||||
return None
|
||||
else:
|
||||
|
|
11
sqlmap.conf
11
sqlmap.conf
|
@ -358,6 +358,13 @@ query =
|
|||
# Valid: True or False
|
||||
sqlShell = False
|
||||
|
||||
# Check existence of common tables.
|
||||
# Valid: True or False
|
||||
cExists = False
|
||||
|
||||
# Check existence of user specified tables.
|
||||
# Valid: text file containing one table name per line
|
||||
tableFile =
|
||||
|
||||
# These options can be used to create custom user-defined functions.
|
||||
[User-defined function]
|
||||
|
@ -485,6 +492,10 @@ batch = False
|
|||
# Valid: True or False
|
||||
cleanup = False
|
||||
|
||||
# Replicate dumped data into a sqlite3 database.
|
||||
# Valid: True or False
|
||||
replicate = False
|
||||
|
||||
# Verbosity level.
|
||||
# Valid: integer between 0 and 5
|
||||
# 0: Show only warning and error messages
|
||||
|
|
Loading…
Reference in New Issue
Block a user