Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a1842f4

Browse files
committed
Fix for an Issue #477
1 parent 991cafc commit a1842f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/utils/hash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def storeHashesToFile(attack_dict):
370370
with open(filename, "w+") as f:
371371
for user, hashes in attack_dict.items():
372372
for hash_ in hashes:
373-
hash_ = hash_.split()[0] if hash_ else hash_
373+
hash_ = hash_.split()[0] if hash_ and hash_.strip() else hash_
374374
if hash_ and hash_ != NULL and hashRecognition(hash_):
375375
item = None
376376
if user and not user.startswith(DUMMY_USER_PREFIX):

0 commit comments

Comments
 (0)