Infinite loop fix when 'SELECT DB_NAME(...)' method used for --dbs in MsSQL

This commit is contained in:
Miroslav Stampar 2012-12-06 15:55:33 +01:00
parent 1028afce37
commit b5c8707323

View File

@ -148,11 +148,11 @@ class Databases:
kb.data.cachedDbs = []
while True:
query = rootQuery.inband.query2 % count
value = inject.getValue(query, blind=blind)
if not value:
value = unArrayizeValue(inject.getValue(query, blind=blind))
if not (value or "").strip():
break
else:
kb.data.cachedDbs.append(unArrayizeValue(value))
kb.data.cachedDbs.append(value)
count += 1
if kb.data.cachedDbs:
break