mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 21:21:33 +00:00
avoid displaying "do you want to dump" message if no searched columns have been found
This commit is contained in:
@@ -534,14 +534,13 @@ class Search:
|
|||||||
else:
|
else:
|
||||||
foundCols[column][db] = [tbl]
|
foundCols[column][db] = [tbl]
|
||||||
|
|
||||||
if not foundCols:
|
if dbs:
|
||||||
|
conf.dumper.dbColumns(foundCols, colConsider, dbs)
|
||||||
|
self.dumpFoundColumn(dbs, foundCols, colConsider)
|
||||||
|
else:
|
||||||
warnMsg = "no databases have tables containing any of the "
|
warnMsg = "no databases have tables containing any of the "
|
||||||
warnMsg += "provided columns"
|
warnMsg += "provided columns"
|
||||||
logger.warn(warnMsg)
|
logger.warn(warnMsg)
|
||||||
return
|
|
||||||
|
|
||||||
conf.dumper.dbColumns(foundCols, colConsider, dbs)
|
|
||||||
self.dumpFoundColumn(dbs, foundCols, colConsider)
|
|
||||||
|
|
||||||
def search(self):
|
def search(self):
|
||||||
if Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.DB2):
|
if Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.DB2):
|
||||||
|
|||||||
Reference in New Issue
Block a user