mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
refactoring
This commit is contained in:
parent
ec9cc19951
commit
8e4b8d345f
4 changed files with 8 additions and 8 deletions
|
|
@ -77,8 +77,8 @@ class Enumeration(GenericEnumeration):
|
|||
rootQuery = queries[Backend.getIdentifiedDbms()].tables
|
||||
|
||||
for db in dbs:
|
||||
if not isinstance(db, basestring):
|
||||
db = db[0]
|
||||
if isinstance(db, (tuple, list)):
|
||||
db = db[0] if db else ""
|
||||
|
||||
randStr = randomStr()
|
||||
query = rootQuery.inband.query % (("'%s'" % db) if db != "USER" else 'USER')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue