mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-10 09:49:06 +00:00
Trivial update
This commit is contained in:
@@ -65,7 +65,7 @@ class Enumeration(GenericEnumeration):
|
||||
conf.db = self.getCurrentDb()
|
||||
|
||||
if conf.db:
|
||||
dbs = conf.db.split(",")
|
||||
dbs = conf.db.split(',')
|
||||
else:
|
||||
dbs = self.getDbs()
|
||||
|
||||
@@ -116,7 +116,7 @@ class Enumeration(GenericEnumeration):
|
||||
conf.db = safeSQLIdentificatorNaming(conf.db)
|
||||
|
||||
if conf.col:
|
||||
colList = conf.col.split(",")
|
||||
colList = conf.col.split(',')
|
||||
else:
|
||||
colList = []
|
||||
|
||||
@@ -127,7 +127,7 @@ class Enumeration(GenericEnumeration):
|
||||
colList[colList.index(col)] = safeSQLIdentificatorNaming(col)
|
||||
|
||||
if conf.tbl:
|
||||
tblList = conf.tbl.split(",")
|
||||
tblList = conf.tbl.split(',')
|
||||
else:
|
||||
self.getTables()
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ class Enumeration(GenericEnumeration):
|
||||
conf.db = self.getCurrentDb()
|
||||
|
||||
if conf.db:
|
||||
dbs = conf.db.split(",")
|
||||
dbs = conf.db.split(',')
|
||||
else:
|
||||
dbs = self.getDbs()
|
||||
|
||||
@@ -163,7 +163,7 @@ class Enumeration(GenericEnumeration):
|
||||
|
||||
def searchTable(self):
|
||||
foundTbls = {}
|
||||
tblList = conf.tbl.split(",")
|
||||
tblList = conf.tbl.split(',')
|
||||
rootQuery = queries[DBMS.MSSQL].search_table
|
||||
tblCond = rootQuery.inband.condition
|
||||
tblConsider, tblCondParam = self.likeOrExact("table")
|
||||
@@ -172,7 +172,7 @@ class Enumeration(GenericEnumeration):
|
||||
conf.db = self.getCurrentDb()
|
||||
|
||||
if conf.db:
|
||||
enumDbs = conf.db.split(",")
|
||||
enumDbs = conf.db.split(',')
|
||||
elif not len(kb.data.cachedDbs):
|
||||
enumDbs = self.getDbs()
|
||||
else:
|
||||
@@ -269,7 +269,7 @@ class Enumeration(GenericEnumeration):
|
||||
whereTblsQuery = ""
|
||||
infoMsgTbl = ""
|
||||
infoMsgDb = ""
|
||||
colList = conf.col.split(",")
|
||||
colList = conf.col.split(',')
|
||||
|
||||
if conf.excludeCol:
|
||||
colList = [_ for _ in colList if _ not in conf.excludeCol.split(',')]
|
||||
@@ -284,7 +284,7 @@ class Enumeration(GenericEnumeration):
|
||||
conf.db = self.getCurrentDb()
|
||||
|
||||
if conf.db:
|
||||
enumDbs = conf.db.split(",")
|
||||
enumDbs = conf.db.split(',')
|
||||
elif not len(kb.data.cachedDbs):
|
||||
enumDbs = self.getDbs()
|
||||
else:
|
||||
@@ -307,7 +307,7 @@ class Enumeration(GenericEnumeration):
|
||||
foundCols[column] = {}
|
||||
|
||||
if conf.tbl:
|
||||
_ = conf.tbl.split(",")
|
||||
_ = conf.tbl.split(',')
|
||||
whereTblsQuery = " AND (" + " OR ".join("%s = '%s'" % (tblCond, unsafeSQLIdentificatorNaming(tbl)) for tbl in _) + ")"
|
||||
infoMsgTbl = " for table%s '%s'" % ("s" if len(_) > 1 else "", ", ".join(tbl for tbl in _))
|
||||
|
||||
@@ -315,7 +315,7 @@ class Enumeration(GenericEnumeration):
|
||||
conf.db = self.getCurrentDb()
|
||||
|
||||
if conf.db:
|
||||
_ = conf.db.split(",")
|
||||
_ = conf.db.split(',')
|
||||
infoMsgDb = " in database%s '%s'" % ("s" if len(_) > 1 else "", ", ".join(db for db in _))
|
||||
elif conf.excludeSysDbs:
|
||||
msg = "skipping system database%s '%s'" % ("s" if len(self.excludeDbsList) > 1 else "", ", ".join(db for db in self.excludeDbsList))
|
||||
|
||||
@@ -50,7 +50,7 @@ class Enumeration(GenericEnumeration):
|
||||
condition = rootQuery.inband.condition
|
||||
|
||||
if conf.user:
|
||||
users = conf.user.split(",")
|
||||
users = conf.user.split(',')
|
||||
query += " WHERE "
|
||||
query += " OR ".join("%s = '%s'" % (condition, user) for user in sorted(users))
|
||||
|
||||
@@ -86,7 +86,7 @@ class Enumeration(GenericEnumeration):
|
||||
|
||||
if not kb.data.cachedUsersRoles and isInferenceAvailable() and not conf.direct:
|
||||
if conf.user:
|
||||
users = conf.user.split(",")
|
||||
users = conf.user.split(',')
|
||||
else:
|
||||
if not len(kb.data.cachedUsers):
|
||||
users = self.getUsers()
|
||||
|
||||
@@ -124,7 +124,7 @@ class Enumeration(GenericEnumeration):
|
||||
conf.db = self.getCurrentDb()
|
||||
|
||||
if conf.db:
|
||||
dbs = conf.db.split(",")
|
||||
dbs = conf.db.split(',')
|
||||
else:
|
||||
dbs = self.getDbs()
|
||||
|
||||
@@ -184,7 +184,7 @@ class Enumeration(GenericEnumeration):
|
||||
conf.db = safeSQLIdentificatorNaming(conf.db)
|
||||
|
||||
if conf.col:
|
||||
colList = conf.col.split(",")
|
||||
colList = conf.col.split(',')
|
||||
else:
|
||||
colList = []
|
||||
|
||||
@@ -195,7 +195,7 @@ class Enumeration(GenericEnumeration):
|
||||
colList[colList.index(col)] = safeSQLIdentificatorNaming(col)
|
||||
|
||||
if conf.tbl:
|
||||
tblList = conf.tbl.split(",")
|
||||
tblList = conf.tbl.split(',')
|
||||
else:
|
||||
self.getTables()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user