From 113ebf5e9d0e817d36b93f2f39570e864245a8c4 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 20 Dec 2011 16:08:17 +0000 Subject: [PATCH] minor update --- lib/core/common.py | 4 +--- lib/utils/hash.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) 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: