mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-04-05 01:34:18 +03:00
Infinite loop fix when 'SELECT DB_NAME(...)' method used for --dbs in MsSQL
This commit is contained in:
parent
1028afce37
commit
b5c8707323
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user