mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
minor fix
This commit is contained in:
parent
2de3081b50
commit
a9b50a1e82
|
@ -29,15 +29,9 @@ def loadHistory():
|
||||||
def queriesForAutoCompletion():
|
def queriesForAutoCompletion():
|
||||||
autoComplQueries = {}
|
autoComplQueries = {}
|
||||||
|
|
||||||
for _, query in queries[kb.dbms].items():
|
for item in queries[kb.dbms]._toflat():
|
||||||
if isinstance(query, basestring) and len(query) > 1:
|
if item._has_key('query') and len(item.query) > 1 and item._name != 'blind':
|
||||||
autoComplQuery = query
|
autoComplQueries[item.query] = None
|
||||||
elif isinstance(query, dict) and "inband" in query:
|
|
||||||
autoComplQuery = query["inband"]["query"]
|
|
||||||
else:
|
|
||||||
continue
|
|
||||||
|
|
||||||
autoComplQueries[autoComplQuery] = None
|
|
||||||
|
|
||||||
return autoComplQueries
|
return autoComplQueries
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user