Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68b9d48 commit 4bc6f3fCopy full SHA for 4bc6f3f
1 file changed
plugins/generic/enumeration.py
@@ -2012,7 +2012,7 @@ def searchTable(self):
2012
2013
if conf.db and conf.db != CURRENT_DB:
2014
_ = conf.db.split(",")
2015
- whereDbsQuery = "".join(" AND '%s' = %s" % (unsafeSQLIdentificatorNaming(db), dbCond) for db in _)
+ whereDbsQuery = " AND (" + " OR ".join("%s = '%s'" % (dbCond, unsafeSQLIdentificatorNaming(db)) for db in _) + ")"
2016
infoMsg += " for database%s '%s'" % ("s" if len(_) > 1 else "", ", ".join(db for db in _))
2017
elif conf.excludeSysDbs:
2018
whereDbsQuery = "".join(" AND '%s' != %s" % (unsafeSQLIdentificatorNaming(db), dbCond) for db in self.excludeDbsList)
0 commit comments