diff --git a/lib/core/common.py b/lib/core/common.py index eb1b3691b..379415f39 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -2379,9 +2379,7 @@ def findDynamicContent(firstPage, secondPage): kb.dynamicMarkings = [] # Removing too small matching blocks - i = 0 - while i < len(blocks): - block = blocks[i] + while block in blocks[:]: (_, _, length) = block if length <= DYNAMICITY_MARK_LENGTH: diff --git a/lib/utils/hash.py b/lib/utils/hash.py index 29ad0cffa..1f0785c10 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -425,7 +425,7 @@ def __bruteProcessVariantA(attack_info, hash_regex, wordlist, suffix, retVal, pr count += 1 if current in hashes: - for item in list(attack_info): + for item in attack_info[:]: ((user, hash_), _) = item if hash_ == current: