Bug fix (in --dump mode if error/inband failed with None other techniques were ignored)

This commit is contained in:
Miroslav Stampar 2012-10-27 23:42:52 +02:00
parent 06805b27f2
commit 0aeb9dbe8b
2 changed files with 21 additions and 23 deletions

View File

@ -367,7 +367,6 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse
through inband SQL injection (if selected) and/or blind SQL injection through inband SQL injection (if selected) and/or blind SQL injection
(if selected). (if selected).
""" """
kb.safeCharEncode = safeCharEncode kb.safeCharEncode = safeCharEncode
kb.resumeValues = resumeValue kb.resumeValues = resumeValue

View File

@ -162,9 +162,8 @@ class Entries:
if not entries and query: if not entries and query:
entries = inject.getValue(query, blind=False, time=False, dump=True) entries = inject.getValue(query, blind=False, time=False, dump=True)
if isNoneValue(entries): if not isNoneValue(entries):
entries = [] if isinstance(entries, basestring):
elif isinstance(entries, basestring):
entries = [entries] entries = [entries]
elif not isListLike(entries): elif not isListLike(entries):
entries = [] entries = []