mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-10 00:20:37 +03:00
fix for a bug reported by nightman (TypeError: unsupported operand type(s) for +: 'NoneType' and 'str')
This commit is contained in:
parent
6fab44d635
commit
b5aef9bcf9
|
@ -387,6 +387,8 @@ def dictionaryAttack(attack_dict):
|
||||||
|
|
||||||
for item in attack_info:
|
for item in attack_info:
|
||||||
((user, _), _) = item
|
((user, _), _) = item
|
||||||
|
|
||||||
|
if user:
|
||||||
kb.wordlist.append(normalizeUnicode(user))
|
kb.wordlist.append(normalizeUnicode(user))
|
||||||
|
|
||||||
length = len(kb.wordlist) * len(suffix_list)
|
length = len(kb.wordlist) * len(suffix_list)
|
||||||
|
@ -404,6 +406,9 @@ def dictionaryAttack(attack_dict):
|
||||||
|
|
||||||
count += 1
|
count += 1
|
||||||
|
|
||||||
|
if not isinstance(word, basestring):
|
||||||
|
continue
|
||||||
|
|
||||||
if suffix:
|
if suffix:
|
||||||
word = word + suffix
|
word = word + suffix
|
||||||
|
|
||||||
|
@ -458,6 +463,9 @@ def dictionaryAttack(attack_dict):
|
||||||
current = __functions__[hash_regex](password = word, uppercase = False, **kwargs)
|
current = __functions__[hash_regex](password = word, uppercase = False, **kwargs)
|
||||||
count += 1
|
count += 1
|
||||||
|
|
||||||
|
if not isinstance(word, basestring):
|
||||||
|
continue
|
||||||
|
|
||||||
if suffix:
|
if suffix:
|
||||||
word = word + suffix
|
word = word + suffix
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user