mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-09-06 09:51:06 +00:00
Update server.py
This commit is contained in:
parent
403e497fc0
commit
23eb725295
|
@ -405,7 +405,7 @@ def pwnedpasswords_test(s):
|
||||||
hashes = response.text.split('\r\n')
|
hashes = response.text.split('\r\n')
|
||||||
|
|
||||||
# Using list comprehension to find matching hashes
|
# Using list comprehension to find matching hashes
|
||||||
matching_hashes = [line for line in hashes if l5_sha1 in line.lower()]
|
matching_hashes = [line.split(':')[0] for line in hashes if line.endswith(l5_sha1)]
|
||||||
|
|
||||||
# If there are matching hashes, return True, else return False
|
# If there are matching hashes, return True, else return False
|
||||||
return bool(matching_hashes)
|
return bool(matching_hashes)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user