mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-28 18:39:04 +00:00
minor update for MSSQL --tables (fallback to other method)
This commit is contained in:
@@ -93,8 +93,11 @@ class Enumeration(GenericEnumeration):
|
||||
|
||||
continue
|
||||
|
||||
query = rootQuery.inband.query.replace("%s", db)
|
||||
value = inject.getValue(query, blind=False)
|
||||
for query in (rootQuery.inband.query, rootQuery.inband.query2):
|
||||
query = query.replace("%s", db)
|
||||
value = inject.getValue(query, blind=False)
|
||||
if not isNoneValue(value):
|
||||
break
|
||||
|
||||
if not isNoneValue(value):
|
||||
kb.data.cachedTables[db] = arrayizeValue(value)
|
||||
|
||||
@@ -887,9 +887,6 @@ class Enumeration:
|
||||
if len(dbs) < 2 and ("%s," % condition) in query:
|
||||
query = query.replace("%s," % condition, "", 1)
|
||||
|
||||
if Backend.isDbms(DBMS.MSSQL):
|
||||
query = safeStringFormat(query, conf.db)
|
||||
|
||||
value = inject.getValue(query, blind=False)
|
||||
|
||||
if not isNoneValue(value):
|
||||
|
||||
Reference in New Issue
Block a user